robrain
llms.txt89 starsChanged 40 days agoApache-2.0View on GitHub
Open-source institutional memory for AI coding agents. RoBrain records the engineering decisions a team makes — including the alternatives it REJECTED and why — and warns any connected agent before it re-proposes an approach the team already ruled out. Self-hosted on your own Postgres; Apache-2.0. Use RoBrain when an agent should know not just what was decided, but what was tried and rejected: the dependency removed for a CVE, the migration rolled back, the vendor dropped over pricing. Decisions are…
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
Files
# RoBrain
> Open-source institutional memory for AI coding agents. RoBrain records the engineering decisions a team makes — including the alternatives it REJECTED and why — and warns any connected agent before it re-proposes an approach the team already ruled out. Self-hosted on your own Postgres; Apache-2.0.
Use RoBrain when an agent should know not just what was decided, but what was tried and rejected: the dependency removed for a CVE, the migration rolled back, the vendor dropped over pricing. Decisions are captured passively from coding sessions (no tagging) and shared across Claude Code, Cursor, GitHub Copilot, Codex CLI, Hermes, and eve agents — decide in one tool, remembered in all.
## Quick start
- Install, no clone needed: `npx robrain@latest up && npx robrain install --self-hosted` — starts Postgres + Perception in Docker and wires the MCP server into detected editors.
- Register a project: `npx robrain init-project` inside the repo. Capture is automatic from there.
- Portable MCP config: `{ "command": "npx", "args": ["-y", "robrain", "mcp"] }`
## Key facts
- Storage: PostgreSQL + pgvector — one database for structured records and vectors; rejected alternatives are structured JSONB (`rejected[]`), not prose.
- Pre-task veto warnings: a deterministic exact-match scan plus semantic search fire BEFORE the agent acts, and old rejections never fade from warnings.
- Judgment, not just storage: scheduled Synthesis passes flag contradictions and stance drift across the whole corpus; git outcomes (reverts, incidents) demote decisions that proved wrong.
- Benchmarked: VetoBench — 0/50 re-proposals of rejected approaches through the full pipeline; receipts committed in `packages/vetobench/`.
- Self-hosted privacy: nothing leaves your machine except calls to the LLM/embedding provider you configure (a local OpenAI-compatible server works too).
- Tunable capture: `npx robrain capture set` takes plain-language instructions for what to store, a capture mode (keyword gate or every turn), a confidence threshold, and extra memory kinds beside decisions; `capture test` dry-runs them on sample turns. Defaults are unchanged for projects that never set anything.
- Who decided: every decision records an author email and date (git `user.email` self-hosted; the signed-in identity on cloud), shown in review, `npx robrain search`, the summary and veto warnings. `npx robrain rules add` writes a rule by hand (confidence 1.0, approved on insert); `npx robrain projects create` makes a project a team shares across repos.
- Production agents (cloud): a project per agent, registered by the eve provider; admins push rules to every production agent, to one tag of agents, or to one agent (`npx robrain promote`); tags come from the tools an agent uses through an admin-kept mapping (`npx robrain tags map`); every governance action is in a ledger. Self-hosted keeps one project by design.
## Docs
- [README](https://github.com/adelinamart/robrain/blob/main/README.md): install, quickstart, cloud vs self-hosted
- [Concepts](https://github.com/adelinamart/robrain/blob/main/docs/concepts.md): architecture (Sensing / Perception / Synthesis), comparisons
- [Deprecation policy](https://github.com/adelinamart/robrain/blob/main/docs/deprecation.md): additive routes and migrations, nothing retired without a replacement, export at any version
- [CLI reference](https://github.com/adelinamart/robrain/blob/main/docs/cli.md): every command
- [VetoBench](https://github.com/adelinamart/robrain/blob/main/packages/vetobench/README.md): behavioral benchmark and receipts
- [@robrain/eve](https://github.com/adelinamart/robrain/blob/main/packages/eve/README.md): memory provider for eve agents
## Managed option
RoBrain cloud (managed, nothing to host) is included with every paid [Rory Plans](https://roryplans.ai) plan. Rory Plans is the Cloud Office for humans and AI agents; RoBrain is its open-source memory layer.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

