RoBrain

Shared memory, decision provenance, and architectural guardrails for multi-agent systems.
RoBrain isn't just another memory layer. It is the governance layer that was missing around AI agents: perimeter tools check who an agent is, but they cannot tell whether an agent is about to repeat a mistake the team already ruled out, or whether it is acting inside the team's constraints. RoBrain records what your team and its agents decided, what they rejected and why, who decided and when, and which rule reached which agent, and surfaces it before the agent acts again.
Self-hosted on your own Postgres. Passive capture, structured vetoes, corpus-wide contradiction scans — nothing leaves your machine. Works with Claude Code, Cursor, GitHub Copilot (VS Code), Codex CLI, Hermes, and production agents built on Vercel's eve.
Measured: without the rejection in context, every frontier model we ran re-proposed an approach the team had already rejected, in 3 to 9 of 9 tasks per run. With RoBrain veto warnings in context: 0 of 159 across six models from four vendors, every answer naming the prior rejection — VetoBench.
What it is
RoBrain records what your team and its agents decide — and the alternatives they ruled out — without anyone tagging anything by hand. Sensing captures session turns; Perception extracts each decision into Postgres, where every row can carry a structured rejected[] field, the author and date, and the session turn it came from.
Most agent-memory tools stop at capture: they store what happened and hope you query it later. RoBrain adds judgment and provenance. Batch Synthesis reads the whole corpus to flag contradictions, stance drift, and recurring entities that no single session could see. Every memory can be traced back: who decided it, when, from which turn, and (on cloud) who pushed it to which production agent.
The point is the handoff. Someone makes a deliberate call in Cursor on Tuesday — say, keeping Perception on Hono instead of porting to Express. A new teammate opens Claude Code on Wednesday with no memory of it and asks to make exactly that change. RoBrain surfaces the recorded rationale before the agent steers down a path you already rejected — same Postgres store, same vetoes, captured passively.
The cost of forgetting a rejection isn't inefficiency. It's the auth bypass you already patched, the migration you already rolled back, the dependency you already removed for a CVE — re-suggested by an agent with no memory of why you said no.
Coding is the first vertical because the feedback loops are tight — reverts, incidents, and rework make the cost of a forgotten rejection measurable. The same store now governs production agents: each agent built on eve gets its own memory project on first run, and the team pushes reviewed rules to it from the same RoBrain its coding agents use.
How it works, the two pillars (capture + judgment), and the full walkthrough: docs/concepts.md.
Install
Two ways to run RoBrain — pick one:
- Option 1 · Self-hosted (free, open source): everything runs on your machine — your Postgres, your API keys, nothing leaves your laptop.
- Option 2 · Rory Plans cloud (managed): nothing to host, no keys — included with every paid Rory Plans plan.
Option 1 · Self-hosted (free, open source)
No clone needed — robrain up pulls the published Perception image and generates credentials into ~/.robrain/stack/.env.
Default path uses Anthropic (extraction) + OpenAI (embeddings). Other setups (OpenAI-only, Gemini, other embeddings, fully local) — Concepts — Prefer a different provider setup?.
export ANTHROPIC_API_KEY=... OPENAI_API_KEY=... # or add them to ~/.robrain/stack/.env after the first run
npx robrain@latest up # start Postgres + Perception from ghcr.io
npx robrain install --self-hosted # wire Sensing MCP into your editors
From a clone instead (development, or building the image yourself)
First pnpm docker:up auto-creates .env and fills PERCEPTION_API_KEY / POSTGRES_PASSWORD. Perception still needs your LLM + embedding keys before it stays up.