Digitorn
Digitorn
All terms
Agent concepts

Compaction

A runtime process that summarises old turns once the context window is nearly full, freeing space for new turns.

also known as: context compaction, summarisation
In depth

Long agent sessions blow past any context window eventually. Compaction is the mechanism that compresses old turns into summaries before the context overflows. Done well, the agent keeps running indefinitely. Done poorly, the agent forgets the original goal halfway through. The cure for poor compaction is goal pinning plus a memory module that persists structured state across the compression boundary.

Related concepts
Newsletter

Get the next post in your inbox.

Engineering notes from the Digitorn team. No marketing, no launch announcements, no "10 prompts that will change your life". Just the things we write that we'd want to read.

One-click unsubscribe. We never share your address. Powered by our own infrastructure, not a tracker.

More in Agent concepts

Agent loop/glossary/agent-loopAgent spawn/glossary/agent-spawnAI agent/glossary/ai-agentCoordinator agent/glossary/coordinatorFunction calling/glossary/function-callingGoal pinning/glossary/goal-pinning