The hook now names the subagent that started a subagent, as spawner on its reports. It reads Claude Code's own record, <session>/subagents/agent-<id>.meta.json (parentAgentId, spawnDepth), because no hook payload carries it on 2.1.284. That file is written only after SubagentStart's hooks return, so a SubagentStart that cannot say the depth is reported noted, and the account is created on the subagent's first tool call. Reports now say protocol version 3, with fixtures from didbot's https://tangled.org/did:plc:swttlkbjvcoln67iievud7b3/pulls/1145, and plan/harnesses.md records the measurement.
Owner review needed: the new optional wire field spawner, and creating a subagent's account on its first tool call rather than on SubagentStart. A version-2 daemon refuses these reports. The fixtures are pinned to didbot d652e5b5, where that pull merged.
🤖 Generated with Claude Code