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

Startup warning when CLAUDE_CODE_DISABLE_1M_CONTEXT can't actually be enforced

You'll notice
Useful3 Signal0
Context Limits Notable

If your 1M-context disable flag has no effect on your model, startup now tells you and points at the real setting.

CLAUDE_CODE_DISABLE_1M_CONTEXTCLAUDE_CODE_AUTO_COMPACT_WINDOWautoCompactWindow
What

A second startup notice fires when the 1M-context disable flag is set but the limit is not enforced for the current model.

Details
  • the notice points you at CLAUDE_CODE_AUTO_COMPACT_WINDOW, or the autoCompactWindow setting, as the thing that will actually take effect
  • gated on CLAUDE_CODE_DISABLE_1M_CONTEXT being set
  • both this and the existing notice are printed at startup, except under json or stream-json output or a background session, where they are written to the log as warnings instead
Evidence

CLAUDE_CODE_DISABLE_1M_CONTEXT is set, but the

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 →