compaction

Compaction is a technique that summarizes and compresses earlier conversation context so a language model can keep working past its context window limit.

15 articlesLast mentioned

Compaction is a technique used by agents built on large language models during long tasks. When the conversation and work history approach the limit of the context window, the earlier material is summarized or compressed so that only the essential state remains, and the compressed version becomes the starting point of a fresh context window.

It is used in long-running coding agent work to preserve earlier requirements and progress while reducing token usage. A known limitation is that details can be lost during compression.

This entry is based on AIPOST articles and widely known facts. If something is wrong, please send us a correction request.

Articles covering this entry

  • Gyro-M vs. Gyro-S on a 16GB GPU: Higher Scores, Similar Coding ResultsAI Performance ·

    A compaction is a point where the session condenses earlier context to free up room.

    Read article
  • Claude Code's Code Mode Runs Tools From JavaScript and Trims Token CostsAI in Practice ·

    Current compaction methods are imperfect and can lose important nuance, so slicing history with code may be the better option.

    Read article
  • Anthropic's Always-On Agent Guide: Five Primitives and a First Agent to BuildAI in Practice ·

    …nd the index) so the recurring portion of each run is not paid for in full every time, along with conversation compaction and fresh sessions when context grows.

    Read article
  • Temperature, Attention and Context Rot: Model Mechanics Behind Agent DesignAI in Practice ·

    …as context grows, keep tool sets small, append new information at the end of the prompt, and never let automated context compaction erase a safety instruction.

    Read article
  • RLHF-Heavy Models Write Stiffer Prose; Replay Production Traces Before SwappingAI Performance ·

    Use automated classification to tell memory retrieval bugs from storage compaction bugs rather than waiting for user complaints.

    Read article
  • Pando: The Git Backend OpenAI Built for a 2,442% Surge in CommitsAI News ·

    â–² Pando's tiered compaction from L0 to L4

    Read article
  • ShapeLearn Qwen3.8-27B on a 16GB GPU: Agent Tests Pass 4 of 5 at 128k ContextAI Performance ·

    The final build passed all 9 verification criteria and all 45 test assertions, using 64.1% of the context with one compaction and three user prompts.

    Read article
  • PHP2Shell and Agent Monitoring Gaps Show Why Quarterly Patching No Longer WorksAI Security ·

    The underlying weakness is what the report calls a compaction gap.

    Read article
  • AI Agent Guardrails: Citibank's $893.9M Misfire Makes the Case for BrakesAI Security ·

    This points to a broader caveat: relying on prompt-based constraints in long context windows is dangerous because compaction can silently erase them.

    Read article
  • Claude Code Costs Come From Full-Price Rereads: Four Habits Behind ThemAI in Practice ·

    …y hand, tell Claude what to keep, for example , and then confirm which requirements survived, because compaction can drop subtle instructions you gave early on.

    Read article
  • Claude Haiku 5.5 and GPT-6 Intelligent UI Lead a Week of Cheaper, Faster AIAI News ·

    It is aimed at repetitive, high-volume work such as summaries, data compaction, database queries and classification, not at state-of-the-art reasoning.

    Read article
  • Why Claude Code Gets More From the Same Model: Five Parts of a HarnessAI in Practice ·

    Harnesses handle this with compaction, which condenses a long history into a compact summary.

    Read article
  • Codex for 15-Hour Builds: Goal Files, Audit Threads and Human ChecksAI in Practice ·

    What makes these long runs possible is compaction, which keeps the essential project state and drops the noise as a thread grows.

    Read article
  • Four Hooks That Let TypeScript Mods Rewire Claude's Coding WorkflowAI in Practice ·

    Cache Clock + Compact: the cache timer and compaction button described above

    Read article
  • Optimizer Speedrun: Codex and Claude Code Beat Human RecordsAI Performance ·

    Codex also compacted its context about 20 times per active hour; compaction condenses earlier material so work can continue within a limited context window.

    Read article

Found a mistake or missing an entry?

Wiki entries are based on AIPOST articles and widely known facts. If an entry is wrong, send us a correction request and we will check and fix it. Names from new articles are added to the wiki after the article is published.