Skip to main content

Compaction

Compaction

  • Agents
  • Stage 3 · Going Deeper
  • refs checked 2026-11-03
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

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.

Task handbooks → · Filter three candidates →