Event Hooks

ai-pair-programming

4 events · 4 hooks

From ai-pair-programming
Install
1
Run in your terminal
$
npx claudepluginhub Dev-GOM/claude-code-marketplace --plugin ai-pair-programming
Risk Indicators
Executes bash commandsModifies files
Source

Defined in hooks/hooks.json

Configuration
{
  "PreToolUse": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/pre-tool-use.js",
          "timeout": 3000,
          "description": "Warns about unreviewed code before committing",
          "continueOnError": true
        }
      ],
      "enabled": true,
      "matcher": "Bash",
      "priority": 100,
      "description": "Validate code quality before git commits"
    }
  ],
  "SessionEnd": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/session-end.js",
          "timeout": 5000,
          "description": "Creates session summary with statistics and recommendations",
          "continueOnError": true
        }
      ],
      "enabled": true,
      "priority": 85,
      "description": "Generate comprehensive AI pair programming session report"
    }
  ],
  "PostToolUse": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/post-tool-use.js",
          "timeout": 5000,
          "description": "Monitors file changes and suggests code review after 5 files or 5 minutes",
          "suppressOutput": true,
          "continueOnError": true
        }
      ],
      "enabled": true,
      "matcher": "Write|Edit",
      "priority": 60,
      "description": "Track code changes and suggest review after significant modifications"
    }
  ],
  "SessionStart": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/init-config.js",
          "timeout": 5000,
          "description": "Creates default configuration file if it doesn't exist",
          "suppressOutput": true,
          "continueOnError": true
        }
      ],
      "enabled": true,
      "priority": 100,
      "description": "Initialize plugin configuration at session start"
    }
  ]
}
Summary
{
  "riskFlags": {
    "touchesBash": true,
    "matchAllTools": false,
    "touchesFileWrites": true
  },
  "typeStats": {
    "command": 4
  },
  "eventStats": {
    "PreToolUse": 1,
    "SessionEnd": 1,
    "PostToolUse": 1,
    "SessionStart": 1
  },
  "originCounts": {
    "absolutePaths": 0,
    "pluginScripts": 4,
    "projectScripts": 0
  },
  "timeoutStats": {
    "commandsWithoutTimeout": 0
  }
}
Stats
Parent Repo Stars56
Parent Repo Forks0
Last CommitOct 20, 2025