Skip to main content

Module post_task

Module post_task 

Source

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_id is the spawner and tool_response.agentId is 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.