Skip to content
Agent Orchestration
MCP

swarm-tools

Swarm multi-agent coordination tools

From plugin
swarm-tools
7546 skills3 agents6 commands1 MCP

Claude Code

> /plugin marketplace add joelhooks/swarm-tools
> /plugin install swarm@swarm-tools

Security report

Info

Not enough data

  • Known flaws

    Not published

  • Signed build

    Not published

  • Maintained

    Jul 30, 2026

    Last push

  • Licence

    Not published

  • Runs as

    Local process

    On your machine

  • Deprecated

    Not published

Signals from public registries, not an audit. Checked Nov 23, 2026.

swarm-tools README

Swarm

npm version Documentation

 ███████╗██╗    ██╗ █████╗ ██████╗ ███╗   ███╗
 ██╔════╝██║    ██║██╔══██╗██╔══██╗████╗ ████║
 ███████╗██║ █╗ ██║███████║██████╔╝██╔████╔██║
 ╚════██║██║███╗██║██╔══██║██╔══██╗██║╚██╔╝██║
 ███████║╚███╔███╔╝██║  ██║██║  ██║██║ ╚═╝ ██║
 ╚══════╝ ╚══╝╚══╝ ╚═╝  ╚═╝╚═╝  ╚═╝╚═╝     ╚═╝

Multi-agent coordination that survives context death.

Break big tasks into small ones. Spawn agents to work in parallel. Learn from what works.

swarmtools.ai · Documentation


Installation

OpenCode

npm install -g opencode-swarm-plugin
swarm setup

Done. Use /swarm "your task" in any OpenCode session.

Claude Code

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.


What It Does

/swarm "Add user authentication with OAuth"
  1. Decomposes the task into parallelizable subtasks
  2. Creates cells in the Hive (git-backed task tracker)
  3. Spawns workers with file reservations (no conflicts)
  4. Coordinates via Swarm Mail (embedded event store)
  5. Reviews each completion before approval
  6. Learns what worked for next time

Core Concepts

Hive

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" })

Hivemind

Semantic memory with embeddings. Store learnings, search later.

hivemind_store({ information: "Auth requires idempotency keys", tags: "auth,gotcha" })
hivemind_find({ query: "auth patterns" })

Swarm Mail

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: "..." })

Commands

CommandDescription
/swarm <task>Decompose and spawn parallel workers
/hiveQuery and manage tasks
/inboxCheck messages from other agents
/statusSwarm coordination status
/handoffEnd session with sync and handoff notes

CLI

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

How It Works

                         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 │
                    └────────────────┘

Architecture

Everything runs locally. No external servers.

  • libSQL - Embedded SQLite for event sourcing
  • Hive - Git-backed .hive/ directory for tasks
  • Hivemind - Semantic memory with Ollama embeddings (falls back to FTS)
  • Swarm Mail - DurableMailbox, DurableLock, DurableDeferred primitives

Event Sourcing

All 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

Learning System

Every completion records duration, errors, files touched, success.

  • Patterns mature: candidate → established → proven
  • Anti-patterns auto-generate when failure rate > 60%
  • Confidence decays over 90 days unless revalidated

Dependencies

RequiredOptional
BunOllama - local embeddings

Run swarm doctor to check status.

Embedding Model Configuration

Configure the embedding model via environment variables:

export OLLAMA_MODEL=nomic-embed-text  # Default: mxbai-embed-large
export OLLAMA_HOST=http://localhost:11434  # Default

Supported models: mxbai-embed-large (1024d), nomic-embed-text (768d), all-minilm (384d), snowflake-arctic-embed (1024d). See swarm-mail docs for details.


Development

bun install
bun turbo build
bun turbo test

Credits


MIT

@joelhooks
Ships withswarm-tools

Multi-agent coordination that survives context death. Break big tasks into small ones. Spawn agents to work in parallel. Learn from what works. swarmtools.ai · Documentation

7546 skills3 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
754
Star history of joelhooks/swarm-tools on GitHub, a chart by star-history.com

More MCP servers from other plugins.

orca-component-fixtures

orca-component-fixture…

MCP

Ships with orca: Orca lets you run a fleet of coding agents (e.g. Claude Code, Codex) with your own subscription. Available on…

orca4d128k
@stablyai@stablyaiInstall MCP
paperclip

paperclip

MCP

Ships with paperclip: Open-source orchestration for teams of AI agents. If OpenClaw is an employee, Paperclip is the company.…

papercliptoday116k
@paperclipai@paperclipaiInstall MCP
ruflo

ruflo

MCP

Ships with claude-flow: 🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows,…

@ruvnet@ruvnetInstall MCP
t

t

MCP

Ships with oh-my-claudecode: For Codex users: Check out oh-my-codex — the same orchestration experience for OpenAI Codex CLI.…

Questions about swarm-tools.

Which coding agents can use swarm-tools?
swarm-tools works in any agent that reads an MCP config file: Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf. Each agent reads it from its own file; this page names the file for each one.
How do I add swarm-tools to Claude Code?
Run these in order, one at a time. 1. In Claude Code: /plugin marketplace add joelhooks/swarm-tools 2. In Claude Code: /plugin install swarm@swarm-tools