{ "hooks": { "PreToolUse": [ { "matcher": "Edit|Write|MultiEdit", "hooks": [ { "type": "command", "command": "${CLAUDE_PROJECT_DIR}/scripts/spec-guard.sh" } ] } ], "WorktreeRemove": [ { "hooks": [ { "type": "command", "command": "jq -r '.tool_input.path // empty' | { read -r wt; [ -n \"$wt\" ] && git worktree remove --force \"$wt\" 2>/dev/null; git worktree prune 2>/dev/null; } || true" } ] } ] }, "worktree": { "baseRef": "fresh", "symlinkDirectories": ["web-ui/node_modules"] } }