ConceptIdle Compaction
Idle Compaction
A context management mechanism in Claude Code that, when a conversation is idle and the prompt cache is about to expire, proactively compacts the conversation history into a summary to reduce the cost of rebuilding the cache after invalidation. The trigger threshold can be adjusted via the CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS environment variable, and the feature can be disabled through the idleCompaction setting in settings.json.
Timeline (last 90 days)
Oct 16
Idle compaction adds a separate toggle row in /config, which can be turned off or back on at any time, and the notification after compaction is complete includes a hint about turning it off.
Unverified50%