You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
CompactionArea: what it touches
ImprovementsKind: in v2.1.299,
ImprovementsSection of the release
What
Autocompact is the step where Claude Code summarises the conversation automatically as it gets close to the model's context window, the amount of text the model can hold at once. Claude Code has a new warning about autocompact. It is written to the log, and in headless mode, where Claude Code runs without its interactive screen, the warning text is also printed.
The warning links to the documentation section on correcting the window for a gateway or custom model id. A gateway is a service that sits between Claude Code and the model provider.
Why
If you reach Claude through a gateway or use a custom model id, Claude Code can misjudge how large the context window is. This warning tells you where to find the fix.