Claude Code /clear command
- Home
- Conversation & context
- /clear
/clear[name]
Start a fresh conversation (the old one stays resumable)
★ Start here
Starts a new conversation with empty context while keeping project memory. The previous conversation is kept and can be reopened with /resume; pass a name to label it in the picker.
Best use
When you finish one feature and move to an unrelated task: /clear login-feature. Old context stops interfering and usage drops.
Used in these situations
- Start an unrelated task from scratch
/clear → /resume
Related commands · Conversation & context
- /compactSummarize a long conversation to free space
- /contextSee what is filling the context window
- /planGet a plan first; edits wait for your approval
- /resumeGo back to an earlier conversation
- /rewindUndo: roll code and conversation back
- /autocompactSets how full the context window gets before automatic compaction, e.g.
- /branchCreates a branch of the conversation at this point and switches into it; the original is preserved and reachable via /resume.
- /btwAsks a side question about the current session without adding it to the conversation.
← See all commands