Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.336 ·

New CLAUDE_CODE_SUBAGENT_NO_SMALL_MODELS keeps subagents off Sonnet and Haiku

A new CLAUDE_CODE_SUBAGENT_NO_SMALL_MODELS variable stops subagents running on Sonnet or Haiku, moving them to a larger model or refusing to start

Group of 2 Use it now Notable No documentation found New Features
JSON All of v2.1.336
Use it nowTier: how much it should matter to you
5Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
SubagentsArea: what it touches
New FeaturesKind: in v2.1.336,
What probably matters to youSection of the release

Unclear It is not confirmed that setting this variable is what removes Sonnet and Haiku from the agent model choices.

What

A subagent is a helper Claude starts to work on part of a task, which can run on its own model. A new environment variable (a named setting a program receives at start), CLAUDE_CODE_SUBAGENT_NO_SMALL_MODELS, keeps subagents off the smaller Sonnet and Haiku models. It did not exist in v2.1.335.

  • When it applies, choosing a subagent's model refuses Sonnet and Haiku and falls back to Opus or to the model the session inherited.
  • If no such model is available, the subagent does not start, with the error 'The subagent was not started: no model larger than Sonnet is available for it.'
  • It applies only in a certain kind of session or when CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST is set.
  • The model choices offered for an agent leave out sonnet and haiku, with the note: "Sonnet and Haiku are not offered on this session: an agent that would run on one runs on a larger model, usually Opus."
  • The variable is on Claude Code's list of variable names next to the other CLAUDE_CODE_SUBAGENT_* variables, CLAUDE_CODE_REQUIRED_PLUGINS_HOLD and CLAUDE_CODE_GIT_CHECK_ONLY_IN_REPOSITORY.

Why

Programs that embed Claude Code can make sure subagents never quietly run on a small model, and see a clear error when no larger one is available.

Read from
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 doubtIt is not confirmed that setting this variable is what removes Sonnet and Haiku from the agent model choices.

See this entry in the whole of v2.1.336 →

Feedback