ruvnet brain · a downloadable brain for Claude Code
Build 9 months ahead.
Without being Ruv.
Reuven Cohen builds AI tools about nine months ahead of everyone else — the stuff that shows up in Claude Code next year. The catch: Claude doesn’t recognize work that’s ahead of its own training, so it quietly talks you back into the old way. RuvNet Brain fixes that. It’s a downloadable brain — rUv’s real source code, indexed — that Claude reads before it answers. You get to build on the front edge of AI, even if you’ve never heard of half these tools.
The whole idea in one sentence: install one file, and Claude builds with rUv’s real tools — on every prompt, in every repo — so you never have to become rUv to build like him.
fork 1,000,000 vectors of agent memoryagenticow
describe a need, get the right rUv toolno name needed
rUv’s real source code, indexednot docs
crypto baked across the stackyears before mainstream
01
The moment it goes wrong
What actually happens without the Brain?
Meet Maya — a capable developer, brand-new to rUv’s tools. She opens Claude Code and asks the obvious thing: “Set up vector search for this project using RuVector.”
Without the Brain. Claude has never been trained on RuVector. So it does what classical training taught it — it reaches for Pinecone, or pgvector, or hand-rolls cosine similarity in JSON. It even gently argues with her: “a managed vector DB would be more standard.” Maya, nervous and new, assumes Claude knows best. She ends up far from rUv’s actual stack — slower, heavier, wrong.
With the Brain. Claude reads rUv’s real RuVector source first, sees RVF binary
vector files + HNSW, and writes the correct RvfDatabase.open(...).query(...) code
— the way rUv would. No argument. No drift. Maya ships the front-edge version on her first try.
Technical view — the same question, two paths
02
Why Claude drifts: the 9-month gap
Why doesn’t Claude already know this?
your assistant’s blind spot
Claude is trained on the public history of software — millions of classical-dev examples. rUv works ~9 months ahead of that frontier.
His tools are the prototypes of what becomes mainstream AI tooling — much of it lands in Claude Code 8–9 months later. So when you ask Claude to use today’s front-edge rUv tool, you’re asking about its own future — and it defaults to the past it was trained on. It doubts. It substitutes. It “falls asleep at the switch.”
This is not Claude being dumb. It’s a training-horizon problem. The newcomer gets the worst of both worlds: a revolutionary toolset with no manual, and an assistant that argues against it.
Technical view — the timeline, and the gap
03
Why others failed to build this
People tried this before. Why didn’t it work?
33% → 96% routing
Plenty of people tried to build a RuvNet knowledge base so AI could use rUv’s tools. They failed — not from lack of effort, but wrong architecture.
What failed: flat JSON embeddings + naive RAG + matching on repo names. Ask “how do I do cheap LLM routing” without naming the repo and it returns nothing useful. Brittle, shallow, drifts.
What we did differently — why this one passes:
- RuVector
.rvfsingle-file HNSW — the whole vector index is one file: no server, no Docker, crash-safe (a crash never permanently corrupts it), and post-quantum-signed. Real HNSW search in rUv’s own format — not hand-rolled cosine over JSON. - Dual embeddings — MiniLM-384 and bge-768, plus a cross-encoder rerank. Two readings of meaning catch what a single keyword match misses.
- Source-chunked, not doc-scraped — 75,509 chunks of rUv’s real source code, not docs or a blog about the code. The brain knows the actual lines.
- Capability cards — the breakthrough. A high-signal “what this tool is FOR” card per building block, so a newcomer who describes a need (“grade research for trustworthiness”) routes to the right repo without knowing its name.
The measured result: routing by described need went from 33% → 96%. That jump is the architecture difference.
Technical view — their architecture vs this one
04
How it steps in like Ruv — automatic, never asleep
Do I have to remember to use it?
fires on prompts AND code edits
No. It’s automatic. You don’t call anything. You don’t remember anything. Once installed, the Brain works on every prompt in every repo.
It grabs the wheel at two moments — intent and action:
- At intent — the grounding hook. It fires on every prompt and tells
Claude “ground in rUv’s real source before you assert anything.” Even when you never say
the word “RuvNet,” it speaks up the moment you reach for a classical default —
pinecone,pgvector,langchain— and points Claude at rUv’s way instead. - At action — the interception. The instant Claude tries to write
import pineconeor runnpm i langchain, the Brain catches it and injects the rUv replacement before the code lands. The drift is corrected at the keystroke, not after.
Behind both, a search_ruvnet tool pulls the exact source passage on demand
— so the correction always comes with rUv’s real code attached, not a guess. You just
talk to Claude like normal; the Brain makes it behave like it finally read rUv’s whole
library.
Technical view — the grounding loop
search_ruvnet pulls the real passage → grounded, cited answer → back to you. Every turn.
05
What’s actually in the Brain
What did you gather, exactly?
18 building blocks · 75,509 source chunks
18 of rUv’s building blocks, 75,509 source chunks, in a real vector brain (RVF). Not docs — the source.
Coverage map — everything gathered in one brain
search_ruvnet tool.Plus human-written primers and the capability cards that make routing work. Everything is read once, up front, so Claude can be pointed straight at the exact line of code instead of skimming and giving up.
06
The ecosystem
What can I actually build with?
You never choose between these and you never read their docs — Claude reaches for the right one automatically. Here’s the whole toolkit, in plain terms, grouped five ways. Open any one for the human version and the one thing it does that nobody else does yet.
Orchestration — running the agents
1 The conductor that runs a swarm of agents ruflo
Coordinates swarms of parallel agents that share state and memory — spawning them, routing and orchestrating multi-step tasks, and adding hooks and MCP tools. The conductor of the whole stack, with 60+ specialized agents and a hierarchical topology backed by Raft consensus. Ahead: a built-in self-learning layer with HNSW-indexed pattern storage reported at 150×–12,500× speedup and sub-10 ms ONNX embeddings — so the swarm gets measurably better the more it runs.
2 54+ ready-made coding agents that swarm in Claude Code agentic-flow
A roster of 54+ specialized agents — coder, reviewer, architect, PR-manager — that work together right inside Claude Code across three swarm topologies (mesh, hierarchical, ring), routed over Anthropic, OpenRouter and Gemini to manage cost. Ahead: each agent’s confidence evolves 0.6 → 0.95 via meta-learning with persistent ReasoningBank memory, and the hierarchical topology reported a 100% success rate.
3 Idea → shipped code, in disciplined gated steps sparc
Build properly instead of “vibe it”: Specification → Pseudocode → Architecture →
Refinement → Completion, with a quality gate between every phase and a CLI driving the AI analysis,
planning and execution. Ahead: a --research-only pass runs before you
write a line, with human-in-the-loop (--hil) approval at each gate.
4 An agent that rewrites itself to improve safla
A self-improvement architecture that monitors, evaluates and edits its own behavior across three layers — operational, meta-cognitive and self-modification — with episodic, semantic and vector memory. Ahead: continuous self-evaluation with divergence and novelty detection plus automated error-recovery workflows, so it adapts its own strategy and policy at runtime.
Vectors + memory — what the agents know
5 A vector database that’s just one file ruvector
A high-performance Rust vector database: SIMD-optimized HNSW indexing in a single .rvf binary file,
with WASM bindings for in-browser search — a zero-server replacement for Pinecone, Qdrant or pgvector.
Ahead: sub-100 µs HNSW search at ~16.4K QPS, packaged as a
cryptographically-signed RVF container with witness chains for offline-capable deployments. This Brain runs
on it.
6 A cache that gets faster the more you use it rulake
A self-optimizing read and working-memory layer that sits in front of your index, giving agents a remember / recall / forget surface with sub-millisecond RaBitQ recall. Ahead: cryptographic witness-chain provenance (SHAKE-256) with automatic bundle-rotation refresh and an auto-tuning hit ratio — deterministic, verifiable retrieval that improves with usage.
7 Memory that can explain why it remembered agentdb
Durable agent memory that survives sessions — a SQLite + vector hybrid that also stores n-ary hyperedge graph relationships between memories. Ahead: a causal memory graph with explainable, feature-attribution recall (it answers “why did I recall that?”), benchmarked 150× faster than brute-force search.
8 Git for agent memory agenticow
Copy-on-write vector branching: branch, checkpoint, roll back, promote and trace agent memory like code, so parallel agents share one base while keeping isolated edits. Ahead: forks a store in constant time and size — ~0.5 ms and ~162 bytes per branch regardless of base, proven 83× faster and ~3000× smaller than copying 1,000,000 vectors — plus GDPR right-to-erasure by dropping a branch.
Agents + tooling — building & running them well
9 A factory that builds & evolves agent harnesses agent-harness-generator
Scaffolds a complete, host-agnostic agent harness (Claude Code, Codex, pi.dev and other MCP hosts) with a single command, then scores the repo for fit and the harness for readiness, safety and SBOM. Ahead: Darwin Mode evolutionarily improves the harness itself — A/B-tested and mutated under immutable safety rails — instead of fine-tuning the model.
10 Prompts that program themselves dspy.ts
A TypeScript implementation of DSPy: build LLM pipelines from composable modules and typed signatures (classification, sentiment, QA, ReAct) and let optimizers auto-tune the prompts and few-shot examples against a metric. Ahead: runs fully in-browser on ONNX Runtime Web, with hierarchical (working / short / long) vector memory on AgentDB.
11 Keeps tool calls fast and crash-proof fact
Wraps LLM tool calls with aggressive caching plus a circuit-breaker and graceful degradation, so tools stay fast and don’t cascade-fail. Ahead: a three-tier cache reporting 85%+ hit rate at sub-50 ms, with production alert rules and a LiteLLM multi-provider gateway.
12 Agents that manage their own budget daa
A Rust framework for decentralized autonomous agents that govern themselves with auditable rules (MaxDailySpending, RiskThreshold), run token economies and accounting, and integrate AI decisions over MCP. Ahead: rule-enforced governance combined with post-quantum (ML-DSA / ML-KEM-768) transaction signing and self-running MRAP autonomy loops.
Safety + security — trust, measured
13 Agent messaging a quantum computer can’t crack qudag
A quantum-resistant, DAG-based platform for end-to-end encrypted, anonymous agent-to-agent messaging over peer-to-peer QUIC, with resource metering. Ahead: NIST post-quantum crypto (ML-KEM-768 + ML-DSA) on a DAG with QR-Avalanche consensus and anonymous multi-hop routing that resists traffic analysis.
14 Scores how well an AI fixes real CVEs cve-bench
A SWE-bench-style benchmark that measures whether an agent can actually fix real, publicly disclosed CVEs by passing each project’s own FAIL_TO_PASS security regression test. Ahead: a conformance firewall ensures the model never sees the gold fix, scored on a cost-aware resolves-per-dollar leaderboard.
Specialized — the wild edge
15 Sense people through walls with plain WiFi ruview
Camera-free WiFi sensing: turns ordinary WiFi Channel State Information (CSI) into presence, occupancy, 17-keypoint pose, and fall / gesture recognition — privacy-preserving, no cameras (needs ESP32-S3/C6). Ahead: reads medical-grade vitals — breathing and heart rate — from radio alone, with sleep-apnea screening and a mass-casualty assessment mode, and it fails closed rather than fabricating a reading.
16 Search images by describing what you want rupixel
Zero-server, client-side visual retrieval: searches document screenshots and live video frames by semantic meaning using on-device CLIP embeddings — OCR-free, nothing uploaded. Ahead: real-time CLIP ViT-B/32 search running entirely in the browser at ~50–200 ms per keyframe, with keyframe de-duplication.
17 Neural nets in Rust, run in the browser ruv-fann
A fast, memory-safe FANN-style neural network library in Rust — MLPs and cascade-correlation networks
that grow dynamically — that compiles to WASM for browser and edge, with time-series forecasting.
Ahead: zero unsafe code, plus a CUDA-WASM bridge for GPU-accelerated
inference in portable targets.
18 Cut LLM token cost with a drop-in proxy synthlang
LLM middleware with an OpenAI-compatible proxy that compresses prompts and cuts token cost (~75% reduction), plus semantic caching and PII masking — no app rewrite — and a CLI for mathematical / symbolic prompt transforms. Ahead: symbolic compression reported at ~75% fewer tokens while raising task accuracy to 97% vs an 85% baseline, applied at the proxy.
07
See it work
Show me, don’t tell me.
Same question, asked two ways. Left: Claude alone (drifts). Right: Claude + Brain (grounded in rUv’s source). Watch the difference.
No backend, no API key. The only difference is the brain in context: it called search_ruvnet, pulled the real passage, and answered from rUv’s own source — not its training prior.
08
Proof, and honest expectations
Will it always work? When won’t it?
Real, measured numbers — not faith. Re-run them yourself on your own machine.
| What we measured | How it’s asked | Result |
|---|---|---|
| Named routing | you name the tool | 47 / 48 · 98% |
| Described routing | you only describe it (was 33%) | 27 / 28 · 96% |
| Code-level depth | “how is it implemented?” — not the docs | actual code, not summaries |
| Fresh-download install | brand-new machine: download, unzip, ask | 4 / 4 |
Now set expectations honestly — this is comfort, not hype:
- What it WILL do, every time: ground Claude in rUv’s real source, stop name-blind drift, cite actual code, route by description.
- Where it shines: anything touching rUv’s stack — vectors/RVF, Ruflo orchestration, SPARC, agent memory.
- Where it won’t help (honest): it’s not a general coding oracle; for non-RuvNet topics Claude works normally. ~1 in 25 described queries still routes imperfectly (we show it: 27/28).
09
How you actually use it
It’s installed — now what do I do?
one line · automatic
The install is phenomenal — one line.
# one command — downloads the Brain + wires the Claude Code plugin
npx github:stuinfla/ruvnet-brain
It downloads the Brain (~421 MB) to
~/.cache/ruvnet-brain/kb, wires up the Claude Code plugin, and you’re done.
No Docker, no server, no config.
- Install once. Run the one line above. Watch it download and wire itself up — you’ll see it confirm each step. (Constant feedback = confidence.)
- Open Claude Code in any repo. Your own, anything. Nothing to copy in. The Brain is user-scoped — it travels with you, not the project.
- Just ask, normally. “Use RuVector for search.” “Set this up the way rUv would.” The Brain grounds Claude automatically. You’ll see Claude cite rUv’s real source instead of guessing. That’s how you know it’s working.
The nervous questions, answered directly
10
Drop it into any repo
Is this locked to one project?
install once · works everywhere
The Brain isn’t copied into a repo. Install once, and every Claude session in every folder has it.
Point it at a fresh repo — your own product, say — and Claude builds there as if rUv were pairing with you.
# what shipped — portable, user-scoped ~/.cache/ruvnet-brain/kb/ # the Brain (RVF) — travels with you, not the repo ├ capability-cards.md # route by need, not by name ├ concepts/ # plain-English primers per building block ├ *.rvf # 75,509 source chunks · HNSW vector index └ forge-mcp-all.mjs # the search_ruvnet tool — one tool, all repos claude-code-plugin/ # the grounding hook — fires on every prompt