This quickstart walks you from zero to a fully working Ruflo setup with Claude Code in under 5 minutes. By the end you will have Ruflo initialized in your project, the MCP server registered so Claude Code can call all 313 tools, and a verified installation ready to spawn agent swarms on demand.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ruvnet/ruflo/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Ruflo requires Node.js ≥ 20.0.0. Check your current version:If your version is below 20, install the latest LTS from nodejs.org or use a version manager like Claude Code must also be installed. If you haven’t installed it yet:
nvm:Install Ruflo
Choose your install method. The interactive wizard is recommended for first-time setup because it walks through configuration options and validates the environment.The
init command creates .claude/, .claude-flow/, CLAUDE.md, hook handlers, and settings in your project. Nothing is written outside your project directory.Windows users: The
curl ... | bash one-liner requires a POSIX shell (Git-Bash, WSL, or MSYS). If you see 'bash' is not recognized, use npx ruflo@latest init wizard instead — it runs identically in native PowerShell and produces the same result.Add the MCP Server to Claude Code
Register Ruflo as an MCP server so Claude Code can call all 313 Ruflo tools directly from your sessions:Verify the server is registered:Once registered, tools like
swarm_init, agent_spawn, memory_store, memory_search, and hooks_route are available to Claude Code in every session without any further configuration.Verify Installation
Confirm Ruflo is installed and healthy:The
doctor command validates your environment and prints a checklist. All items should show ✅. If any show ❌, the output includes a remediation hint.Launch Your First Swarm
Use the What happens next:Check swarm status at any time:
hive-mind spawn command to launch a queen-led agent swarm with a plain-English objective:- A Strategic Queen agent decomposes the objective into a task plan
- The queen spawns specialized workers — architect, coder, tester, reviewer — from the 100+ available agent types
- Workers claim tasks, collaborate via shared memory, and produce output in parallel
- The post-task hook fires on completion, storing successful patterns in HNSW vector memory for future routing
Basic Usage Examples
The Learning Loop
After each task completes, the hooks system stores successful patterns in HNSW-indexed vector memory. The next time you run a similar task, the router retrieves those patterns (sub-millisecond search) and routes work to the agents that performed best — no manual configuration required. The system gets measurably smarter the more you use it.
- Pre-task hook fires → router searches memory for similar past tasks
- Agents execute the task using retrieved context
- Post-task hook fires → successful patterns are stored with embeddings
- Router updates → future similar tasks hit the best-performing path
