Ruflo

Orchestrator · Last verified 2026-09-30

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

Ruflo key facts. Data as of 2026-09-30.
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 init writes 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 --codex writes AGENTS.md and .agents/skills/, registers the MCP server through codex mcp add, and init --dual sets 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

Protocols

MCP, A2A and AG-UI support for Ruflo. See the full matrix.
ProtocolSupportNote
MCP Yes evidence
checked 2026-09-30
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
checked 2026-09-30
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
checked 2026-09-30
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 --dual so 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

Install not yet verified by this site. What this means

# 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-core registers an MCP server (its tools are prefixed mcp__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=optional installs the core CLI only (about 45MB).
  • The curl ... | bash installer needs a POSIX shell; on native Windows use the npx command.
  • Many docs and package names still use the old claude-flow name (@claude-flow/codex, npx claude-flow@latest federation ..., MCP key claude-flow).

Official quickstart

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 verify fails 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

Unknown fields: pricing_model: the code is MIT licensed, but the user guide documents Flow Nexus, a cloud platform for Ruflo that requires sign-up and an API key; flow-nexus.io did not respond and no pricing page was found on the repository or cognitum.one, so it is unknown. protocols.agui: no AG-UI mention in README, docs/USERGUIDE.md or docs/STATUS.md, no hits for 'ag-ui' or 'agui' in GitHub code search, and not in the AG-UI README integration list.

Something wrong or out of date, or do you maintain Ruflo and want this page removed? Report a correction or request removal.