Also called: /clear, context full
In plain English
Use /clear when you switch to an unrelated task, so old details don't confuse the new one. /compact can take a hint: /compact keep the deployment steps.
Example
The session got long, so I ran /compact and kept working with a summary.
Learn more
- Explore the context windowClaude Code docs (opens in a new tab)
- CommandsClaude Code docs (opens in a new tab)
Related terms
Added 2026-11-30 · Last reviewed 2026-11-30