Dev & Engineering multi-agent-coordinationopencodemcpevent-sourcinggit-backed-task-trackingsemantic-memoryollama-embeddings

Swarm

Multi-agent swarm coordination for OpenCode and Claude Code: break big tasks into parallel subtasks while persisting memory and learnings locally.

FollowAgents review · FARS-2.1
Use with care
60/ 100 5-point scale 3.0 / 5
1 2 3 4 5 6
1Trust16 / 29 · 2.8/5

Local-first architecture (libSQL, git-backed .hive/, Ollama local embeddings, no external servers) minimizes exfiltration; file reservations reduce conflicting permissions; swarm doctor checks dependencies. Deductions: coordinator spawns workers and writes files with no documented user confirmation for destructive steps; no sensitive-data handling or purge policy; rollback relies on git event sourcing/checkpoints without an explicit recovery procedure.

2Reliability9 / 14 · 3.2/5

CI covers build, typecheck, tarball verification, targeted tests, evalite gates, and CodeQL scanning. Deductions: CI comments admit the full unit suite hangs in GitHub Actions, so only a subset runs — overall reliability verification is incomplete; Bun/Ollama are non-universal prerequisites.

3Adaptability10 / 18 · 2.8/5

README targets both OpenCode and Claude Code; swarm doctor adapts to environment; embeddings degrade to FTS. Deductions: capability boundaries (task size limits, worker counts, failure behavior) are barely documented.

4Convention11 / 18 · 3.1/5

Clear information architecture (Hive/Hivemind/Swarm Mail layers, event-sourcing list, command table); MIT declared in README; changesets versioning; credits given. Deductions: no LICENSE file or CHANGELOG visible in provided files; known limitations only implicit (full test suite hanging is not disclosed to users); maintenance responsibility and update path undocumented.

5Effectiveness9 / 13 · 3.5/5

Decomposing large tasks into parallel workers with file reservations plus a learning system offers clear marginal value; outputs are structured (hive, mail, event log) and usable. Deduction: learning-system benefits (pattern maturation, 60% failure threshold) are asserted without evidence; cost/benefit cannot be verified statically.

6Verifiability5 / 8 · 3.1/5

README commands corroborate with CI-verified artifacts and test files; credits separate inspiration from own work; eval results emitted as traceable JSON. Deduction: static review cannot confirm actual learning/eval efficacy; confidence limited to low.

Evidence confidence: Low Reviewed Sep 10, 2026 Reviewed revision b6852530c3dc
Before you use it
  • The coordinator spawns workers and writes files automatically; validate in an isolated environment first and confirm whether destructive operations require human confirmation.
  • The full unit suite hangs in CI and only a subset runs; treat reliability claims with discount.
  • Verify the repository LICENSE file and npm package contents yourself; the MIT notice in the README is not independently confirmed here.
  • Learning memory persists local session data; assess what .hive/ and embedding databases retain before using on sensitive projects.
Review evidence [1][2][3][4][5]
See the full review method →

What does this agent do, and when should you use it?

Swarm (npm package opencode-swarm-plugin, repository joelhooks/swarm-tools) is a locally running multi-agent coordination system delivered as an OpenCode plugin and a Claude Code plugin/MCP server. It decomposes a given task into parallelizable subtasks, creates cells in the Hive git-backed task tracker (.hive/ directory), and assigns workers file reservation locks to prevent conflicts. Agents communicate through Swarm Mail, an embedded event store built on libSQL. Every completion records duration, errors, files touched, and success, feeding a learning system where patterns mature over time; anti-patterns auto-generate when failure rate exceeds 60%, and confidence decays after 90 days without revalidation. All state is an append-only event log, and every component (libSQL, Hive, Hivemind, Swarm Mail) runs locally with no external servers.

