⌨️Auto-Compact
Also known as Compaction, /compact
Claude Code sums up an old chat to make room.
Think of it like
It is like a big pile of notes, cut down to one short page.
Example
Jack has worked for three hours in one session. The context is nearly full, so Claude Code sums up the work so far and keeps going.
Why it matters
It lets a long job keep going after the context is full.
Definition
Example code
console
/compact keep the API changesCommon mistake
Key takeaways
- 1When context is full. Or when you ask.
- 2A summary. Replaces old talk.
- 3Files survive. CLAUDE.md is reread.