/plugin marketplace add joelhooks/swarm-tools/plugin install swarm@swarm-toolsDefined in hooks/hooks.json
{
"PreCompact": [
{
"hooks": [
{
"type": "command",
"command": "swarm claude pre-compact"
}
],
"matcher": ""
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "swarm claude session-end"
}
],
"matcher": ""
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "swarm claude session-start"
}
],
"matcher": ""
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "swarm claude user-prompt"
}
],
"matcher": ""
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": false
},
"typeStats": {
"command": 4
},
"eventStats": {
"PreCompact": 1,
"SessionEnd": 1,
"SessionStart": 1,
"UserPromptSubmit": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 0,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 4
}
}