Expand description
Internal handlers for Claude Code’s WorktreeCreate and WorktreeRemove
hook events.
These are invoked via the hidden _claude-worktree-create and
_claude-worktree-remove subcommands. Both read a JSON payload from stdin
and write only what Claude Code’s hook contract requires to stdout.
Functions§
- run_
create - Handle a Claude Code
WorktreeCreatehook event. - run_
remove - Handle a Claude Code
WorktreeRemovehook event.