Lydia Hallie of Anthropic's Claude Code team announced on X on December 2 that 400K auto-compact is rolling out as the default for most 1M-context models, which should lower usage in long sessions. Per the 2.1.334 changelog released December 1 and the official docs, the auto window becomes 400K on the Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later, including -p and SDK runs; compaction actually fires at about 367K tokens, when the status line reads about 37% because it counts against 1M. To keep the full window, run /autocompact 1m or change the new Auto-compact window row in /config.
Key Takeaways
- ✓Applies to native 1M-window models: the Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later, including -p and SDK runs.
- ✓Compaction fires at about 367K tokens; the status line's used_percentage counts against 1M, so it reads about 37% at that point. That is expected, not a quota bug.
- ✓Anthropic's reason: compacting sooner keeps later requests smaller, so long sessions use fewer tokens; auto remains the recommended setting.
- ✓To restore the full window, run /autocompact 1m (compacts near 967K, saved per model version) or use the Auto-compact window row in /config; teams can pin it per model under modelSettings in managed settings.
- ✓Still rolling out: already on with third-party providers or telemetry off; desktop and cloud scheduled tasks, self-hosted environments and resumed sessions already past 400K keep 1M by default.
Key Decision Metrics at a Glance
Heavy Claude Code use: compare subscription limits and API bills
Compare 40 dev plans & simulate token costs vs $20/mo subscriptions
Project Links & Resources
Direct AccessIn-Depth Technical Analysis
Background and pain points
A 1M context window lets Claude Code sessions run for a long time, but every message carries the whole history, so requests grow and usage climbs as a session goes on. On December 2 Lydia Hallie of Anthropic's Claude Code team announced on X that 400K auto-compact is becoming the default for most 1M models.
Architecture and mechanism
Per the 2.1.334 changelog and the model configuration docs, auto is a compaction window Anthropic tunes per model. On native 1M models (the Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later) it is now 400K, including -p and SDK runs. When compaction runs, the conversation is replaced by a summary. The change is rolling out and is already on with third-party providers or telemetry off.
Benchmarks
This is a default change with no benchmark. The docs say that on auto at 400K compaction runs at about 367K tokens, when the status line reads about 37% because it counts against 1M; set to 1M, it runs at about 967K. Anthropic has not published how much usage it saves.
Getting started
Run claude update to get 2.1.334, then run /autocompact with no argument to see your current window. When you need a whole repository in view, use /autocompact 1m or the Auto-compact window row in /config; teams can pin it per model under modelSettings in managed settings. Note that CLAUDE_CODE_AUTO_COMPACT_WINDOW is measured in raw tokens.
Benchmark side-by-side against alternatives, or calculate monthly token cost vs subscription break-even.
Discussion & Comments
Sign in to join the discussion
Connect with AI developers to exchange benchmark insights.