Event Hooks

PACT

10 events · 20 hooks

From PACT
Install
1
Run in your terminal
$
npx claudepluginhub synaptic-labs-ai/pact-plugin
Risk Indicators
Executes bash commandsModifies files
Source

Defined in hooks/hooks.json

Configuration
{
  "Stop": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/stop_audit.sh\""
        },
        {
          "type": "command",
          "command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/phase_completion.py\""
        },
        {
          "type": "command",
          "command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/memory_adhoc_reminder.py\""
        }
      ]
    }
  ],
  "PreCompact": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/precompact_refresh.py\""
        }
      ]
    }
  ],
  "PreToolUse": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/git_commit_check.py\""
        },
        {
          "type": "command",
          "command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/merge_guard_pre.py\""
        }
      ],
      "matcher": "Bash"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/team_guard.py\""
        }
      ],
      "matcher": "Task"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/worktree_guard.py\""
        }
      ],
      "matcher": "Edit|Write"
    }
  ],
  "SessionEnd": [
    {
      "hooks": [
        {
          "type": "command",
          "async": true,
          "command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/session_end.py\""
        }
      ]
    }
  ],
  "PostToolUse": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/track_files.py\""
        },
        {
          "type": "command",
          "async": true,
          "command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/file_size_check.py\""
        },
        {
          "type": "command",
          "async": true,
          "command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/file_tracker.py\""
        }
      ],
      "matcher": "Edit|Write"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/merge_guard_post.py\""
        }
      ],
      "matcher": "AskUserQuestion"
    }
  ],
  "SessionStart": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/session_init.py\""
        },
        {
          "type": "command",
          "command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/compaction_refresh.py\""
        }
      ]
    }
  ],
  "SubagentStop": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/validate_handoff.py\""
        }
      ]
    }
  ],
  "TeammateIdle": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/teammate_completion_gate.py\""
        },
        {
          "type": "command",
          "command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/teammate_idle.py\""
        }
      ]
    }
  ],
  "SubagentStart": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/peer_inject.py\""
        }
      ],
      "matcher": "pact-preparer|pact-architect|pact-backend-coder|pact-frontend-coder|pact-database-engineer|pact-devops-engineer|pact-n8n|pact-test-engineer|pact-security-engineer|pact-qa-engineer|pact-secretary"
    }
  ],
  "TaskCompleted": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/handoff_gate.py\""
        }
      ]
    }
  ]
}
Summary
{
  "riskFlags": {
    "touchesBash": true,
    "matchAllTools": false,
    "touchesFileWrites": true
  },
  "typeStats": {
    "command": 20
  },
  "eventStats": {
    "Stop": 3,
    "PreCompact": 1,
    "PreToolUse": 4,
    "SessionEnd": 1,
    "PostToolUse": 4,
    "SessionStart": 2,
    "SubagentStop": 1,
    "TeammateIdle": 2,
    "SubagentStart": 1,
    "TaskCompleted": 1
  },
  "originCounts": {
    "absolutePaths": 0,
    "pluginScripts": 20,
    "projectScripts": 0
  },
  "timeoutStats": {
    "commandsWithoutTimeout": 20
  }
}
Stats
Parent Repo Stars52
Parent Repo Forks11
Last CommitMar 18, 2026