Ruflo
TL;DR
Ruflo (formerly Claude Flow) is an MIT-licensed orchestration layer by ruvnet (rUv) that adds agent swarms, vector memory, hooks and an MCP server to Claude Code, with a separate Codex CLI mode. It suits developers who want to extend an existing Claude Code or Codex setup with coordinated specialist agents and shared memory.
Key facts
| Type | Orchestrator |
|---|---|
| Languages / SDKs | TypeScript, Rust |
| License | MIT |
| Pricing model | Unknown |
| Orchestration pattern | Supervisor |
| GitHub stars | 73,559 (as of 2026-09-30) |
| GitHub forks | 8,731 |
| Last push | 2026-09-30 |
| Latest release | v3.48.0 |
| Repository | ruvnet/ruflo |
| Website | cognitum.one |
| Documentation | github.com |
| Last verified | 2026-09-30 |
Key features
npx ruflo initwrites a CLAUDE.md with hooks and routing rules, registers the Ruflo MCP server with Claude Code and creates a.claude-flow/folder for config and memory. (source)- An MCP server (
npx ruflo@latest mcp start) exposes swarm, agent, memory and hook-routing tools such as swarm_init, agent_spawn and memory_search to the host agent. (source) - Codex CLI mode:
init --codexwrites AGENTS.md and.agents/skills/, registers the MCP server throughcodex mcp add, andinit --dualsets up Claude Code and Codex in one project. (source) - Hive mind mode: strategic, tactical or adaptive queen agents direct worker agents and settle decisions with Raft, Byzantine, quorum, gossip or CRDT consensus. (source)
- Memory is stored in AgentDB with an HNSW vector index, a SQLite store and local ONNX embeddings, plus a knowledge graph built from memory entries. (source)
- A Claude Code plugin marketplace (
/plugin marketplace add ruvnet/ruflo) offers individual plugins such as ruflo-swarm, ruflo-testgen and ruflo-security-audit without the full CLI install. (source) - A federation plugin connects Ruflo installations on different machines with mTLS and ed25519 identity checks and strips PII from outbound messages. (source)
- A claims system (
ruflo issues claim / release / handoff / board) records whether a human or an agent owns each task and lets work move between them. (source)
Architecture and orchestration pattern
Pattern: Supervisor
Ruflo does not replace the coding agent; it sits around it. After ruflo init, Claude Code keeps running as usual, and hooks plus the Ruflo MCP server route tasks, fetch stored patterns and spawn helper agents in the background. In Codex mode the guide splits the roles explicitly: Ruflo tracks state and memory, Codex writes code and runs commands.
Multi-agent work is organised as swarms with a chosen topology (hierarchical, mesh, ring, star, hybrid or adaptive). For coding tasks the guide recommends a hierarchical swarm of at most eight agents with a single coordinator that checks each output against the goal. The hive-mind mode adds queen agents that direct typed workers and use a consensus algorithm for shared decisions. Ruflo can also switch on Claude Code's experimental Agent Teams feature and attach its own hooks to teammate-idle and task-completed events.
State lives on disk: AgentDB with an HNSW index, a sql.js SQLite database (.swarm/memory.db) and local ONNX embeddings, with collective memory types that carry different expiry times. A bridge syncs Claude Code's auto-memory files with AgentDB. Encryption at rest for sessions and memory is opt-in via CLAUDE_FLOW_ENCRYPT_AT_REST=1.
Human in the loop
Ruflo runs inside Claude Code or Codex, so the host agent's own permission prompts are the main approval point; the prerequisites section offers claude --dangerously-skip-permissions as an optional step, which turns those prompts off. Inside Ruflo, the claims system lets a person claim, release or hand off a task that an agent was working on, and issues rebalance --dry-run previews reassignment before applying it. The metaharness harness-mint skill is dry-run by default and writes only with --confirm. No approval queue or pause/resume UI for swarms is described in the README, STATUS page or user guide.
Harnesses it can drive
- Claude Code (evidence)
- Codex (evidence)
Protocols
| Protocol | Support | Note |
|---|---|---|
| MCP | Yes evidence | Server: the README registers Ruflo as an MCP server in Claude Code with claude mcp add claude-flow -- npx ruflo@latest mcp start; the user guide shows the same for Codex via codex mcp add. |
| A2A | Partial evidence | The federation plugin maps Ruflo nodes to A2A 1.0 Agent Cards and serves /.well-known/agent-card.json; the file states that A2A tasks and messaging are out of scope, so only discovery is covered. |
| AG-UI | Unknown | No mention of AG-UI in the README, docs/USERGUIDE.md or docs/STATUS.md; GitHub code search for 'ag-ui' and 'agui' in the repo returned nothing, and Ruflo is not listed in the AG-UI README. |
Best for
- Claude Code users who want specialist subagents, shared vector memory and routing hooks added to their existing sessions. (shortlist)
- Repositories worked on with both Claude Code and Codex CLI, using
init --dualso both read the same memory and skills. (shortlist) - Trying a single capability (for example test generation or a security scan) as a Claude Code plugin before committing to the full install. (shortlist)
- Experiments with agents on separate machines exchanging tasks through signed, PII-filtered federation messages.
Not for
- People who want a small, predictable add-on: the full install adds hooks, a background daemon, several hundred MCP tools and about 340MB of dependencies by default.
- Teams that do not use Claude Code or Codex CLI as their coding agent.
- Projects that need AG-UI streaming or full A2A task exchange.
Quickstart
npx ruflo@latest init wizard # Set up Ruflo in the current project (writes CLAUDE.md, hooks, .claude-flow/)
npx ruflo@latest init
# Register the MCP server with Claude Code (the key is still named claude-flow)
claude mcp add claude-flow -- npx -y ruflo@latest mcp start
claude mcp list
# Start a hierarchical swarm and a coder agent from the CLI
npx ruflo@latest swarm init --topology hierarchical --max-agents 8
npx ruflo@latest agent spawn -t coder --name api-worker
# Search stored patterns before a task
npx ruflo@latest memory search --query "auth patterns"
# Codex users: write AGENTS.md and register MCP with codex instead
npx ruflo@latest init --codex
Common pitfalls
- Requires Node.js 20+ and npm 9+ (or pnpm/bun); the guide says Claude Code must be installed before Ruflo.
- Two install paths behave differently: Claude Code plugins add slash commands and agent definitions only, with no hooks, and only
ruflo-coreregisters an MCP server (its tools are prefixedmcp__plugin_ruflo-core_ruflo__). The CLI install (npx ruflo init) gives the full setup. - The default npm install is about 340MB because of ML/embedding dependencies;
npm install -g ruflo@latest --omit=optionalinstalls the core CLI only (about 45MB). - The
curl ... | bashinstaller needs a POSIX shell; on native Windows use thenpxcommand. - Many docs and package names still use the old claude-flow name (
@claude-flow/codex,npx claude-flow@latest federation ..., MCP keyclaude-flow).
Pros
- Supports both Claude Code and Codex CLI from one project, with a dual mode that shares memory and skills between them. (source)
- Offers a lightweight path (individual Claude Code plugins) and a full CLI path, so users can try parts without changing their workspace. (source)
- Recent security work is documented: command-injection fixes, restricted file modes for session and memory stores, and opt-in AES-256-GCM encryption at rest. (source)
- Federation nodes can publish standard A2A Agent Cards, which makes them discoverable by other A2A tools. (source)
- Actively developed, with tagged releases every few days in September 2026. (source)
Cons
- An open issue with 18 comments reports that a user could not get v3 to complete a simple task through the CLI, core library or documented scripts. (source)
- The signed-witness verification that backs
ruflo verifyfails on all three platforms in the project's own scheduled runs (open, marked HIGH). (source) - The rename from Claude Flow is incomplete in practice: npm scopes, the MCP server key and several documented commands still use claude-flow. (source)
- Heavy default footprint: about 340MB installed with ML and embedding dependencies unless optional packages are omitted. (source)
- Fast release cadence (from v3.42.3 on 16 September to v3.48.0 on 28 September 2026), so pinning a version matters. (source)
Alternatives
FAQ
Is Ruflo the same project as Claude Flow?
Yes. The README states that Claude Flow is now Ruflo. The npm package is ruflo, but several packages, commands and the MCP server key still use the claude-flow name.
Does Ruflo support MCP, A2A or AG-UI?
It runs as an MCP server for Claude Code and Codex. For A2A, the federation plugin publishes A2A Agent Cards for discovery but does not implement A2A tasks or messaging. No AG-UI support was found.
Which coding agents does Ruflo work with?
Claude Code (plugins, hooks and MCP server) and OpenAI Codex CLI (init --codex, MCP registered with codex mcp add). A metaharness skill can scaffold configs for other hosts, but that is a separate scaffolding step, not a Ruflo integration.
Is Ruflo free?
The code is MIT licensed. The user guide also describes Flow Nexus, a cloud platform that needs a sign-up and API key, and no pricing page was found, so the pricing model is recorded as unknown.
What is the difference between the plugin install and `npx ruflo init`?
Plugins add slash commands and agent definitions without touching your workspace and without hooks. The CLI install writes CLAUDE.md, hooks, helpers and settings and registers the full MCP server.
Sources
- Ruflo GitHub repository
- Ruflo README
- Ruflo User Guide
- Ruflo overview, usage and status
- Ruflo federation plugin: A2A Agent Card adapter
- Ruflo releases
- Issue #958: Still can't figure out how to get v3 to actually perform work
- Issue #3189: Witness signature verification fails
- Cognitum.One (repository homepage)