Event Hooks

git-worktrees

1 event · 1 hook

Install
1
Install the plugin
$
npx claudepluginhub thebushidocollective/han --plugin git-worktrees

Want just this hook?

Add to a custom plugin, then install with one command.

Source

Defined in hooks/hooks.json

Configuration
{
  "PreToolUse": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "han hook wrap-subagent-context --context-command 'bash \"${CLAUDE_PLUGIN_ROOT}/hooks/worktree-context.sh\"'"
        }
      ],
      "matcher": "Agent|Task"
    }
  ]
}
Summary
{
  "riskFlags": {
    "touchesBash": false,
    "matchAllTools": false,
    "touchesFileWrites": false
  },
  "typeStats": {
    "command": 1
  },
  "eventStats": {
    "PreToolUse": 1
  },
  "originCounts": {
    "absolutePaths": 0,
    "pluginScripts": 1,
    "projectScripts": 0
  },
  "timeoutStats": {
    "commandsWithoutTimeout": 1
  }
}
Stats
Stars106
Forks13
Last CommitMar 3, 2026
Actions

Similar Hooks