Event Hooks
Community

worktree

2 events · 2 hooks

Install
1
Install the plugin
$
npx claudepluginhub pleaseai/claude-code-plugins --plugin worktree

Want just this hook?

Then install: npx claudepluginhub u/[userId]/[slug]

Risk Indicators
Modifies files
Source

Defined inline in plugin.json manifest

Configuration
{
  "PreToolUse": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "bun run \"${CLAUDE_PLUGIN_ROOT}/hooks/deny-parent-access.ts\"",
          "timeout": 3
        }
      ],
      "matcher": "Read|Grep|Glob|Edit|Write|MultiEdit"
    }
  ],
  "SessionStart": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "bun run \"${CLAUDE_PLUGIN_ROOT}/hooks/worktree-context.ts\"",
          "timeout": 5
        }
      ]
    }
  ]
}
Summary
{
  "riskFlags": {
    "touchesBash": false,
    "matchAllTools": false,
    "touchesFileWrites": true
  },
  "typeStats": {
    "command": 2
  },
  "eventStats": {
    "PreToolUse": 1,
    "SessionStart": 1
  },
  "originCounts": {
    "absolutePaths": 0,
    "pluginScripts": 2,
    "projectScripts": 0
  },
  "timeoutStats": {
    "commandsWithoutTimeout": 0
  }
}

Similar Hooks