Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.238 Home All releases olderv2.1.237 v2.1.239newer
Claude Code v2.1.238

Subagent spawns are counted in memory

Under the hood
Useful1 Signal3
Subagents

Claude Code now counts how many subagents you spawn, but nothing shows you that number yet.

An in-memory subagent spawn counter with a snapshot accessor exists but has no surface in this build.

What

A counter now tracks subagent activity for the life of the process and exposes it as a snapshot, with no user-facing surface in this build.

Details
  • Records spawns by requested mode (background, foreground, unset), how many started in the background, maximum nesting depth, spawns made by other subagents, and counts per agent type.
  • Also records completions, failures, kills split into parent/user/system, and refusals split into depth limit, concurrency limit and budget.
  • An agentSpawned event fires on every spawn.
Evidence

spawned_by_subagents

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

Related

Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.

See this entry in the whole of v2.1.238 →