Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.238 ·

SDK result messages now report subagent statistics

SDK result messages now include a summary of the subagents your session started.

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

Every result message the SDK emits carries a new subagent_stats block summarising the subagents the Agent tool started this session. It is on the published result schema as an optional field marked internal, ships to every SDK consumer on this build with no flag, and is attached on success, on budget exhaustion, and on both structured-output retry-exhaustion errors.

Details
  • Counters include subagents actually started (a refused or failed launch is not counted), how many were requested background, foreground or unset, how many ended up in the background, counts by agent type, maximum spawn depth, and spawns made from inside another subagent.
  • Also tracked: completed, failed, killed split into parent/user/system, and refused split into depth limit, concurrency limit and budget. A user cancel records a kill attributed to the user.
  • task_started and task_notification events gained is_backgrounded and spawn_depth.
  • Snapshot failures are caught and dropped, so a result is still emitted without the block. Nothing in the build reads the field locally; it exists for whoever consumes the result stream.
Evidence

@internal Running totals of the subagents the Agent tool started this session; see SDKSubagentStats., Subagents actually started (one tengu_agent_tool_selected each); a refused or failed launch is not counted., subagent_stats, Spawns made from inside another subagent (depth > 1).

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

Read from
Names in the bundlesubagent_stats

See this entry in the whole of v2.1.238 →

Feedback