Skip to content
Lydia Hallie ✨· @lydiahallie · X·Top PickAI score69

Claude Code's idle compaction resumes from a summary; it can be disabled with idleCompaction and the threshold customized

AI brief

Claude Code's idle compaction makes Claude continue from a summary rather than the full context. The author notes it can be turned off by setting "idleCompaction": false in settings, and the threshold can be customized via CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS, which defaults to 200k.

Why it matters

The original post gives the specific parameter for disabling Claude Code's idle compaction and how to set the threshold, which readers can apply directly to their own settings configuration.

Full text · Original

It does mean that Claude continues from a summary instead of your full context though. You can turn it off with "idleCompaction": false in settings.json, and you can set a custom threshold (default is 200k) with CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS

Source: Lydia Hallie ✨ · x.com

Part of the story

See the full story
Claude Code adds idle compaction mechanism