Claude Code1 December 2026
What Anthropic changed
Version 2.1.334 of Claude Code came out on 1 December 2026. Its changelog says the automatic setting for compaction now sits near 400K tokens on most current models with a 1M context window, and that it covers scripted runs and the Agent SDK too. The change is rolling out. It is already on for sessions that go through a third-party provider or have telemetry turned off.
Anthropic’s docs explain the setting. It is called auto, and Anthropic tunes it per model for cost and performance. On these models auto is now 400K, so compaction runs at about 367K tokens. The docs name the Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later.
