joelhooks/swarm-tools
Local MCP coordination for parallel coding agents, with Git-backed task tracking
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Swarm is a TypeScript monorepo with Bun and Turbo tooling. The coordinator looks up prior sessions, selects a strategy, breaks work into task cells, and dispatches parallel workers. It reviews completions before approval and records outcomes. OpenCode and Claude Code are the integration hosts; in Claude Code, the marketplace plugin starts the MCP server automatically.
Hive stores task cells under Git-backed .hive/, while embedded libSQL (SQLite) stores the append-only coordination log. Swarm Mail exposes DurableMailbox, DurableLock, and DurableDeferred primitives for coordination, with events such as message_sent, file_reserved, checkpoint, and outcome. Hivemind handles retrieval of past lessons. Git sync for Hive tasks should not be read as replication of the local coordination log.
Key Capabilities & Differentiators
The /swarm workflow combines task decomposition, worker dispatch, path reservations, checkpoints, and coordinator review. /hive, /inbox, /status, and /handoff expose task inspection, messaging, progress checks, and session handoff. Completion records capture duration, errors, files touched, and success. Patterns progress from candidate to established to proven; a failure rate above 60% generates an anti-pattern, and confidence decays over 90 days without revalidation.
Hivemind uses Ollama embeddings and falls back to full-text search (FTS). OLLAMA_MODEL defaults to mxbai-embed-large (1,024 dimensions); other listed choices are nomic-embed-text (768), all-minilm (384), and snowflake-arctic-embed (1,024). These dimensions describe the stored vectors, not retrieval quality or runtime cost.
Trade-offs & Limitations
Host-native subagents are simpler for one-off parallel work. A task tracker plus Git worktrees is a better fit when the primary requirement is explicit task ownership and isolated working directories. Swarm adds durable task state, agent messaging, and a reusable record of outcomes, but its path reservations are a coordination mechanism, not an isolation boundary. Work that repeatedly overlaps on the same files is a poor fit for straightforward parallel decomposition.
Embedded storage avoids operating a separate database, but Git-backed tasks and local coordination events have different sharing and retention needs. FTS avoids running Ollama at the cost of relying on text matches rather than embedding similarity. Commercial adopters should resolve the license discrepancy before rollout: an MIT notice is present, but the repository license field is unspecified.
Hardware & Deployment Guide
Bun is required; Ollama is optional. Install the CLI with npm install -g opencode-swarm-plugin. For OpenCode, run swarm setup; for Claude Code, keep the global CLI installed, add the joelhooks/swarm-tools marketplace, then install swarm. Use swarm doctor to check dependencies and swarm init to initialize Hive in a project. For local embeddings, OLLAMA_HOST defaults to http://localhost:11434. The coordination stack needs no external database server, but offline inference depends on the coding host’s model configuration.
For source development, use bun install, bun turbo build, and bun turbo test. On February 6, 2026, opencode-swarm-plugin@0.63.2 addressed unresolved workspace:* dependencies in published packages by switching CI to Bun 1.3.8 and adding a resolution safeguard. claude-code-swarm-plugin@0.63.3 then linked the plugin version lines. Check that global CLI and plugin installation both work before rolling out to a team.
swarm setup; the Claude Code marketplace plugin starts MCP automatically and requires the global CLI..hive/ so they can be shared through Git and recovered in later sessions.workspace:* dependencies.OpenCode or Claude Code teams that regularly split work across distinct paths and need task state, worker handoffs, and searchable lessons across sessions.
You mostly do short, sequential edits, need hard isolation between workers, or require centrally replicated coordination state out of the box.
Quick Start & Installation
npm install -g opencode-swarm-plugin swarm setup
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| swarm-tools ★ | 756 | +5 | TypeScript | — | Local MCP coordination for parallel coding agents, with Git-backed task tracking |
| agents | 43.2k | +212 | Python | MIT | One Markdown plugin catalog adapted to seven AI coding tools |
| rea | 488.8k | +7.6k | TypeScript | MIT | A local CLI and MCP server for evidence-backed app and binary analysis |
| chrome-devtools-mcp | 60.4k | +760 | TypeScript | Apache-2.0 | Chrome DevTools via MCP and CLI for live browser debugging and performance analy |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/joelhooks/swarm-tools.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about swarm-tools
How does Swarm integrate with OpenCode and Claude Code, and where does it keep state?
opencode-swarm-plugin package and swarm setup. Claude Code also requires that global CLI package, plus the swarm plugin from the joelhooks/swarm-tools marketplace; the plugin starts the MCP server automatically. Hive persists tasks in .hive/, while embedded libSQL records coordination events.Do I need a GPU, and how should I size a workstation?
Can we self-host this for commercial work with sensitive source code?
How does it compare with native subagents or a task tracker plus Git worktrees?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy