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 ·

Subagents can be given a limit on how long they wait out a model rate limit

CLAUDE_CODE_RETRY_WATCHDOG_MAX_SUBAGENT_MODEL_LIMIT_WAIT_MS caps a subagent's wait on a model rate limit when CLAUDE_CODE_RETRY_WATCHDOG is set

Use it now Notable 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
What

A subagent is a helper agent that Claude Code starts to work on part of a task. Claude Code now reads a new environment variable, CLAUDE_CODE_RETRY_WATCHDOG_MAX_SUBAGENT_MODEL_LIMIT_WAIT_MS, which caps how long a subagent waits when it runs into a rate limit for a model. An environment variable is a value you set in your shell before starting Claude Code. A rate limit is a cap on how much you can use a model in a given period.

The cap only applies when all of these hold:

  • CLAUDE_CODE_RETRY_WATCHDOG is set.
  • CLAUDE_CODE_RETRY_WATCHDOG_MAX_SUBAGENT_MODEL_LIMIT_WAIT_MS is set.
  • Claude Code knows which kind of rate limit was hit.
  • The limit is a model limit, or the model passes a further check.

Otherwise this setting has no effect. Claude Code uses it in two places, one of them the path that retries failed requests.

Why

If you run Claude Code unattended with the retry watchdog switched on, you can stop a subagent from stalling for a long time on a model rate limit.

Read from
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeAdded CLAUDE_CODE_RETRY_WATCHDOG_MAX_SUBAGENT_MODEL_LIMIT_WAIT_MS so unattended retry mode can end a subagent's wait at some usage limits…

See this entry in the whole of v2.1.336 →

Feedback