Ado· @adocomplete · X·AI score52
Claude Code adds idle compaction
AI brief
Claude Code has launched idle compaction: the prompt cache is kept for 1 hour, and sessions of 200K+ tokens are automatically compacted after about 54 minutes idle, so you get a warm summary instead of a cold cache when you return. The threshold can be set via CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS, and the feature can be turned off with "idleCompaction": false.
Full text · Original
New in Claude Code: idle compaction
The prompt cache lives 1h. Leave a 200K+ token session idle ~54 min and it gets auto-compacted, so you come back to a warm summary, not a cold re-cache.
Set the Threshold: CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS
Turn Off: "idleCompaction": false
Source: Ado · x.com