Agent orchestration for Claude Code

One prompt in.
A swarm of agents out.

swarmdo turns Claude Code into a coordinated multi-agent system β€” 60+ agent roles, hive-mind consensus, persistent vector memory, and a Postgres vector extension. Fully self-contained: every engine ships in the repo. Based on the original ruflo.

source β†’
26 commands 60+ agent types 27 hooks Β· 12 workers 0 external engine deps
claude β€” swarm run

A real swarmdo pipeline: five named agents, coordinated over messages, sharing one memory.

What it does

Claude Code coordinates. The swarm executes.

swarmdo registers as an MCP server and wires agents, memory, and consensus into every session β€” with hooks that learn from what worked.

β—‰Swarm orchestration

Hierarchical, mesh, ring, star, or hybrid topologies with anti-drift defaults. Named agents coordinate over real-time messages β€” pipelines, fan-out, supervisor patterns.

⬑Hive-mind consensus

Queen-led coordination with raft, byzantine, gossip, CRDT, or quorum strategies. Byzantine mode tolerates f < n/3 faulty agents.

⛁Vector memory

AgentDB-backed persistent memory with HNSW indexing β€” semantic search across sessions, namespaces shared by every agent in the swarm.

⚑swarmvector for Postgres

A pgvector-compatible extension with 230+ SQL functions, SIMD, and quantization. CREATE EXTENSION swarmvector β€” verified on PostgreSQL 16.

πŸͺSelf-learning hooks

27 lifecycle hooks and 12 background workers record what succeeded, train routing patterns, and preload context before you ask.

πŸͺ¨Caveman compression

Why use many token when few token do trick. /caveman-compress rewrites memory files into few-token caveman-speak β€” substance, code, and URLs preserved, backup kept. Vendored from the 82k-star original (MIT).

πŸ’€Ponytail mode

The laziest senior dev in the room, on demand. /ponytail forces the simplest solution that works: YAGNI, stdlib before dependencies, one line before fifty. Three intensities + audit and review lenses (MIT).

β–ŠA statusline you control

Eleven segments, three presets, one checklist. Run /statusline inside Claude Code and tick exactly what you want to see.

β–Š Try it β€” the statusline, your way

statusline preview

Segments

Live: swarmdo statusline --preset full

Honest numbers

Measured where we measured. Targets where we haven’t.

Benchmarks live in the repo and every claim is labeled. No mystery multipliers.

1.9–4.7Γ—
HNSW search vs brute force (N=5k–20k, recall@10 β‰ˆ 0.99)
measured
32Γ—
RaBitQ quantization compression, 0.60 ms/query
measured
0.0043 ms
SONA adaptation per step
measured
<100 ms
MCP tool response
target

Self-contained

Every engine ships in the repo.

No runtime downloads from third-party registries, no surprise upstream churn. Each engine is vendored, renamed, smoke-tested, and file-linked.

EngineWhat it isForm
swarmvectorVector database β€” HNSW, ONNX embeddings (384-dim), Graph RAGnative + wasm
swarmvector-postgresPostgres extension, pgvector drop-in, pg 14–17pgrx crate
swarmllmLocal model layer β€” MicroLoRA adapters, SONA learningnative + wasm
swarmdo-swarmSwarm MCP server β€” cognitive patterns, neural agentsnode + wasm
agentdbAgent memory store β€” vectors, reinforcement learningvendored
agentic-flowAgent runtime integration and ONNX embedding backendvendored
@swarmnet/bmsspGraph pathfinding for agent topology routingwasm

Install

Three commands to a swarm.

1
$ npx swarmdo init --wizard

Scaffolds .claude/ with agents, skills, hooks, and the /statusline command.

2
$ claude mcp add swarmdo -- npx -y @swarmdo/cli@latest

Registers the MCP server β€” 200+ tools for agents, memory, and coordination.

3
$ claude # then: "use a swarm to build the feature"

Claude Code spawns the agents; swarmdo coordinates, remembers, and learns.

FAQ

Questions people actually ask.

What is swarmdo?

swarmdo turns Claude Code into a coordinated multi-agent system. One prompt spawns a swarm of named agents β€” researcher, architect, coder, tester, reviewer β€” that coordinate over messages, share persistent vector memory, and learn from what worked.

Does it work with Claude Code?

Yes β€” it’s built for it. swarmdo registers as an MCP server (200+ tools), ships agents and skills into .claude/, and adds slash commands like /statusline. Codex runs alongside through the dual-mode package.

Is it free and open source?

MIT licensed, based on the original popular ruflo β€” attribution preserved in LICENSE and NOTICE. Every engine is vendored in the repo; nothing phones home.

What is swarmvector?

The vector engine family: an embedded vector database with HNSW indexing and ONNX embeddings, plus a pgvector-compatible Postgres extension β€” CREATE EXTENSION swarmvector β€” with 230+ SQL functions, verified on PostgreSQL 16.

How do I install it?

npx swarmdo init --wizard, then claude mcp add swarmdo -- npx -y @swarmdo/cli@latest. Ask Claude Code to “use a swarm” and swarmdo does the coordinating.

copied