Glossary · Term

compaction

← all terms

Definition

Plain language

Summarizing an AI agent's history and starting fresh to free up context space.

As stated in the literature

A technique for managing finite context windows in long-running agents by summarizing prior interactions and replacing the raw history with a condensed version.

Why it matters: Without compaction, long-running agents eventually drown in their own history; with it, what they choose to forget shapes everything that follows.

For example, after fifty turns of a coding session, the agent replaces its log with a one-paragraph summary of decisions made and continues from there.

Heard on the show

“… turns, which they call eviction, or it rewrites the old history into a short summary, which is compaction. …”
Episode 164 — The Summarizer That Quietly Deletes Your Agent's Safety Rules

Mentioned in 4 episodes

  1. 164
    The Summarizer That Quietly Deletes Your Agent's Safety Rules
  2. 125
    AI Coding Agents Run a Marathon, and Fewer Than One in Three Finish
  3. 086
    Why Frozen-Weight Agents Still Get Worse Over Time
  4. 027
    When AI Agents Build the Serving Stack: A Bet on Bespoke Infrastructure

Related terms