Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.288 ·

Auto mode ignores an excluded model set in ANTHROPIC_DEFAULT_SONNET_MODEL

If ANTHROPIC_DEFAULT_SONNET_MODEL names an excluded model, auto mode's classifier uses the Sonnet 5 default and logs the reason once

You'll notice Improvements
JSON All of v2.1.288
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
Auto ModeArea: what it touches
ImprovementsKind: in v2.1.288,
ImprovementsSection of the release

Unclear Which models are on the exclusion list is not stated.

What

ANTHROPIC_DEFAULT_SONNET_MODEL is an environment variable, a setting passed to Claude Code by the shell it starts from. It sets which model the sonnet alias stands for. Auto mode also uses it to choose the model for its classifier.

If the variable names a model that is on an exclusion list, Claude Code now drops it for the classifier and uses the Sonnet 5 default instead. It logs the reason once. Before, any model that passed the usual validity check was used.

Why

This matters if you use auto mode and pin the Sonnet model, for example on a third-party provider. The classifier may now run on a different model from the one you set.

Read from
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Added since A small documentation edit on Claude Code on Google Cloud's Agent Platform touched a line naming ANTHROPIC_DEFAULT_SONNET_MODEL after this was published. Opus models have a higher per-token price than Sonnet models, so if you don't pin a primary model, you're billed at the Opus rate. To use Sonnet 4.5 as the primary model, set `ANTHROPIC_MODEL` to its full model ID. A deployment that steers… google-vertex-ai see the edit
Confirmed since Anthropic's documentation has since written up ANTHROPIC_DEFAULT_SONNET_MODEL, on Model configuration. Where `opus` or `sonnet` resolves to an older model, newer models are available by selecting the full model name explicitly or setting `ANTHROPIC_DEFAULT_OPUS_MODEL` or `ANTHROPIC_DEFAULT_SONNET_MODEL`. model-config see the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhich models are on the exclusion list is not stated.
Anthropic's documentation agreesAnthropic's documentation has since written up ANTHROPIC_DEFAULT_SONNET_MODEL, on Model configuration.
Anthropic's release notes agreeChanged the client-side auto mode classifier to ignore an ANTHROPIC_DEFAULT_SONNET_MODEL pin that names Claude Sonnet 5.5 or Opus 5.5 and…

See this entry in the whole of v2.1.288 →

Feedback