II.
HookSurface overview
Reference · livehook-surface:subagent-stop
SubagentStop (canonical) overview
Fires when a sub-agent task terminates.
Attributes
eventName
SubagentStop (canonical)
displayName
SubagentStop (canonical)
kind
canonical
direction
event
blocking
false
family
in-process
payloadSchema
type
object
required
- session_id
- transcript_path
properties
session_id
type
string
transcript_path
type
string
stop_hook_active
type
boolean
description
True when the parent agent is already inside a Stop hook (used to avoid recursion).
description
Fires when a sub-agent task terminates.
Outgoing edges
None.
Incoming edges
canonicalized_to1
- hook-surface:claude.subagent-stop·HookSurfaceSubagentStop (Claude)
exposes1
- agent-runtime-impl:claude-code.runtime@1.x·AgentRuntimeImplClaude Code Runtime (1.x)
fires_hook2
- agent-core-impl:claude-agent-sdk.core@current·AgentCoreImplClaude Agent SDK Core (current)
- agent-core-impl:claude-code.core@1.x·AgentCoreImplClaude Code Core (1.x)
maps_hook1
- hook-mapping:subagent-stop-claude-code·HookMapping