TipsLesser-known
Don't drag it out: use /clear
Use /clear when the topic changes and /compact when it stays the same.
When to use it
When you want to watch both quality and cost.
Source: https://code.claude.com/docs/en/commands
Related
More Claude Code tips
Custom slash commands (.claude/commands)A single markdown file becomes a /name command.TipsHooks (settings.json)Automatically runs commands on events such as before or after a tool runs.TipsHeadless mode (-p)Runs once without a UI and prints only the result.Tips--continue / -cContinues the most recent conversation in the current folder.Tips--resume / -rResumes a session by ID or name.Tips--fork-sessionResumes a session but branches it off under a new session ID.Tips
All Claude Code