Claude Code v2.1.221 ·
New --autocompact flag for the auto-compact window
You can set the auto-compact window at launch with --autocompact, using auto or 100k to 1M.
Use it nowTier: how much it should matter to you
5Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
CompactionArea: what it touches
New FeaturesKind: in v2.1.221,
What probably matters to youSection of the release
What
A CLI option sets the auto-compact window size directly at launch.
Details
- Accepts
auto or a token count from 100k to 1M, including shorthand forms; anything else is rejected with an explicit message. - Backs the existing autoCompactWindow setting, described as "Auto-compact window size" and clamped to 1e5 to 1e6.
Evidence
--autocompact <auto|tokens>
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Usage
claude --autocompact 200k
See this entry in the whole of v2.1.221 →