Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.334 ·

Auto-compact window gets a new default, an offer dialog, a cap and a settings row

The auto-compact window gains a lower default for 1M models with a notice, a choice prompt, a cap on the threshold and a settings row

Group of 3 You'll notice Improvements
JSON All of v2.1.334
You'll noticeTier: how much it should matter to you
4Useful: my rating, 1 to 5
4Signal: worth watching, 1 to 5
CompactionArea: what it touches
ImprovementsKind: in v2.1.334,
What probably matters to youSection of the release

Unclear Which accounts and models receive the lower default is decided remotely and not stated.

What

Auto-compact is when Claude Code summarises the conversation on its own once the context window (how much of the conversation the model can see at once) gets full enough. The auto-compact window is how full it gets before that happens, set with /autocompact. This release adds several pieces around it:

  • A default window computed for certain models, with a one-time notice: "Autocompact now defaults to {size} tokens" and "Auto will now compact near {size} tokens instead of 1M." The notice points to /autocompact.
  • That default applies only on a fixed list of entry points (cli, sdk-cli, claude-vscode and others) when no default is served remotely. Its values come from remote configuration (windows) and a hostPercent rollout.
  • CLAUDE_CODE_AUTO_COMPACT_WINDOW still overrides it.
  • An offer that asks about the window for models set to auto, with the choices 'auto all', 'auto model', 'keep all' and 'not now'. The answer is saved to autoCompactWindow under modelSettings, and Claude Code keeps per-user lists of who was asked, tried it or was told.
  • Result messages include "Autocompact settings kept" and "Autocompact unchanged · /autocompact to set a size".
  • A new settings row, 'Auto-compact window', to pick auto or a fixed token size. It is locked when CLAUDE_CODE_AUTO_COMPACT_WINDOW is set ("Set by CLAUDE_CODE_AUTO_COMPACT_WINDOW. Unset it to change this setting here.") or when policy settings manage it.
  • The point at which compaction fires can now be capped by a limit (compactAtMost); before it had no cap. The percentage override can also be raised by a computed value, and tengu_peppy_gosling is still read with a fallback of 0.

Nothing has been read about tengu_peppy_gosling or the gate around the offer, so whether they are active is unknown.

Why

On models with a 1M-token context window, a lower default means compaction can happen much earlier in a long session than before, which changes how much history stays in view and what long sessions cost. Look out for the notice, and use /autocompact or the settings row if you prefer a different size.

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 doubtWhich accounts and models receive the lower default is decided remotely and not stated.
Anthropic's release notes agreeAdded an Auto-compact window row to /config to see and change the size that /autocompact sets

See this entry in the whole of v2.1.334 →

Feedback