How to disable Claude Code idle compaction and set a custom token threshold

EricBuess · x · 2026-10-15

Lydia Hallie shared details on Claude Code's new idle compaction: Claude will continue from a summary instead of your full context. You can turn it off with "idleCompaction": false in settings..

A custom trigger threshold (default 200k tokens) can be set via the CLAUDECODEIDLECOMPACTMINTOKENS environment variable.

Original post →

More from coding & agent

coding & agent channel →