Properly end a swarm session - release reservations, sync state, generate continuation prompt
Query and manage swarm tasks (cells)
Check swarm mail inbox for messages from other agents
Check swarm coordination status - workers, messages, reservations
Decompose a task into parallel subtasks and coordinate execution
Always-on rule-oriented guidance for claude-plugin agents. Use to align behavior, tool usage, and model-specific defaults (GPT-5.2-code vs Opus 4.5) while avoiding deprecated bd/cass references.
Multi-agent coordination patterns for OpenCode swarm workflows. Use when work benefits from parallelization or coordination.
Admin access level
Server config contains admin-level keywords
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Executables (bin/) — files in this plugin's bin/directory are added to the Bash tool's PATH while the plugin is enabled.
███████╗██╗ ██╗ █████╗ ██████╗ ███╗ ███╗
██╔════╝██║ ██║██╔══██╗██╔══██╗████╗ ████║
███████╗██║ █╗ ██║███████║██████╔╝██╔████╔██║
╚════██║██║███╗██║██╔══██║██╔══██╗██║╚██╔╝██║
███████║╚███╔███╔╝██║ ██║██║ ██║██║ ╚═╝ ██║
╚══════╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝
Multi-agent coordination that survives context death.
Break big tasks into small ones. Spawn agents to work in parallel. Learn from what works.
npm install -g opencode-swarm-plugin
swarm setup
Done. Use /swarm "your task" in any OpenCode session.
Step 1: Install the CLI globally (required):
npm install -g opencode-swarm-plugin
Step 2: Add the marketplace in Claude Code:
/plugin
→ Manage marketplaces
→ Add marketplace
→ Enter: joelhooks/swarm-tools
Step 3: Install the plugin:
/plugin
→ Manage plugins
→ swarm-tools
→ swarm
→ Install
The MCP server starts automatically. Use /swarm "your task" in any session.
/swarm "Add user authentication with OAuth"
Git-backed task tracking in .hive/. Survives sessions, syncs via git.
hive_create({ title: "Fix auth bug", type: "bug" })
hive_cells({ status: "in_progress" })
hive_close({ id: "cell-123", reason: "Fixed" })
Semantic memory with embeddings. Store learnings, search later.
hivemind_store({ information: "Auth requires idempotency keys", tags: "auth,gotcha" })
hivemind_find({ query: "auth patterns" })
Actor-model coordination between agents. File reservations, messaging, checkpoints.
swarmmail_reserve({ paths: ["src/auth/*"], exclusive: true })
swarmmail_send({ to: ["worker-b"], subject: "Need types", body: "..." })
| Command | Description |
|---|---|
/swarm <task> | Decompose and spawn parallel workers |
/hive | Query and manage tasks |
/inbox | Check messages from other agents |
/status | Swarm coordination status |
/handoff | End session with sync and handoff notes |
swarm setup # Configure OpenCode/Claude Code integration
swarm doctor # Check dependencies (Ollama for embeddings)
swarm init # Initialize hive in current project
swarm config # Show config paths
Your Task
│
▼
┌────────────────┐
│ COORDINATOR │
│ │
│ 1. Query past │
│ sessions │
│ 2. Pick strat │
│ 3. Decompose │
└────────────────┘
│
┌─────────────────┼─────────────────┐
▼ ▼ ▼
┌────────────┐ ┌────────────┐ ┌────────────┐
│ Worker A │ │ Worker B │ │ Worker C │
│ │ │ │ │ │
│ 🔒 files │───▶│ 🔒 files │ │ 🔒 files │
└────────────┘ └────────────┘ └────────────┘
│ │ │
└─────────────────┼─────────────────┘
▼
┌────────────────┐
│ LEARNING │
│ │
│ Record outcome │
│ Update weights │
└────────────────┘
Everything runs locally. No external servers.
.hive/ directory for tasksAll state is an append-only event log:
agent_registered → Agent joins swarm
message_sent → Agent-to-agent communication
file_reserved → Exclusive lock acquired
file_released → Lock released
checkpoint → Progress snapshot
outcome → Completion result
Every completion records duration, errors, files touched, success.
npx claudepluginhub primeinc/swarm-tools --plugin swarmMulti-agent task decomposition and coordination for Claude Code
Multi-agent orchestration for complex tasks using cc-mirror tasks and TodoWrite. Use when tasks require parallel work, multiple agents, sophisticated coordination, or decomposition into parallel subtasks.
Multi-agent orchestration via li o flow and li o fanout
Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies
Delegation system with workflow orchestration, specialized agents, and parallel execution for Claude Code
Dynamically assemble expert agent teams for complex tasks using Claude Code's agent teams feature