II.
HookSurface JSON
Structured · livehook-surface:subagent-stop
SubagentStop (canonical) json
Inspect the normalized record payload exactly as the atlas UI reads it.
{
"id": "hook-surface:subagent-stop",
"_kind": "HookSurface",
"_file": "channels-hooks/hook-surfaces/canonical/lifecycle-and-native-stubs.yaml",
"_cluster": "channels-hooks",
"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."
},
"outgoingEdges": [],
"incomingEdges": [
{
"from": "agent-core-impl:claude-agent-sdk.core@current",
"to": "hook-surface:subagent-stop",
"kind": "fires_hook",
"attributes": {}
},
{
"from": "agent-core-impl:claude-code.core@1.x",
"to": "hook-surface:subagent-stop",
"kind": "fires_hook",
"attributes": {}
},
{
"from": "agent-runtime-impl:claude-code.runtime@1.x",
"to": "hook-surface:subagent-stop",
"kind": "exposes",
"attributes": {}
},
{
"from": "hook-mapping:subagent-stop-claude-code",
"to": "hook-surface:subagent-stop",
"kind": "maps_hook",
"attributes": {}
},
{
"from": "hook-surface:claude.subagent-stop",
"to": "hook-surface:subagent-stop",
"kind": "canonicalized_to",
"attributes": {}
}
]
}