Claude Code sets 400k auto-compact as default for 1M models
The default shift means many users will hit compaction at 400k without realising it, quietly changing how much session history survives in long agentic runs. Developers working on large refactors or extended agent sessions should check /config and decide explicitly between the 400k default and /autocompact 1m based on their token budget. Anyone paying per token on Claude Code gets a built-in cost lever, while those prioritising context fidelity need to act to keep the full window.
Anthropic is rolling out a 400k auto-compact threshold as the default in Claude Code for most models running the 1M context window, per an announcement by Lydia Hallie. The change means long coding sessions will now automatically compress their context at 400k tokens instead of running closer to the full 1M limit.
Users who want the entire 1M window can still opt out of the tighter default by running the command "/autocompact 1m" or adjusting the setting in "/config". Auto-compact summarises prior conversation and file context before the window fills, which keeps sessions running but can lose fine detail from earlier in the session.
The tighter default is framed as helping usage efficiency for long sessions, since compacting earlier consumes less of the token allowance. Teams running extended agentic coding tasks in Claude Code now face a trade-off between lower token consumption and retaining more raw context, controlled entirely through the new settings.
Claude Code 现在默认上下文自动压缩的上限是 400k 了,主动设置才是 1M Lydia Hallie ✨ @lydiahallie 400k auto-compact is now rolling out as the default in Claude Code for most 1M models! This should help with your usage if you run longer sessions You can still keep the full 1M window by running "/autocompact 1m" or in /config 🔗 View Quoted Tweet📊 55 ⚡
This report is categorized under AITOP's "Products" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Claude Code, Anthropic, coding assistants, context window.
Source attribution: curated from 宝玉 (@dotey). Cross-source corroboration: 11 independent sources have covered this development (including claudedevs, Blognone, TestingCatalog), confirming industry-wide signal strength.