Promptles
Claude Code

Compaction (/compact)

intermediate

Definition

Shrinking a long Claude Code conversation into a short summary so the session can keep going when it nearly fills Claude's context window; it happens automatically, or you can run /compact yourself.

In the wild

After an hour of work on the reading-list app, you type `/compact keep the failing test names` and carry on with a short recap instead of the whole transcript.

More from Claude Code