AI Glossary

Compaction

nounContext engineeringpreferred in this glossary

Technique that condenses a conversation into a shorter summary as it approaches the context window limit, allowing an AI agent to continue a long task.

Source: Claude Cookbook 2026 (opens in a new tab) (adapted)

Adapted: adds the context window limit trigger from the memory tool documentation. Source: Claude memory tool (opens in a new tab)

In plain language

The agent carries a summary forward when the conversation becomes too long.

In a sentence

  • Compaction reduced the conversation to a summary before the agent continued.
  • We checked which instructions the compaction summary retained.

Examples written for this glossary

Usage note

The summary stands in for a longer conversation. The term describes that reduction rather than a claim that every detail is preserved.

See also

  • Agent memory

    Technique in which an AI agent writes notes outside its context window and retrieves them later, including across conversations, to carry information into subsequent work.

  • Context rot

    Decline in a language model's reliability on a task as its input grows longer, even when the needed information remains inside the available context.

Sources

Cite this term.

CC BY 4.0, attribution required.

This term

Orbyt Labs, Compaction (AI Glossary), Nov 14, 2026. https://www.orbytlabs.ai/orbyt-collective/glossary/compaction

The dataset (JSON)

Orbyt Labs Glossaries (Nov 14, 2026), https://www.orbytlabs.ai/glossary#dataset

Last updated .