Files
agentmon/hooks/claude-code/hooks.json
T
2026-03-20 11:17:26 -07:00

115 lines
2.1 KiB
JSON

{
"hooks": {
"SessionStart": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "npx --yes agentmon-handler start"
}
]
}
],
"Stop": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "npx --yes agentmon-handler stop"
}
]
}
],
"SubagentStop": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "npx --yes agentmon-handler subagent-stop"
}
]
}
],
"PreToolUse": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "npx --yes agentmon-handler tool-start"
}
]
}
],
"PostToolUse": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "npx --yes agentmon-handler tool-end"
}
]
}
],
"UserPromptSubmit": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "npx --yes agentmon-handler prompt"
}
]
}
],
"PreCompact": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "npx --yes agentmon-handler compact-start"
}
]
}
],
"PostCompact": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "npx --yes agentmon-handler compact-end"
}
]
}
],
"SubagentStart": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "npx --yes agentmon-handler subagent-start"
}
]
}
],
"Notification": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "npx --yes agentmon-handler notification"
}
]
}
]
}
}