Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.288 ·

Auto-compact window can now be set per model

autoCompactWindow can now hold a different value for each model, and /autocompact and /config show and save it for the current model

Group of 3 Use it now Improvements
JSON All of v2.1.288
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
CompactionArea: what it touches
ImprovementsKind: in v2.1.288,
What probably matters to youSection of the release

Unclear It is not shown whether the top-level setting was already read in the same way before.

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.
  • /autocompact saves to the per-model setting.
  • /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.
  • The message about the CLAUDE_CODE_AUTO_COMPACT_WINDOW environment variable override is unchanged.

Why

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.

Read from
Since it was published

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 since Anthropic's documentation has since written up modelSettings, on Use Claude Code in VS Code. When the current model supports [effort levels](/docs/en/model-config.md#adjust-effort-level), the picker also shows an **Effort** row and the model name button shows the selected level. When you pick a level other than `max`, Claude Code … vs-code see the edit
Confirmed since Anthropic'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 window changelog see the edit
Added since A 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-settings see 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 doubtIt is not shown whether the top-level setting was already read in the same way before.
Anthropic's documentation agreesA small documentation edit on Deploy managed settings touched a line naming autoCompactWindow after this was published.
Anthropic's release notes agreeChanged /autocompact to save the auto-compact window per model, so each model keeps its own setting when you switch

See this entry in the whole of v2.1.288 →

Feedback