II.
HookSurface JSON
Structured · livehook-surface:claude.setup
Setup (Claude Code) json
Inspect the normalized record payload exactly as the atlas UI reads it.
{
"id": "hook-surface:claude.setup",
"_kind": "HookSurface",
"_file": "channels-hooks/hook-surfaces/native/claude-code-extended-hooks.yaml",
"_cluster": "channels-hooks",
"attributes": {
"eventName": "Setup (Claude Code)",
"displayName": "Setup (Claude Code)",
"kind": "native",
"originVendor": "Anthropic",
"direction": "pre",
"blocking": false,
"family": "shell-hook",
"payloadSchema": {
"type": "object",
"required": [
"session_id",
"transcript_path",
"cwd",
"hook_event_name",
"trigger"
],
"properties": {
"session_id": {
"type": "string"
},
"transcript_path": {
"type": "string"
},
"cwd": {
"type": "string"
},
"hook_event_name": {
"type": "string",
"const": "Setup"
},
"trigger": {
"type": "string",
"enum": [
"init",
"maintenance"
]
}
}
},
"description": "Fires only on `--init-only`, `-p --init`, or `-p --maintenance`. One-time\ninitialization hook for CI / scripts / one-shot bootstrap. Has access to\nCLAUDE_ENV_FILE for environment persistence. Distinct from SessionStart\nwhich fires on every session.\n"
},
"outgoingEdges": [],
"incomingEdges": [
{
"from": "agent-runtime-impl:claude-code.runtime@1.x",
"to": "hook-surface:claude.setup",
"kind": "exposes",
"attributes": {}
},
{
"from": "hook-mapping:claude-setup",
"to": "hook-surface:claude.setup",
"kind": "maps_hook",
"attributes": {}
}
]
}