Skip to content
View original post on X: Lydia Hallie ✨
Published

Claude Code can compact idle sessions, with an off switch and token threshold

AIAnthropic's Lydia Hallie says Claude Code continues from a summary rather than full context when a session is compacted. Users can disable this with "idleCompaction": false in settings.json, or set a custom threshold through CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS, which defaults to 200k tokens.
Lydia Hallie ✨Verified on X
@lydiahallie
View on X

Part of a thread · earlier post

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 details

Lydia Hallie ✨ · x.comPublished · added here

Original title: It does mean that Claude continues from a summary instead of your full context though. You can turn it off with "idleCompaction": false i...