SuperAPIAI Directory

robrain

github.com · AI agents

Self-hosted decision memory for coding agents: captures architectural decisions and rejected alternatives, and warns before a rejected approach is re-proposed.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

RoBrain is a self-hosted decision memory system for sharing memory between teams and AI coding agents, and for making judgments about "what is worth keeping." Its goal is not merely to store what happened, but to help people and agents avoid repeating already-rejected approaches.

Purpose RoBrain records the decisions made by a team and its agents, as well as the alternatives they ruled out, without manual tagging. It also addresses the problem of "decision forgetting": an approach that a team has already rejected may be proposed again by an agent that has no relevant memory. Officially, it is claimed that without decision memory, coding agents will re-propose approaches the team has already rejected in as many as 9 out of 10 tasks; through RoBrain's full workflow, across five archived runs, there were 0 re-proposals for 50 tasks.

Main capabilities

  • Passive capture: Sensing captures session turns, and Perception extracts each decision into Postgres, where each row can carry a structured rejected[] field (rejected alternatives).
  • Judgment layer: Batch Synthesis reads the entire corpus and flags contradictions, stance drift, and recurring entities that a single session cannot see.
  • Three-pass synthesis: drift (a stance moves without an explicit reversal), contradictions (incompatible decisions from different sessions), entity promotion (recurring tools/patterns are compressed into planning_blocks). It writes flags and edges to the database, and does not capture new decisions.
  • Decision lifecycle (active / superseded / invalidated) and decision graph (conflicts_with / extends / related_to).
  • Review: view synthesis findings via npx robrain review.
  • Git-integrated decision ledger (optional).
  • Security: secrets redaction is enabled by default, erasing API keys, tokens, private keys, and connection string passwords at both capture and ingestion; supports a fully local mode, with extraction and embedding running on an OpenAI-compatible local server (Ollama / LM Studio / vLLM).

How to use Two ways of running are provided. Option one, self-hosted (free, open source): everything runs locally—your own Postgres, your own API keys, and data never leaves your machine. No need to clone, robrain up pulls the published Perception image and generates credentials into ~/.robrain/stack/.env. The default path uses Anthropic (extraction) + OpenAI (embeddings); it also supports OpenAI-only, Gemini, other embeddings, fully local, and other configurations. Option two, Rory Plans Cloud (managed): no hosting, no keys, included in the paid Rory Plans plan. Log in at roryplans.ai, create an API token, and paste it during installation; no Docker, database, LLM, or embedding keys required. After installation, init-project generates CLAUDE.md and AGENTS.md (Codex CLI) for each repository, and Cursor also gets .cursor/rules/robrain.mdc (alwaysApply: true). Self-hosted Claude Code users can additionally install hook-based capture and pre-task warnings about previously rejected proposals; Codex CLI / IDE also get the same lifecycle hooks, automatically written to ~/.codex/config.toml by robrain install; Hermes installs a standalone memory provider plugin via npx robrain install --hermes. Cross-tool unified configuration can cover Claude Code, Cursor, GitHub Copilot (VS Code), and Codex CLI, pointing to the same Postgres store; the classifier LLM can be Anthropic Haiku or OpenAI.

Use cases Coding is the first vertical because the feedback loop is tight—rollbacks, incidents, and rework make the cost of "forgetting a rejection" measurable. The same architecture also applies to any scenario where agents make cross-session decisions. A typical case: someone decides in Cursor not to migrate Perception to Express, and the next day a new colleague in Claude Code proposes the exact same change; RoBrain presents the documented rationale before the agent goes down the already-rejected path.

Limitations and requirements Self-hosting requires Docker + Docker Compose (to run Postgres and Perception), Node.js and pnpm (build and CLI), a classifier LLM key (Anthropic Haiku or OpenAI) or a local OpenAI-compatible server, an embedding key (such as OpenAI) or the same local server. The memory corpus is protected by PERCEPTION_API_KEY, and Perception refuses to start when the key is empty. The upgrade process and other details, as well as troubleshooting, are in the official documentation. The project is licensed under Apache 2.0 and built by Rory Plans.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools