Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.223 Home All releases olderv2.1.222 v2.1.224newer

Auto-compact enforces an assumed context window for unrecognized models

Use it now
Useful4 Signal0
Compaction Notable

Unknown model names now get an assumed context budget so auto-compact works instead of stalling.

CLAUDE_CODE_DISABLE_UNKNOWN_MODEL_WINDOW_ENFORCEMENTmodelOverridesDISABLE_AUTO_COMPACTDISABLE_COMPACT/context
What

With auto-compact on and a model name Claude Code does not know, the session is now kept within an assumed token budget instead of waiting for the API to report a window.

Details
  • the context-window resolver gained a new result source: "unknown-model", which pins the window to the computed maximum
  • a notice names the model, states the assumed token budget, and points at the modelOverrides setting or an update
  • model overrides are consulted first via a new helper reading eo().modelOverrides, so an overridden model is not treated as unknown
  • /context and /config style output now label the figure "default for an unrecognized model", and "default for this model" for model-default sources
  • set CLAUDE_CODE_DISABLE_UNKNOWN_MODEL_WINDOW_ENFORCEMENT=1 to restore the previous wait-for-the-API behaviour; enforcement is also skipped when auto-compact is off via DISABLE_AUTO_COMPACT or DISABLE_COMPACT
Evidence

CLAUDE_CODE_DISABLE_UNKNOWN_MODEL_WINDOW_ENFORCEMENT=1 restores the previous wait-for-the-API behavior., CLAUDE_CODE_DISABLE_UNKNOWN_MODEL_WINDOW_ENFORCEMENT, is not a model this version of Claude Code recognizes, so auto-compact will keep this session within

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.223 →