Compaction
Compaction
What problem it solves
When a conversation nearly fills the window, summarize it and start again.
What it is
Anthropic's definition: summarize a conversation nearing the window limit, then reinitiate a new window with the summary.
Compaction loses detail, so it is usually paired with external notes.
Why it matters
A long task that "forgets" halfway is usually a compaction failure.
Chinese aliases
Related guides
What you can do now
Agent atlas: which clients, runtimes and tools you can install ↗
Sources
- Anthropic, Effective context engineering for AI agents ↗
Use this term in a task
Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.