II.
HookSurface JSON
Structured · livehook-surface:claude.worktree-create
WorktreeCreate (Claude Code) json
Inspect the normalized record payload exactly as the atlas UI reads it.
{
"id": "hook-surface:claude.worktree-create",
"_kind": "HookSurface",
"_file": "channels-hooks/hook-surfaces/native/claude-code-extended-hooks.yaml",
"_cluster": "channels-hooks",
"attributes": {
"eventName": "WorktreeCreate (Claude Code)",
"displayName": "WorktreeCreate (Claude Code)",
"kind": "native",
"originVendor": "Anthropic",
"direction": "pre",
"blocking": true,
"family": "shell-hook",
"payloadSchema": {
"type": "object",
"required": [
"hook_event_name",
"base_path"
],
"properties": {
"hook_event_name": {
"type": "string",
"const": "WorktreeCreate"
},
"base_path": {
"type": "string"
},
"worktree_path": {
"type": "string"
}
}
},
"description": "Fires when a worktree is being created via --worktree or\nisolation: \"worktree\". REPLACES the default git behavior: the hook is\nexpected to print the new worktree path to stdout (or return\nhookSpecificOutput.worktreePath for HTTP hooks). Any non-zero exit\nfails the creation entirely.\n"
},
"outgoingEdges": [],
"incomingEdges": [
{
"from": "agent-runtime-impl:claude-code.runtime@1.x",
"to": "hook-surface:claude.worktree-create",
"kind": "exposes",
"attributes": {}
},
{
"from": "hook-mapping:claude-worktree-create",
"to": "hook-surface:claude.worktree-create",
"kind": "maps_hook",
"attributes": {}
}
]
}