Unclear Whether a value above 1,000,000 now takes effect, or is still capped somewhere else, is not settled.
What
Auto-compact is when Claude Code summarises older parts of a conversation to free up room. The auto-compact window is how large the conversation may grow, in tokens (the small chunks of text the model counts), before that happens. Claude Code can now raise this window for a conversation when the fixed load sent with every request is large. That fixed load includes things like tool and MCP server definitions.
- When the window is raised, a notice appears: "Raised this conversation's auto-compact window from" followed by the old and new token counts.
- The context usage view now adds an Auto-compact window line saying it was raised from one size to another in this conversation "to fit what loads with every request". The line appears only when the window was raised.
- The context data and the session status gain an optional
loadRaisefield withfromWindowandtoWindow. It is present while the window is raised above the base window. - The warning for an invalid
CLAUDE_CODE_AUTO_COMPACT_WINDOWno longer has an upper limit case. It now reads "Set it to a size of at least ..." instead of asking for a size between a minimum and a maximum. The maximum-window check when reading the value was dropped, and the limit now uses the larger, raised window. - The auto-compact window slider now works out its stops from the model's context window and the configured value. The slider is wider, its left and right arrows highlight on hover and respond to clicks, and the tab headers are padded and aligned.
Why
If many tools or MCP servers load with every request, a small auto-compact window can leave little room for the conversation itself. Raising the window means compaction may start later in those sessions. Check the context usage view to see whether this has happened in your conversation.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
If you also set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](https://code.claude.com/docs/en/env-vars#variables), the subagent uses the lowest of the `autoCompactWindow` value, the model's context window, and the window the variable sets. Before v2…sub-agents see the edit
A warning that quotes your `CLAUDE_CODE_AUTO_COMPACT_WINDOW` value means your session isn't using the value as you set it. To stop the warning, set a number such as `CLAUDE_CODE_AUTO_COMPACT_WINDOW=200000`. On Claude Code v2.1.304 or later…model-config see the edit
Whether a value above 1,000,000 now takes effect, or is still capped somewhere else, is not settled.
A small documentation edit on Model configuration touched a line naming CLAUDE_CODE_AUTO_COMPACT_WINDOW after this was published.