DeltaNov 17, 20263 min read2 sources

Claude Code compacts idle conversations before their prompt cache expires

Claude Code can now compact long, idle terminal conversations before their one-hour prompt cache expires. Builders can configure the token threshold or disable the behavior.

In one minute

As of 2026-11-17: Idle compaction remains available for long Claude Code conversations, and release 2.1.314 extends it to VS Code and Claude Desktop. Release 2.1.311 also describes compaction continuing past 200K tokens. Claude Code can now compact long, idle terminal conversations before their one-hour prompt cache expires. Builders can configure the token threshold or disable the behavior.

Current state (as of 2026-11-17)

Status: strengthening. Idle compaction remains available for long Claude Code conversations, and release 2.1.314 extends it to VS Code and Claude Desktop. Release 2.1.311 also describes compaction continuing past 200K tokens.

Claude Code’s idle compaction now extends beyond terminal conversations: 2.1.314 extends it to VS Code and Claude Desktop for conversations of 200K+ tokens. Release 2.1.311 describes compaction continuing past 200K tokens.

The earlier capability remains: long, idle terminal conversations can be compacted before prompt-cache expiry, with a configurable threshold and an opt-out. Builders can now account for idle compaction across additional Claude Code surfaces, though the available evidence does not specify how the controls behave there.

What changed since the original text

  • Claude Code 2.1.314 extends idle compaction of 200K+ token conversations to VS Code and Claude Desktop. [1]
  • Claude Code 2.1.311 is described as keeping compaction active past 200K tokens. [2]

Open questions

  • Do the VS Code and Claude Desktop versions expose the same threshold and opt-out controls as terminal Claude Code?
  • What context detail is preserved when compaction continues past 200K tokens?

Watch next: Watch for a Claude Code release specifying idle-compaction controls and behavior across terminal, VS Code, and Claude Desktop.

Sources

  1. Claude Code 2.1.314 extends idle compaction of 200K+ token conversations to VS Code and Claude Desktop
  2. Claude Code 2.1.311 speeds Pro/Max startup and keeps compacting past 200K tokens

Rewritten automatically by the New Runtime knowledge desk from the record's weekly updates, releases and archive. The original text is kept as written (2026-10-16); where the two disagree, this section is newer.

Capability change

  • Before: Idle terminal conversations did not have the newly added automatic compaction timed to precede prompt-cache expiry.
  • Enabling change: Version 2.1.299 adds idle compaction for 200K+ token conversations after about 54 minutes, with a configurable minimum and opt-out; 2.1.302 adds an Idle compaction control to /config.
  • After: Long terminal conversations can be compacted while idle before cache expiry, so the next message does not reprocess the entire conversation.

Human consequence: Users returning to long sessions can resume with pre-compacted context and control whether idle compaction runs.

Bottleneck: The default behavior applies only to conversations of at least 200K tokens left idle for about 54 minutes; compaction changes the context carried forward.

Buildability: B4. Verification: source-inspected. Related shift: shared-context-infrastructure.

Idle compaction moves context maintenance into the pause between turns. The initial release supplies automatic timing and threshold controls; the later release makes the behavior accessible through /config.

Builders can configure long-running terminal workflows to compact before cache expiry rather than reprocess the full conversation on return.

Watch the token threshold and idle timing. The entries do not establish how much detail compaction preserves, and users can disable it.

Published automatically by the New Runtime weekly knowledge desk from the week's evidence.

Supporting evidence

Provenance

Auto-created by the New Runtime weekly knowledge desk on 2026-11-17 from evidence reviewed in the week of 2026-10-12. It is published through the live overlay and joins the hand-edited catalog at the next release.

Evidence / sources

  1. 1github.com/anthropics/claude-code/releases/tag/v2.1.299
  2. 2github.com/anthropics/claude-code/releases/tag/v2.1.302
All Capability Deltas

Next reads

Read next

Open the graph
  1. 01archiveCapability DeltasOpen every observed capability delta.
  2. 02sourcesSourcesSee the original sources this archive cites.
Who read this page?Machine requests, hidden until opened

Loading the privacy-safe route aggregate...

Open the JSON contract