Event Hooks
Community

matrix

5 events · 10 hooks

Install
1
Install the plugin
$
npx claudepluginhub ojowwalker77/claude-matrix --plugin matrix

Want just this hook?

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

Risk Indicators
Executes bash commandsModifies files
Source

Defined in hooks/hooks.json

Configuration
{
  "PreToolUse": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "${CLAUDE_PLUGIN_ROOT}/scripts/run-hooks.sh pre-tool-read",
          "timeout": 10
        }
      ],
      "matcher": "Read"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "${CLAUDE_PLUGIN_ROOT}/scripts/run-hooks.sh pre-tool-bash",
          "timeout": 60
        }
      ],
      "matcher": "Bash"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "${CLAUDE_PLUGIN_ROOT}/scripts/run-hooks.sh pre-tool-edit",
          "timeout": 10
        }
      ],
      "matcher": "Edit|Write"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "${CLAUDE_PLUGIN_ROOT}/scripts/run-hooks.sh pre-tool-web",
          "timeout": 15
        }
      ],
      "matcher": "WebFetch|WebSearch"
    }
  ],
  "PostToolUse": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "${CLAUDE_PLUGIN_ROOT}/scripts/run-hooks.sh post-tool-bash",
          "timeout": 10
        }
      ],
      "matcher": "Bash"
    }
  ],
  "SessionStart": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "${CLAUDE_PLUGIN_ROOT}/scripts/run-hooks.sh session-start",
          "timeout": 30
        }
      ]
    }
  ],
  "SubagentStart": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "${CLAUDE_PLUGIN_ROOT}/scripts/run-hooks.sh subagent-start",
          "timeout": 10
        }
      ]
    }
  ],
  "PermissionRequest": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "${CLAUDE_PLUGIN_ROOT}/scripts/run-hooks.sh permission-request",
          "timeout": 5
        }
      ],
      "matcher": "Read|Glob|Grep|WebFetch|WebSearch"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "${CLAUDE_PLUGIN_ROOT}/scripts/run-hooks.sh permission-request",
          "timeout": 5
        }
      ],
      "matcher": "mcp__plugin_matrix_matrix__*"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "${CLAUDE_PLUGIN_ROOT}/scripts/run-hooks.sh permission-request",
          "timeout": 5
        }
      ],
      "matcher": "mcp__plugin_matrix_context7__*"
    }
  ]
}
Summary
{
  "riskFlags": {
    "touchesBash": true,
    "matchAllTools": false,
    "touchesFileWrites": true
  },
  "typeStats": {
    "command": 10
  },
  "eventStats": {
    "PreToolUse": 4,
    "PostToolUse": 1,
    "SessionStart": 1,
    "SubagentStart": 1,
    "PermissionRequest": 3
  },
  "originCounts": {
    "absolutePaths": 0,
    "pluginScripts": 10,
    "projectScripts": 0
  },
  "timeoutStats": {
    "commandsWithoutTimeout": 0
  }
}
Stats
Stars102
Forks9
Last CommitFeb 6, 2026

Similar Hooks