/
/compact
Summarize and compress conversation context to free up token space
Open Sourcefree
About
The /compact skill instructs Claude Code to summarize the current conversation into a concise context block, replacing the full message history. This frees up context window space for long-running sessions, allowing you to continue working on complex tasks without hitting token limits. The summary retains key decisions, code changes, and open tasks so nothing important is lost.
Details
| Command | /compact |
| Built-in | Yes |
| Compatible Clients | claude-code |
Tags
claude-codeclicontext-managementproductivity
Quick Info
- Organization
- Anthropic
- Pricing
- free
- Free Tier
- Yes
- Updated
- Mar 8, 2026