hub

ruvnet Ecosystem: A Field Guide

The ruvnet ecosystem mapped: tools, repos, methods. The ideas shaping multi-agent Claude Code workflows.

11 min read·

Field Guide

The ruvnet Stack: Supercharging Claude Code

10 open-source projects from Reuven Cohen that transform Claude Code from a coding assistant into an enterprise agent platform. This is the missing infrastructure layer: persistent memory, coordinated swarms, deterministic retrieval, and structured builds.

10
Projects
500K+
Downloads
175+
MCP Tools
60%
Cost Savings

The Builder

Who is ruvnet (Reuven Cohen)

Agentic Engineer and aiCTO based in Toronto. 59K+ LinkedIn followers, founder of the Agentics Foundation. Built Claude Flow on a 20-hour flight from Toronto to Bangalore. His philosophy: design systems that think, adapt, and act with bounded autonomy.

LLMs are a dead end. Not because they're useless, but because they put intelligence in the wrong place.

Reuven Cohen

Everyone is calling everything an agent. An agent is defined by whether it can perceive, reason, act, and update.

Reuven Cohen

Cohen built tooling out of necessity on production projects, not theory. Every repo in the ecosystem solves a real gap he hit: memory dying between sessions, agents stepping on each other, prompts burning budget unnecessarily, builds with no structure.


Priority Tier 1

Install Now: The Core Three

These three repos form the foundation. Start here before anything else.

Claude Flow / Ruflo v3

50K+ Stars · 500K Downloads

Enterprise multi-agent orchestration for Claude Code. 60+ specialized agents, 8 topology types, Byzantine fault-tolerant consensus. This is the operating system layer on top of Claude: it coordinates agents, persists memory across sessions, and self-optimizes over time.

7-Layer Architecture

User Input
  |
  v
CLI Interface
  |
  v
MCP + Security Layer
  |
  v
Router + Skills Engine
  |
  v
Swarm Orchestration (8 topologies)
  |
  v
Memory (HNSW) + LLM Providers (6)
  |
  v
SONA Self-Optimization

Install

npx ruflo@alpha init --wizard
claude mcp add ruflo -- npx ruflo@v3alpha mcp start
CapabilityVanilla ClaudeClaude Flow
Agent modelIsolated sessionsCoordinated swarms
MemorySession-onlyPersistent HNSW
OptimizationStaticSelf-optimizing (SONA)
LLM providersAnthropic only6 providers
github.com/ruvnet/claude-flow

SPARC Methodology

Anti-Vibe-Coding

Structured development for agentic builds. Prevents the chaos of 'hey claude build me a CRM' and gives every build a predictable lifecycle. SPARC is not a framework. It's a discipline.

The 5 Steps

SSpecification
PPseudocode
AArchitecture
RRefinement
CCompletion

Install & Usage

pip install sparc
sparc -m "Build client onboarding system" --hil
sparc -m "Analyze workflow" --research-only
sparc -m "Build feature" --cowboy-mode
github.com/ruvnet/sparc

SAFLA (Self-Aware Feedback Loop Algorithm)

Persistent Memory

Persistent memory and self-learning for agents. A 4-layer hybrid memory system that survives sessions and improves over time. 172,000 ops/sec with 60% compression.

Vector Memory

Semantic similarity search across all stored knowledge. Finds concepts, not just keywords.

Episodic Memory

Event sequences with temporal context. Remembers when things happened and in what order.

Semantic Memory

Knowledge graphs of concepts and relationships. Maps client to engineer to stack to blockers.

Working Memory

Active context via attention mechanisms. Like RAM: fast access to what matters right now.

pip install safla
claude mcp add safla python3 safla_mcp_enhanced.py
github.com/ruvnet/SAFLA

Priority Tier 2

High Value: Extend the Stack

Install after the core three are running. Each solves a specific gap in cost, search, or prompt efficiency.

FACT

42ms Retrieval

Deterministic retrieval at 42ms vs 2-5 seconds for traditional RAG. Facts, not hallucinations. Plugs directly into Claude as an MCP server.

