/cc · Claude Code Commands
  1. Home
  2. Conversation & context
  3. /compact

/compact[instructions]

Summarize a long conversation to free space

★ Start here

Summarizes the conversation so far to free context space, continuing the same conversation. Optional instructions steer what the summary keeps.

Best use

After a long session: /compact keep the database schema and the list of open bugs.

Used in these situations

Related commands · Conversation & context

← See all commands