Follow Discord
Sweep 04 Dec 2026 · 17:52Z Build v2.1.337 554 read Stable v2.1.332 Latest v2.1.337 Next v2.1.337 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.337 ·

Agents whose hooks cannot run are now refused instead of started

Claude Code now refuses to switch to an agent whose hooks cannot run, and a non-interactive run with such an agent exits with code 1

You'll notice Improvements
JSON All of v2.1.337
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
AgentsArea: what it touches
ImprovementsKind: in v2.1.337,
ImprovementsSection of the release

Unclear What makes an agent's hooks count as unable to run is not stated.

What

An agent here is a named setup that defines how Claude behaves, and it can include hooks, which are commands Claude Code runs automatically at certain moments. Two places now check whether an agent's hooks are able to run:

  • apply_flag_settings: a request to switch to such an agent is refused, with a message that the agent switch was not applied.
  • Headless runs: a run with no interactive screen stops at startup with exit code 1 when given such an agent.

Separately, the get_settings response, used by programs that drive Claude Code, now includes a field named served_settings_retrying.

Why

An agent whose hooks cannot run is now blocked up front, rather than running silently without them.

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 doubtWhat makes an agent's hooks count as unable to run is not stated.

See this entry in the whole of v2.1.337 →

Feedback