Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.274 ·

Smarter guidance when a model or 1M-context request can't be fulfilled

Messages suggesting /model, --model, or usage credits now adapt based on whether you're in an interactive session, self-hosted, or using the SDK/CLI/GitHub Action

TierYou'll noticehow much it should matter to you
Useful2my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaElsewherewhat it touches
KindImprovementsin v2.1.274,
Group of 2 You'll notice

Messages suggesting /model, --model, or usage credits now adapt based on whether you're in an interactive session, self-hosted, or using the SDK/CLI/GitHub Action

What

  • When 1M-context usage requires usage credits, the guidance message now checks whether the session is non-interactive or self-hosted-like, and whether the extra-usage-credits command is actually available (which itself depends on the DISABLE_EXTRA_USAGE_COMMAND setting). Depending on the result, the message either offers the /usage-credits command or only mentions /model.
  • Similarly, when a requested model isn't available, the suggestion of switching via /model versus the --model flag now takes into account whether the session is interactive, and whether it's running in contexts like the SDK, CLI, or claude-code-github-action.

Why

Previously these suggestions could point users toward commands or flags that don't actually work in their current context (for example, suggesting an interactive /model command inside a non-interactive script or GitHub Action). The messages now match what's actually usable in the situation.

Read from
Names in the bundle/usage-credits/modelDISABLE_EXTRA_USAGE_COMMAND
What the documentation says
/model Use Claude Code in the cloud modified, high confidence Auto-compaction runs automatically when the context window approaches capacity. Cloud sessions set [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](/docs/en/env-vars) themselves, so compaction triggers partway through the [auto-compact window](/docs/en… see the edit
/model SEP-2640: Skills Extension modified, high confidence * **Fragmented distribution.** A server and the skill that teaches an agent to use it are versioned, discovered, and installed separately. Users installing a server from a registry have no signal that a companion skill exists. ([problem st… see the edit
/model Configure server-managed settings modified, medium confidence If your devices are enrolled in an MDM or endpoint management solution, endpoint-managed settings provide stronger security guarantees because the settings file can be protected from user modification at the OS level. Endpoint-managed sett… see the edit
/model sent_count = len(messages sent in the compaction request) modified, medium confidence Send the `compact-2026-09-04` beta header on the request that asks for the summary and on every later request that carries the signed block. On-demand compaction is available on the Claude API but not on Amazon Bedrock or Google Cloud. It … see the edit
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.

Confirmed since Anthropic's documentation has since written up /usage-credits, on Error reference. * Where the message names `/usage-credits`, run it to turn on metered billing for the 1M variant on Pro and Max, or to request usage credits from your admin on Team and Enterprise. Once usage credits are on, restart Claude Code or start a … errors see the edit
Added since A small documentation edit on Claude Code gateway compatibility guide touched a line naming /model after this was published. The request is `GET /v1/models?limit=1000` with a timeout of 3 seconds by default, and any redirect is treated as failure so the credential can't leak to a redirect target. A gateway that responds slower than the timeout, or one that redir… llm-gateway-protocol see the edit
Confirmed since Anthropic's documentation has since written up /model, on Environment variables. | `CLAUDE_CODE_GATEWAY_MODEL_DISCOVERY_TIMEOUT_MS` | Timeout in milliseconds for the [gateway model discovery](/docs/en/llm-gateway-protocol#model-discovery) request that `CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY` turns on (default: `300… env-vars see the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agrees/model on Use Claude Code in the cloud
Anthropic's release notes agreeFixed error hints in Claude Desktop sessions to suggest slash commands like /usage-credits instead of CLI flags that cannot be used there

See this entry in the whole of v2.1.274 →

Feedback