{"name":"idleCompaction","slug":"idlecompaction","family":"setting","title":"Settings keys","noun":"settings key","description":"A new `idleCompaction` setting turns off background compaction while you're idle, and `CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS` sets its size threshold","description_source":"entry","described_by":{"version":"2.1.290","anchor":"idle-compaction-gets-a-user-setting-and-a-min-token-env-over"},"presence":{"first_seen":null,"removed_in":null,"in_current_build":false,"newest_mined":"2.1.295","builds":0,"mined_builds":138,"first_cited":null},"aliases":[],"entries":[{"version":"2.1.290","anchor":"idle-compaction-gets-a-user-setting-and-a-min-token-env-over","heading":"Idle compaction can be turned off with a setting and tuned with an environment variable","line":"A new `idleCompaction` setting turns off background compaction while you're idle, and `CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS` sets its size threshold","released_at":"2026-10-05 18:12:44","reason":"found in this entry's text"},{"version":"2.1.290","anchor":"new-idlecompaction-setting-to-stop-idle-compaction","heading":"New idleCompaction setting stops compaction while a session is idle","line":"Set idleCompaction to false to stop Claude Code compacting a long conversation while the session sits idle","released_at":"2026-10-05 18:12:44","reason":"named in this entry, found in this entry's text"}],"entries_total":2,"docs":[],"docs_total":0,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/setting\/idlecompaction","family_url":"https:\/\/changelogs.core-directive.com\/reference\/setting.json"}