/model switch no longer rejected as an invalid model when a shared usage limit is hit
When /model's check hits a five-hour or seven-day limit, the result is flagged sharedLimitReached and the switch can go ahead instead of failing as invalid_model
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
Usage & LimitsArea: what it touches
ImprovementsKind: in v2.1.301,
ImprovementsSection of the release
What
When you switch models with /model, Claude Code first checks the model with Anthropic. That check can be refused with a 429, the error meaning you have hit a usage limit.
When the 429 is not about needing credits and the limit is the five_hour or seven_day one, the result is now marked sharedLimitReached: true.
A switch that would otherwise fail with invalid_model is now allowed when sharedLimitReached is true and the caller passes acceptSharedLimitRefusal. This works like the existing path for credits-required refusals.
The model check now passes acceptSharedLimitRefusal: true, alongside the existing acceptSessionModeRefusal.
Before this release, such a switch was rejected as invalid_model unless credits or another condition allowed it.
Why
Hitting your plan's usage limit during the check no longer makes a valid model look invalid. The switch goes ahead, and the limit can be reported for what it is.
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.
Confirmed sinceAnthropic's documentation has since written up /model, on Choose a permission mode.| Has [`ANTHROPIC_DEFAULT_SONNET_MODEL`](/docs/en/model-config#environment-variables) set | Its value, or Sonnet 5 if its value is Claude Sonnet 5.5 or Claude Opus 5.5 |permission-modessee the edit
Added sinceA small documentation edit on Agent SDK reference - Python touched a line naming /model after this was published.| `set_model(model)` | Change the model for the current session. Pass `None` to reset to [Claude Code's default model](/docs/en/model-config). A session in `auto` mode [changes to `default` mode](/docs/en/agent-sdk/permissions#auto-mode-au…agent-sdk/pythonsee the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesA small documentation edit on Agent SDK reference - Python touched a line naming /model after this was published.