惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
L
LangChain Blog
爱范儿
爱范儿
博客园_首页
Stack Overflow Blog
Stack Overflow Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 三生石上(FineUI控件)
大猫的无限游戏
大猫的无限游戏
宝玉的分享
宝玉的分享
GbyAI
GbyAI
H
Help Net Security
A
About on SuperTechFans
Recent Announcements
Recent Announcements
Hugging Face - Blog
Hugging Face - Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
雷峰网
雷峰网
D
Docker
博客园 - Franky
有赞技术团队
有赞技术团队
G
Google Developers Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Five Claude Code habits that cost nothing and save hours
Echo · 2026-06-02 · via DEV Community

Echo

I have been using Claude Code daily for about a year across multiple repos. These five habits are free, require no plugins, and have saved me more time than any model upgrade.

1. Name your sessions immediately

The default session names are "task-abc123" or "fix-xyz". After three days you have no idea what was in there. The fix is trivial: start every session with a one-line summary.

Bad: claude -> default name task-2026-06-02-abc123
Good: claude -> say "Refactor auth module token validation logic" -> session name is now descriptive

When you run /resume a week later, you will actually know which session to pick.

2. Treat CLAUDE.md as a correction log, not a spec

Most people write CLAUDE.md once and forget it. The better approach is to append a rule every time Claude makes a repeatable mistake.

Examples from my current project:

  • "Always use pnpm in this repo. Do not generate package-lock.json."
  • "API response keys must be camelCase."
  • "Integration tests need a local Redis instance."

Each rule is a single sentence. The file grows organically and future sessions inherit it automatically.

3. Know the difference between /continue and /resume

  • /continue (or claude --continue): reopens the most recent session in the current directory. Use this when you stopped working yesterday and want to pick up where you left off.
  • /resume (or claude --resume): opens a picker of all historical sessions. Use this when you need a specific older conversation.

The trap is that /resume only helps if you remember the session name or ID. After a few repos and dozens of sessions, the flat list becomes useless.

4. Export decisions before they disappear

When a session contains a design decision, architectural choice, or complex debugging path, run /export before closing it. The output is a markdown file you can drop into your project docs.

The alternative is digging through ~/.claude/projects/ raw JSONL files later. Those files contain everything, but they are not meant for human reading.

5. Separate memory from retrieval

This is the habit that took me longest to learn.

  • Memory = reusable facts that future sessions need (CLAUDE.md, rules, conventions).
  • Retrieval = finding the old session that actually contained the decision.

CLAUDE.md handles memory well. Retrieval is harder because Claude Code's native tools are designed for exact-session continuation, not for browsing across projects.

After I crossed four active repos, I built a small desktop workspace that groups Claude Code and Codex sessions by project. It reads the same local JSONL files — no cloud, no API keys — and presents them in a browsable project view. I use it to find the right session before I /resume.

https://github.com/Harukaon/shelf

It is not a replacement for /continue, /resume, or CLAUDE.md. It sits beside them as a retrieval layer.

Bottom line

Claude Code is already powerful. The marginal gain from naming sessions, maintaining a correction log, and knowing which command to use when is larger than the gain from most configuration tweaks. And when project count grows, having a way to browse old sessions before resuming them pays for itself quickly.