When you run /swarm "task", a coordinator queries past sessions via Hivemind, picks a strategy, and decomposes the work. It creates task cells in Hive (hive_create / hive_cells / hive_close), acquires exclusive file locks with swarmmail_reserve (e.g. src/auth/*), and sends messages between workers with swarmmail_send. Workers operate in parallel and each completion is reviewed before approval. Outcomes are logged as events (duration, errors, files, success), and patterns mature through candidate → established → proven stages. Hivemind provides semantic storage and retrieval with Ollama embeddings (hivemind_store / hivemind_find), falling back to full-text search without Ollama. The CLI offers swarm setup / doctor / init / config; slash commands include /swarm, /hive, /inbox, /status, and /handoff.

  1. An OpenCode developer who needs to split a large feature (e.g. OAuth user authentication) into subtasks executed simultaneously by multiple agents
  2. A Claude Code user who wants an MCP plugin so multiple workers can modify the same codebase without conflicts via file reservation locks
  3. A team that wants git-synced .hive/ task state to persist across sessions and produce handoff notes (/handoff)
  4. A developer building project memory, storing domain gotchas (e.g. auth idempotency keys) in Hivemind and retrieving them semantically in later tasks
  5. A user with data-sovereignty requirements who wants all coordination and memory infrastructure running locally (libSQL event store plus optional Ollama embeddings)

What are this agent's strengths and limitations?

Pros
  • File reservation locks (swarmmail_reserve exclusive locks) mechanically prevent multi-worker edit conflicts on the same files — a capability most multi-agent setups lack
  • Fully local: libSQL embedded SQLite, a git-backed .hive/ task directory, and optional local Ollama embeddings; no external servers
  • Learning system has concrete mechanics: patterns mature through candidate→established→proven, anti-patterns auto-generate above 60% failure rate, and confidence decays over 90 days
  • Full event sourcing (agent_registered, message_sent, file_reserved, checkpoint, outcome, etc.) makes all state auditable and replayable
Limitations
  • The repository lists no license, so commercial or enterprise-internal use requires verifying the terms first
  • It depends on the Bun runtime and an OpenCode or Claude Code host; other coding environments require adaptation
  • Semantic memory requires local Ollama; without it the system falls back to full-text search and loses semantic retrieval quality
  • Coordinating parallel workers costs tokens and adds review overhead, which may not pay off for small tasks; the learning benefits are documented but not independently verified

How do you install or deploy this agent?

Prerequisite: install Bun (required runtime). Optional: install Ollama for local embeddings.

OpenCode:

  1. npm install -g opencode-swarm-plugin
  2. swarm setup
  3. Use /swarm "your task" in any OpenCode session.

Claude Code:

  1. npm install -g opencode-swarm-plugin
  2. In Claude Code: /plugin → Manage marketplaces → Add marketplace, enter joelhooks/swarm-tools
  3. /plugin → Manage plugins → swarm-tools → swarm → Install

The MCP server starts automatically.

How do you use this agent?

  1. Run swarm init in your project root to initialize the Hive; use swarm doctor to check dependencies.
  2. In a session, run /swarm "Add user authentication with OAuth" to trigger decomposition and parallel worker spawning.
  3. Use /hive to query and manage tasks, /inbox to read messages from other agents, /status for coordination status, and /handoff to end a session with sync and handoff notes.
  4. Optionally configure embeddings: export OLLAMA_MODEL=nomic-embed-text (default mxbai-embed-large) and export OLLAMA_HOST=http://localhost:11434. Supported models: mxbai-embed-large (1024d), nomic-embed-text (768d), all-minilm (384d), snowflake-arctic-embed (1024d).

How does this agent compare with similar options?

The README credits MCP Agent Mail (Dicklesworthstone/mcp_agent_mail) as the inspiration for its multi-agent coordination, and Electric SQL's durable streams patterns plus obra/superpowers' verification patterns; it provides no formal comparison against these or other alternatives.

FAQ

Does it send code or data to the cloud?
The README states everything runs locally with no external servers: tasks live in the git-backed .hive/ directory, the event store is embedded libSQL, and embeddings use local Ollama (optional).
Won't multiple agents editing code conflict?
Workers acquire exclusive file reservation locks via Swarm Mail's swarmmail_reserve (e.g. src/auth/*); other workers cannot reserve the same paths until release, preventing write conflicts mechanically.
Can I use it without Ollama?
Yes. Ollama is optional and powers Hivemind's semantic embeddings; without it the system falls back to full-text search (FTS), but semantic retrieval is limited. Run swarm doctor to check dependency status.
Which host environments are supported?
The documentation explicitly supports OpenCode (global npm install + swarm setup) and Claude Code (plugin installed via marketplace, MCP server starts automatically). Other environments are not documented.
How does the learning system accumulate experience?
Every completion logs an outcome event (duration, errors, files touched, success); patterns mature through candidate→established→proven stages, anti-patterns auto-generate above a 60% failure rate, and confidence decays after 90 days without revalidation.

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related agents