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.335 ·

CLAUDE_CODE_SUBAGENT_MODEL is limited in desktop repository settings and reported to hosts

Desktop Code tab repository settings can set CLAUDE_CODE_SUBAGENT_MODEL only to known model values, and hosts can now read the chosen subagent model

Group of 2 You'll notice Internal Changes
JSON All of v2.1.335
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
SubagentsArea: what it touches
Internal ChangesKind: in v2.1.335,
ImprovementsSection of the release

What

CLAUDE_CODE_SUBAGENT_MODEL is the environment variable that picks the model for subagents, the helpers Claude Code starts to handle parts of a task. Two changes affect it.

  • Desktop repository settings: when settings are applied for the desktop Code tab (firstPartyCodeTab), the value is accepted only if it is empty, inherit, haiku, sonnet, opus, or a claude-haiku, claude-sonnet or claude-opus model id. It is refused if a policy forces the model. Refused values are logged with the reason "desktop repository model".
  • Session info: an optional, internal field subagentModel now reports the model ID that CLAUDE_CODE_SUBAGENT_MODEL names, for a host that starts another session.

Why

A repository opened in the desktop Code tab can no longer point subagents at an arbitrary value or override a model your policy forces. Desktop and other host apps that start sessions can now see which subagent model is in use.

Read from

See this entry in the whole of v2.1.335 →

Feedback