{"schema_version":"newruntime-agent-readable-v0.2","type":"capability_delta","stable_id":"capability_delta:claude-code-compacts-idle-conversations-before-their-prompt-cache","slug":"claude-code-compacts-idle-conversations-before-their-prompt-cache","title":"Claude Code compacts idle conversations before their prompt cache expires","description":"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.","retrieval_nugget":"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.","status":"published","observed_at":"2026-10-16","record_date":"2026-10-16","date_kind":"observed_at","before_capability":"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_capability":"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.","verification_level":"source-inspected","buildability_class":"B4","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.","related_shift":"shared-context-infrastructure","related_posts":[],"topics":[],"source_urls":["https://github.com/anthropics/claude-code/releases/tag/v2.1.299","https://github.com/anthropics/claude-code/releases/tag/v2.1.302"],"featured":false,"supporting_evidence":[{"title":"claude-code 2.1.299 Claude Code 2.1.299","url":"https://github.com/anthropics/claude-code/releases/tag/v2.1.299","kind":"external","observed_at":"2026-10-14"},{"title":"claude-code 2.1.302 Claude Code 2.1.302","url":"https://github.com/anthropics/claude-code/releases/tag/v2.1.302","kind":"external","observed_at":"2026-10-16"}],"routes":{"html":"https://newruntime.com/deltas/claude-code-compacts-idle-conversations-before-their-prompt-cache/","markdown":"https://newruntime.com/deltas/claude-code-compacts-idle-conversations-before-their-prompt-cache.md","json":"https://newruntime.com/deltas/claude-code-compacts-idle-conversations-before-their-prompt-cache.json"},"source_format":"knowledge-ledger","published_at":"2026-11-17T05:08:11.198Z","auto_created":true,"editorial_provenance":{"desk":"knowledge-revision","provider":"codex","model":"gpt-6.1-sol","created_at":"2026-11-17T05:08:11.198Z","week_start":"2026-10-12","review":"auto-created from reviewed evidence; the owner may revise or retire it"},"current_state":{"as_of":"2026-11-17","status":"strengthening","summary":"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.","text":"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.\n\nThe 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.","changed_since":[{"text":"Claude Code 2.1.314 extends idle compaction of 200K+ token conversations to VS Code and Claude Desktop.","sources":["https://github.com/anthropics/claude-code/releases/tag/v2.1.314"]},{"text":"Claude Code 2.1.311 is described as keeping compaction active past 200K tokens.","sources":["https://github.com/anthropics/claude-code/releases/tag/v2.1.311"]}],"outdated_in_original":[],"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":[{"title":"Claude Code 2.1.314 extends idle compaction of 200K+ token conversations to VS Code and Claude Desktop","url":"https://github.com/anthropics/claude-code/releases/tag/v2.1.314","kind":"archive","observed_at":null},{"title":"Claude Code 2.1.311 speeds Pro/Max startup and keeps compacting past 200K tokens","url":"https://github.com/anthropics/claude-code/releases/tag/v2.1.311","kind":"archive","observed_at":null}],"provenance":{"desk":"living-knowledge","provider":"codex","model":"gpt-6-luna","note":"Rewritten automatically; newer than the original text where they disagree."}}}
