npx claudepluginhub imbios/swarm-tools --plugin swarmDefined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "swarm claude agent-stop"
}
],
"matcher": ""
}
],
"PreCompact": [
{
"hooks": [
{
"type": "command",
"command": "swarm claude pre-compact"
}
],
"matcher": ""
}
],
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "swarm claude pre-edit"
}
],
"matcher": "Edit|Write"
},
{
"hooks": [
{
"type": "command",
"command": "swarm claude pre-complete"
}
],
"matcher": "swarm_complete"
},
{
"hooks": [
{
"type": "command",
"command": "swarm claude track-task"
}
],
"matcher": "TaskCreate|TaskUpdate"
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "swarm claude session-end"
}
],
"matcher": ""
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "swarm claude track-tool hivemind_find"
}
],
"matcher": "hivemind_find|mcp__plugin_swarm_swarm-tools__hivemind_find"
},
{
"hooks": [
{
"type": "command",
"command": "swarm claude track-tool skills_use"
}
],
"matcher": "skills_use|Skill"
},
{
"hooks": [
{
"type": "command",
"command": "swarm claude track-tool swarmmail_init"
}
],
"matcher": "swarmmail_init|mcp__plugin_swarm_swarm-tools__swarmmail_init"
},
{
"hooks": [
{
"type": "command",
"command": "swarm claude track-tool hivemind_store"
}
],
"matcher": "hivemind_store|mcp__plugin_swarm_swarm-tools__hivemind_store"
},
{
"hooks": [
{
"type": "command",
"command": "swarm claude post-complete"
}
],
"matcher": "swarm_complete"
},
{
"hooks": [
{
"type": "command",
"command": "swarm claude post-task-update"
}
],
"matcher": "TaskUpdate"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "swarm claude session-start"
}
],
"matcher": ""
}
],
"SubagentStop": [
{
"hooks": [
{
"type": "command",
"command": "swarm claude subagent-stop"
}
],
"matcher": ""
}
],
"SubagentStart": [
{
"hooks": [
{
"type": "command",
"command": "swarm claude coordinator-start"
}
],
"matcher": "coordinator"
},
{
"hooks": [
{
"type": "command",
"command": "swarm claude worker-start"
}
],
"matcher": "worker"
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "swarm claude user-prompt"
}
],
"matcher": ""
}
]
}"Integrates Claude Code with Swarm CLI: tracks sessions, subagents, tasks, and tool uses (hivemind_find, skills_use, swarmmail_init, hivemind_store); pre-hooks edits, completes, tasks. Executes commands on 9 events, involves file writes."