Skip to content

Compaction

Summarising the old conversation so the new part fits in the window.

Compaction is what an agent does when the context window is nearly full: it summarises the conversation so far into a condensed form, drops the raw transcript, and continues with the summary plus the recent turns.

It is the practical alternative to a fresh session, because it preserves decisions and context that a restart would lose. The cost is loss of detail. A summary cannot carry every fact from a hundred tool calls, and what gets dropped is rarely the least important thing.

Good compaction summaries are structured: decisions made and why, facts discovered, files touched, and what is still open. A prose summary of a long session tends to keep the narrative and lose the specifics, which are usually what you need.

Related terms

Want this working inside your team?

It starts with one conversation about your workflow.

Ask on WhatsApp