idleCompaction
A Claude Code settings key, read out of the shipped bundle. No mined inventory carries it: everything below comes from what this site has written about it.
Stop Claude Code from compacting a long conversation that you've stepped away from
Anthropic's own wording. Read off All settings, captured 2026-11-21.
In the changelogs
6Releases whose published page names idleCompaction.
-
v2.1.327
Server setting no longer picks the new renderer; settings screen checks where values come from
The new renderer is no longer chosen by a server-controlled setting here, and the settings screen now checks whether some values come only from your user settings
found in this entry's text
-
v2.1.302
The config panel now reads the
idleCompactionsettingClaude Code's config panel now looks up the
idleCompactionsetting and where it came from, to tell whether you set it yourselffound in this entry's text, named in this entry
-
v2.1.302
idleCompactionnow sits with the on/off compaction settingsThe
idleCompactionsetting now appears besideprecomputeCompactionEnabledin Claude Code's lists of settings and on/off togglesfound in this entry's text, named in this entry
-
v2.1.302
Idle compaction messages now explain the timing and how to turn it off
When Claude Code compacts while you are idle, it now says it did so before the prompt cache expired and how to turn this off
found in this entry's text, named in this entry
-
v2.1.290
Idle compaction can be turned off with a setting and tuned with an environment variable
A new
idleCompactionsetting turns off background compaction while you're idle, andCLAUDE_CODE_IDLE_COMPACT_MIN_TOKENSsets its size thresholdfound in this entry's text
-
v2.1.290
New idleCompaction setting stops compaction while a session is idle
Set idleCompaction to false to stop Claude Code compacting a long conversation while the session sits idle
named in this entry, found in this entry's text
First cited
3The earliest release whose published evidence quoted idleCompaction was v2.1.302, 16 Oct 2026. That is the oldest release this project wrote about it, so it is a floor on the name's age and not the release that introduced it. It is not a presence reading: which builds carried the name is the table below.
Presence across releases
0The miner has never read a build containing this name. It is here because a changelog entry of ours names it, which is evidence that it existed and not evidence of which releases carried it. The inventory starts at v2.1.138 and everything older than that was never mined.
Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the settings key does. All settings keys.