What probably matters to youSection of the release
Unclear The exact layout of the per-model setting and how models are named in it is not settled.
What
The auto-compact window is how full the conversation gets before Claude Code automatically summarises it to free up room. It used to be one value for all models. It can now differ by model:
autoCompactWindow can be set inside modelSettings for a model, in tokens (100000 to 1000000) or auto. It is read both at the top level and per model, and combined across settings files.
The value can also be an object with byModel and default. auto falls back to the later sources: server-provided data, any experiment, then the model's own default.
/config and the auto-compact dialog now name the model, for example "Auto-compact window for " and "Current setting for ", and the set and reset messages say the same.
A window you set while using one model no longer applies to every other model, so models with different context sizes can each compact at a point that suits them.
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.
Confirmed sinceAnthropic's documentation has since written up autoCompactWindow, on Claude Code changelog.* Added `autoCompactWindow` to subagent frontmatter and `--agents` definitions, so a subagent can auto-compact earlier than the main conversation's windowchangelogsee the edit
Added sinceA small documentation edit on Deploy managed settings touched a line naming CLAUDE_CODE_AUTO_COMPACT_WINDOW after this was published.* **The auto-compact window for a session**: a managed [`autoCompactWindow`](/docs/en/settings-reference#autocompactwindow) is a default too. The `--autocompact` flag and the `CLAUDE_CODE_AUTO_COMPACT_WINDOW` variable still set the [auto-c…managed-settingssee the edit
Added sinceA small documentation edit on Deploy managed settings touched a line naming autoCompactWindow after this was published.* **The auto-compact window for a session**: a managed [`autoCompactWindow`](/docs/en/settings-reference#autocompactwindow) is a default too. The `--autocompact` flag and the `CLAUDE_CODE_AUTO_COMPACT_WINDOW` variable still set the [auto-c…managed-settingssee the edit
Confirmed sinceAnthropic's documentation has since written up CLAUDE_CODE_AUTO_COMPACT_WINDOW, on Use Claude Code in the cloud.To change the auto-compact window instead, set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](/docs/en/env-vars) in your environment variables, or run [`/autocompact`](/docs/en/commands#all-commands) with a token count in a session where the variable…claude-code-on-the-websee the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtThe exact layout of the per-model setting and how models are named in it is not settled.
Anthropic's documentation agreesAnthropic's documentation has since written up CLAUDE_CODE_AUTO_COMPACT_WINDOW, on Use Claude Code in the cloud.