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 ·

Hooks can see the API error a subagent stopped on

When a subagent ends on an API error, the error now has a readable message and technical details that hooks can access

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

Unclear It is not clear which hook event receives this error.

What

A subagent is a helper Claude started by the main session. When one stops because of an error from the API (the service Claude Code talks to), the error is now described in two parts:

  • message, written for the person
  • details, for Claude and support: error type, HTTP status, request ID and model

Hooks, commands that run automatically at set moments, are now allowed to see and change these two fields.

Why

Hooks can react to why a subagent failed using structured information instead of plain text.

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 clear which hook event receives this error.

See this entry in the whole of v2.1.336 →

Feedback