Reclaim context by compacting the conversation
slash commands
// what it does
/compact summarizes the conversation so far into a shorter form and frees up context while keeping the thread going — use it when the context bar fills up on a long task. Pass a focus (/compact keep the auth refactor details) to steer what the summary preserves. The project-root CLAUDE.md is re-read from disk after compaction, so those instructions survive.
// shell
$ /compact$ /compact keep the database migration plan// gotcha
Detail not named in your focus can be dropped from the summary. Instructions given only in chat (not in CLAUDE.md) may be lost after /compact; put anything that must persist into CLAUDE.md so it is re-injected.