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.327 ·

Auto-compact window no longer has an upper limit

--autocompact and an agent's autoCompactWindow now accept any window at or above the minimum, with the old 1M cap gone

Group of 2 You'll notice Improvements
JSON All of v2.1.327
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
SubagentsArea: what it touches
ImprovementsKind: in v2.1.327,
ImprovementsSection of the release

What

Compaction is when Claude Code summarises the conversation to free up room in its context, the amount of text the model can see at once. The auto-compact window sets how full the context gets before that happens. It now has a minimum only, with no maximum.

  • --autocompact help now reads "Auto-compact window size (auto, or at least 100k tokens)". It used to read "auto, or 100k–1M tokens", and the validation error was reworded to match.
  • autoCompactWindow in agent files (files that define a custom agent) now has no upper bound. The warning reads "Must be an integer of at least" a minimum instead of "from" a minimum "to" a maximum, and the field description reads "Auto-compact window for this agent, in tokens, at least" a minimum.
  • Agent-file name checking moved into a shared validator, and the lower bound is now one constant.

Why

Windows larger than the old 1M cap are now accepted, both for a single session and in agent files. Values below the minimum are still rejected.

Read from
Names in the bundleautoCompactWindow
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 autoCompactWindow, on All settings. * `autoCompactWindow`: a token count of `100000` or more, or `"auto"` for the window tuned for the model. [`/autocompact`](https://code.claude.com/docs/en/model-config#set-the-auto-compact-window) saves here. For that model, the value take… settings-reference see the edit
Added since A small documentation edit on Subagents in the SDK touched a line naming autoCompactWindow after this was published. | `autoCompactWindow` | `number` | No | Lower the [auto-compact window](https://code.claude.com/docs/en/sub-agents.md#subagent-auto-compact-window) for this agent when it runs as a subagent, to a token count of `100000` or more. Requires T… agent-sdk/subagents see the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesA small documentation edit on Subagents in the SDK touched a line naming autoCompactWindow after this was published.

See this entry in the whole of v2.1.327 →

Feedback