ruv-swarm
Lets your AI agent spin up swarms of small neural-network agents to split up and coordinate work.
387 stars on GitHubby ruvnetLicense MITUpdated 4 months ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add ruv-swarm -- npx -y ruv-swarm
What to fill in
| Name | What it is | Required |
|---|---|---|
RUV_SWARM_LOG_LEVEL | Log level for ruv-swarm operations | No |
RUV_SWARM_DB_PATH | Database path for persistence storage | No |
RUV_SWARM_ENABLE_SIMD | Enable WebAssembly SIMD optimizations | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Set up a hierarchical swarm to refactor this project.
Start a mesh swarm of agents to review my pull request.
What it is
ruv-swarm is part of the ruv-FANN project, a Rust neural network library. It orchestrates swarms of lightweight agents that run as WebAssembly on the CPU and connects to Claude Code through MCP. The readme describes five swarm topologies and seven cognitive patterns.
What it can do
- Initialize a swarm with npx ruv-swarm@latest init --claude
- Swarm topologies: mesh, ring, hierarchical, star and custom
- Cognitive patterns such as convergent, divergent, lateral and systems thinking
- Command-line tools and Docker support
- A contribution flow with ruv-swarm contribute
When to use
- βΊWhen you want to try multi-agent orchestration inside Claude Code.
- βΊWhen you want CPU-only, GPU-free neural agents.
- βΊWhen you want a Rust or WebAssembly based agent framework.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
agent-multi-repo-swarmGuides your agent to coordinate changes and tasks across many code projects in one organization at the same time.Swarm OrchestrationHelps your agent coordinate several AI agents at once, splitting a task among them and choosing a team layout that fits.multi-agent-patternsHelps your agent design and coordinate multiple agents in complex systems. It can create architectures like swarms or supervised ones, with agents working together.Frequently asked questions
Is it open source?
Yes. It is dual-licensed under Apache 2.0 and MIT.
Do I need a GPU?
No. The readme says it is CPU-native and GPU-optional.
How do I install it?
With npx ruv-swarm@latest init --claude, npm install -g ruv-swarm, or cargo install ruv-swarm-cli.
What else is in the repository?
Besides ruv-swarm, it contains ruv-FANN core, a Rust neural network library, and Neuro-Divergent, a set of forecasting models.
Are the benchmark numbers verified?
The readme publishes its own benchmark figures. Check them yourself before relying on them.
Which client does it target?
Claude Code, through its MCP integration.
If it does not work
- βΊCheck that Node.js is installed so npx can run ruv-swarm.
- βΊRun init --claude again inside your project folder if Claude Code does not see the server.
- βΊRestart Claude Code fully after setup.
5 new skills a week. 1 minute to read.