CLAUDE_CODE_AUTO_COMPACT_WINDOW

Description

Environment variable controlling the token threshold at which auto-compact triggers. Recommended workaround value in Cherny's interim settings block is 400000 (400k tokens) — delaying compaction and preserving deeper context in the active window. Part of the four-variable interim mitigation package for the Q1 2026 thinking regression.

Key claims

Relations

Sources

src-20260409-35a0e20bf159