{"name":"CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS","slug":"claude-code-idle-compact-min-tokens","family":"env","title":"Environment variables","noun":"environment variable","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":"2.1.290","removed_in":null,"in_current_build":true,"newest_mined":"2.1.295","builds":6,"mined_builds":138,"first_cited":{"version":"2.1.290","released_at":"2026-10-05 18:12:44","spans":1}},"aliases":[],"entries":[{"version":"2.1.295","anchor":"idle-sleep-compact-timer-compacts-context-just-before-pro","heading":"Idle compaction is now timed to run just before the prompt cache expires","line":"A timer now compacts an idle conversation shortly before its prompt cache runs out, if it is large enough and rate limits allow","released_at":"2026-10-08 18:22:58","reason":"found in this entry's text"},{"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"}],"entries_total":2,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"CLAUDE_CODE_IDLE_THRESHOLD_MINUTES","slug":"claude-code-idle-threshold-minutes","description":"The 'new task? \/clear' hint after a long idle spell now counts from the latest completed turn, including one that finished elsewhere"},{"name":"CLAUDE_CODE_IDLE_TOKEN_THRESHOLD","slug":"claude-code-idle-token-threshold","description":"The 'new task? \/clear' hint after a long idle spell now counts from the latest completed turn, including one that finished elsewhere"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-idle-compact-min-tokens","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}