Product feature · models-context

Automatic context compactionCommon product term

Continue long sessions by automatically summarizing or pruning older context.

Terminology basis: Common product term. Anthropic — Manage Claude Code costs

Automatic context compaction: 5 supported, 0 partial, 0 unsupported, 26 unreviewed across 31 cataloged products.

Markdown · JSON

Explore this familyMore in Models and context11 capabilities

Current evidence by product

Can my agent use Automatic context compaction?

Read across for the answer. 5 of 31 current product columns have reviewed evidence; unreviewed does not mean unsupported.

  • Supported5
  • Partial0
  • Unsupported0
  • Unknown26
  • Not applicable0

Web

9 products

Desktop

13 products

CLI

9 products

Unknown means no public evidence has been reviewed for that product and capability. It does not mean unsupported.

How statuses are assigned

Definition and scope

What this capability means

This row requires a documented mechanism that summarizes, prunes, or otherwise reduces earlier context so work can continue. Silent truncation without a continuity mechanism is not compaction.

Evidence should record the trigger, whether the operator is warned, what state is preserved, whether instructions and tool results are treated specially, and whether the compacted summary is inspectable. Reliability tests should probe commitments, file paths, pending tasks, citations, approvals, and negative constraints across the boundary.

Traceable compatibility

Assertion ledger

Documentation evidence only. No runtime conformance test is implied.

Claude CLIcli · current
Supported
Target
current Claude Code documentation · dated-documentation
Environment
local-default
Observed
2026-08-28
  • runtimeauto-compaction summarizes history when approaching context limits; retained-state reliability still requires boundary testing
Evidence
Gemini CLIcli · current
Supported
Target
current Gemini CLI documentation · dated-documentation
Environment
local-default
Observed
2026-08-28
  • runtimethe core automatically compresses chat history near the model limit; model.compressionThreshold controls the trigger and defaults to 0.5
Evidence
Copilot CLIcli · current
Supported
Target
current GitHub Copilot CLI context-management documentation · dated-documentation
Environment
local-default
Observed
2026-08-28
  • runtimebackground compaction begins at approximately 80% of the selected model's context window and the run can pause near 95% until compaction finishes
Evidence
Copilot Chatdesktop · current
Supported
Target
current VS Code agent-session documentation · dated-documentation
Environment
local-default
Observed
2026-08-28
  • policyautomatic compaction occurs when context fills and can be disabled with github.copilot.chat.summarizeAgentConversationHistory.enabled
Evidence
Cursordesktop · current
Supported
Target
current Cursor chat-summarization documentation · dated-documentation
Environment
local-default
Observed
2026-08-28
  • runtimeCursor summarizes older messages as chats exceed the model context window and separately condenses oversized files and folders
Evidence
  1. 1. Evidence checked 2026-08-28: Claude Code documents auto-compaction that summarizes conversation history as context limits approach.
  2. 2. Evidence checked 2026-08-28: Gemini CLI documents automatic chat-history compression near the configured model's limit and exposes a configurable compression threshold.
  3. 3. Evidence checked 2026-08-28: GitHub Copilot CLI documents automatic background compaction beginning at roughly 80% context usage and waiting for completion if usage reaches roughly 95%.
  4. 4. Evidence checked 2026-08-28: VS Code documents automatic conversation-history compaction when the context window fills.
  5. 5. Evidence checked 2026-08-28: Cursor documents automatic summarization of older messages when a conversation exceeds the selected model's context window.