Executes custom commands before tool usage and at session initialization.
/plugin marketplace add fuushyn/armour/plugin install armour@armour-marketplaceDefined in hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/check-tool.sh",
"description": "Check tool against Armour rules before execution"
}
],
"matcher": "*"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "QUIET=1 bash ${CLAUDE_PLUGIN_ROOT}/scripts/discover-plugin-servers.sh",
"description": "Discover and add any newly installed plugin MCP servers to ~/.armour/servers.json"
},
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/start-rules-server.sh",
"description": "Start the Armour rules server for instant policy enforcement"
},
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/enable-plugin.sh",
"description": "Enable the armour plugin on session start"
}
],
"matcher": "*"
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": true,
"touchesFileWrites": false
},
"typeStats": {
"command": 4
},
"eventStats": {
"PreToolUse": 1,
"SessionStart": 3
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 4,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 4
}
}