Constants§
- SCRIPT
- Claude PostToolUse(Task) hook — record a nested subagent→subagent spawn edge.
Fires after a Task/Agent tool call returns; the payload’s top-level
agent_idis the spawner andtool_response.agentIdis the child. Only nested spawns (spawner is itself a subagent) are recorded — a root spawn is already covered by the SubagentStart hook. Fire-and-forget, fail-open.