{"version":"2.1.238","anchor":"subagent-spawns-are-counted-in-memory","canonical_anchor":"subagent-spawns-are-counted-in-memory","heading":"Subagent spawns are counted in memory","tier":"internal","area":"Subagents","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.238\/e\/subagent-spawns-are-counted-in-memory","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.238","markdown":"### Subagent spawns are counted in memory\n\nClaude Code now counts how many subagents you spawn, but nothing shows you that number yet.\n\n**What**\n\nA 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.\n\n**Details**\n\n- 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.\n- Also records completions, failures, kills split into parent\/user\/system, and refusals split into depth limit, concurrency limit and budget.\n- An `agentSpawned` event fires on every spawn.\n\n**Evidence**\n\n`spawned_by_subagents`\n\n- Area: Subagents\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 3\/5\n- Present in the build but not switched on"}