github.com/ruvnet/FACT

Agentic Flow

60% Cost Savings

66 agents + intelligent LLM router. Routes simple tasks to cheap models, complex ones to powerful ones. 213 MCP tools included.

github.com/ruvnet/agentic-flow

RuVector

Self-Learning DB

Self-learning vector database with graph fusion. Builds understanding as it indexes, not just storage. Pairs with SAFLA for complete memory.

github.com/ruvnet/ruvector

SynthLang

70% Token Reduction

Math-structured prompt optimization using set theory and category theory. 30-70% cost reduction on prompts without changing intent.

github.com/ruvnet/SynthLang

The Big Picture

Full Stack Architecture

How all the pieces connect when you run the complete ruvnet stack on top of Claude Code.

Claude Code (base)
  |
  +-- + Agentic Flow MCP    --> cost routing, 66 agents, 213 tools
  |
  +-- + Claude Flow MCP     --> 60+ specialized agents, swarms, SPARC
  |
  +-- + SAFLA MCP           --> persistent memory, self-learning
  |
  +-- + FACT                --> 42ms deterministic retrieval
  |
  +-- + RuVector            --> semantic search, knowledge graph
  |
  +-- + SynthLang           --> 30-70% token reduction on prompts
  |
  = Sessions with memory, cheap routing, parallel swarms, fast search

Before / After

The Gap This Fills

Vanilla Claude Code is powerful. The ruvnet stack makes it production-grade.

GapWithout ruvnetWith ruvnet
Agent memoryCold start every sessionPersistent 4-layer memory
Multi-agentOne agent at a timeCoordinated swarms
Searchgrep (keyword matching)Semantic + graph (concept)
CostAlways Sonnet pricingAuto-routed by complexity
Build structureVibe codingSPARC methodology
Prompt efficiencyRaw text prompts30-70% optimized

Reference

All 10 Repositories

Quick-reference for the full ecosystem in install order.

ProjectDescriptionInstall
Claude FlowMulti-agent orchestration, 60+ agents, swarmsnpx ruflo@alpha init --wizard
SPARCStructured development methodologypip install sparc
SAFLAPersistent 4-layer memory + self-learningpip install safla
FACT42ms deterministic retrievalpip install fact-retrieval
Agentic Flow66 agents, intelligent LLM router, 60% savingspip install agentic-flow
RuVectorSelf-learning vector DB with graph fusionpip install ruvector
SynthLangMath-structured prompt optimizationpip install synthlang
SPARC-IDECustom VSCode fork for SPARC workflowgithub.com/ruvnet/sparc-ide
AgenticsAgentics Foundation reference implementationsgithub.com/ruvnet/agentics
Bot GeneratorRapid bot prototyping and deploymentgithub.com/ruvnet/bot-generator

AY Framework Integration

Where ruvnet's Ideas Fit

The AY Automate framework already uses agents, hooks, and context engineering. The ruvnet stack plugs directly into the gaps.

Agent Swarms: Claude Flow's 8 topology types map directly onto AY's Plan → Build → Review pipeline. Run architect, coder, and reviewer agents in parallel instead of sequentially.

Persistent Memory: SAFLA replaces the need to re-paste client context every session. Map client → stack → blockers once. Every subsequent session picks up from there.

SPARC on every build: Replace vibe-coding client deliverables with SPARC. Spec → Pseudocode → Architecture before a single line of code. Especially powerful on the /go skill cycle.

Cost routing: Agentic Flow's LLM router pairs with AY's multi-model strategy. Route quick summaries to Haiku, complex reasoning to Opus. Reduces client project cost significantly.

Knowledge retrieval: FACT replaces grep-style second-brain lookups with 42ms semantic search. Plug into the AY second brain for instant, accurate retrieval across all project context.

Prompt efficiency: SynthLang reduces token spend on long system prompts and CLAUDE.md content. Especially valuable for the complex agent hooks and multi-step skill definitions.

Want this running in your stack?

AY Automate builds AI automation systems for production teams.