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.
--autocompacthelp 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.autoCompactWindowin 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.
Names in the bundleautoCompactWindow
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
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agrees
A small documentation edit on Subagents in the SDK touched a line naming autoCompactWindow after this was published.