Unclear The exact name of the setting and the full shape it accepts are not established.
What
The auto-compact window is how full the conversation gets before Claude Code automatically summarises it to free up room. It used to be one value for all models. It can now differ by model:
autoCompactWindowcan be set insidemodelSettingsfor a model, in tokens (100000 to 1000000) orauto. It is read both at the top level and per model, and combined across settings files.- The value can also be an object with
byModelanddefault.autofalls back to the later sources: server-provided data, any experiment, then the model's own default. /autocompactsaves to the per-model setting./configand the auto-compact dialog now name the model, for example "Auto-compact window for " and "Current setting for ", and the set and reset messages say the same.- The message about the
CLAUDE_CODE_AUTO_COMPACT_WINDOWenvironment variable override is unchanged.
Why
A window you set while using one model no longer applies to every other model, so models with different context sizes can each compact at a point that suits them.
Names in the bundlebyModel
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
The exact name of the setting and the full shape it accepts are not established.