RepoBrain – Repo Intelligence Engine

Give your repo a brain: ChatGPT for your codebase, works across Claude Code, Cursor, Codex, Windsurf, and more.

Stars
★ 1.4k
Last updated
7d ago v0.3.1
FARS reviewed
Nov 08, 2026
License
MIT
Primary language
Python

At a glance

How it runs
Agent plugin / skillCLIMCP server
Works with
Universal · cross-platformCodex · Claude Code
Cost
Free software; you pay for model usage
Setup effort
Low · running in minutes
You'll need
Python 3.10+pipAPI key for OpenAI-compatible providerShell / CLINetwork accessLocal filesystemMCP Server
Typical use
A developer in Claude Code runs /repobrain:rb-ask "How does auth work?" to get a grounded answer with file references instead of manually searching.
Not a fit if
  • Users on Cursor, Windsurf, or other hosts without native plugin support
  • Very large codebases where the first full refresh time and API cost are a blocker
Website
deepwiki.com ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-11-26latest release v0.3.1 (2026-07-10)

What does this agent do, and when should you use it?

RepoBrain (formerly Antigravity Workspace Template) is a cross-IDE repository knowledge engine that uses a multi-agent cluster to autonomously read code, generate knowledge artifacts, and answer questions grounded in actual source with file paths and line numbers. It ships as two Python packages (cli and engine) plus native plugins for Claude Code and Codex CLI. Core components include Router, ModuleAgent, GitAgent, and a multi-agent refresh pipeline. The engine creates shared knowledge files in .repobrain/ that any IDE can read, and it offers an optional MCP server. Installation via plugin marketplace or pip; requires Python 3.10+ and an OpenAI-compatible API key. Main commands: rb-setup, rb-refresh, rb-ask, rb-init.

RepoBrain provides four primary slash commands: rb-setup interactively configures LLM provider and writes .env; rb-refresh deploys a multi-agent cluster that scans the codebase, generates conventions.md, structure.md, knowledge_graph.json, agents/*.md docs, and map.md routing index; rb-ask routes questions to the appropriate ModuleAgent and returns grounded answers with file paths and line numbers; rb-init scaffolds a new multi-agent repository. The engine includes a GitAgent for analyzing git history, and an optional MCP server (rb-mcp) exposing ask_project and refresh_project tools. Installation via Claude Code plugin marketplace or pipx for Codex.

  1. A developer in Claude Code runs /repobrain:rb-ask "How does auth work?" to get a grounded answer with file references instead of manually searching.
  2. A team onboarding a new codebase runs rb-refresh to auto-generate module knowledge docs, accelerating ramping up.
  3. A Codex CLI user asks /rb-ask "Where is X defined?" to quickly locate symbols and call chains.
  4. A project maintainer runs /repobrain:rb-refresh quick after code changes to incrementally update the knowledge base.
  5. A security auditor uses rb-ask to check for vulnerabilities such as missing authorization, based on code evidence.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • pipx install "git+https://github.com/study8677/repobrain.git#subdirectory=engine"
Config files
.env
Runtime
Python 3.10+

How do you install or deploy this agent?

Claude Code plugin: in Claude Code, run /plugin marketplace add study8677/repobrain then /plugin install repobrain@repobrain. Codex CLI manual install: pipx install "git+https://github.com/study8677/repobrain.git#subdirectory=engine" and pipx inject --force --include-apps repobrain-engine "git+https://github.com/study8677/repobrain.git#subdirectory=cli", then add plugin marketplace. Requires Python 3.10+ and an OpenAI-compatible API key.

How do you use this agent?

After installation, in your project run /repobrain:rb-setup to choose LLM provider and save .env, then /repobrain:rb-refresh to build the knowledge base, and finally /repobrain:rb-ask "How does auth work?". For Codex, use /rb-setup, /rb-refresh, /rb-ask. For manual install, use rb-refresh --workspace . and rb-ask "question" --workspace ..

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

External MCP tool bridge

Inherits capabilities of connected MCP servers; audit third-party servers before enabling.

What are this agent's strengths and limitations?

Pros
  • Cross-IDE compatibility: the same .repobrain/ knowledge files are used by Claude Code, Cursor, Codex, Windsurf, etc., avoiding per-IDE configuration.
  • Automated knowledge base generation: rb-refresh uses multi-agent cluster to generate module docs, reducing manual documentation effort.
  • High factual accuracy: benchmark shows 99% accuracy on factual lookups and is 2.1× faster than Codex CLI on factual questions.
  • Language-agnostic: module detection based on directory structure, works with any programming language without AST parsing.
Limitations
  • Requires LLM API key: rb-refresh and rb-ask require an OpenAI-compatible API key; local mode is for personal use only.
  • Initial refresh is time-consuming and consumes API calls; large codebases may take minutes and incur cost.
  • Quality depends on chosen LLM provider, introducing potential vendor lock-in.
  • Only Claude Code and Codex have native plugin support; other IDEs rely on file integration or MCP, which may lack full functionality.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
RepoBrain – Repo Intelligence Engine This agent 54 · Major gaps Agent plugin / skillFree + model costs ★ 1.4k 7d ago Python Codex · Claude Code
ClickHouse Loom 68 · Some gaps — ★ 264 today Python Codex · Claude Code
Cognee Memory Platform 76 · Good Library / SDKFree + model costs ★ 34k 4d ago Python Claude Code · OpenAI API
PlugMem 51 · Major gaps CLIFree + model costs ★ 314 5mo ago Python Claude Code · OpenAI API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
54/ 100 5-point scale 2.7 / 5
Trust 13/29
Reliability 8/14
Adaptability 10/18
Convention 12/18
Effectiveness 7/13
Verifiability 4/8
Why each dimension lost points
Trust13 / 29 · 2.2/5

The docs say refresh uses the configured model, stores knowledge under the project’s .repobrain/ directory, and requires a clean worktree; failed updates preserve a usable generation, and answers include code references. The sandbox docs explicitly limit local execution to trusted workspaces and warn before falling back to local execution when an isolated runtime is unavailable. These details support data-flow transparency, rollback, and source attribution. Deductions reflect limited evidence of least privilege, sensitive-knowledge protection, and dependency security, as well as unclear confirmation boundaries for refresh and code execution.

Reliability8 / 14 · 2.9/5

The README, skills, and sandbox docs describe refresh, asking, recovery, and fallback paths. CI files list tests and entrypoint checks across several Python versions, supporting ordinary-use dependency and failure handling scores. Self-consistency is reduced because ZERO_CONFIG says tools are discovered and immediately available, while also instructing users to refresh or restart the agent; its description of automatic tool use is broad.

Adaptability10 / 18 · 2.8/5

The materials cover unfamiliar-codebase Q&A, knowledge refresh, multiple IDEs, MCP/CLI, and project scaffolding, with quick/full modes and local/optional sandbox choices. They give some support-environment and security-boundary guidance. Deductions reflect broad trigger descriptions for tool discovery and automatic context injection, with examples that do not fully define when tools or models will be called.

Convention12 / 18 · 3.3/5

The repository provides multilingual documentation, installation and usage guide entrypoints, command examples, a security policy, an MIT license, and a changelog entrypoint. The security policy names a reporting email and response expectation, and maintenance responsibility is described at a basic level. Deductions reflect the Antigravity-to-RepoBrain rename and the parallel 0.4.0 plugin version, as well as installation details and limitations spread across files and broadly stated maintenance responsibility.

Effectiveness7 / 13 · 2.7/5

The product organizes repository knowledge in a shared directory and offers Q&A with file references, structure retrieval, and resumable refresh. Docs provide example questions and commands, showing practical retrieval and cross-IDE value. Deductions reflect potentially lengthy, model-using initial builds and a lack of broadly applicable cost-benefit evidence; static materials cannot confirm the actual effectiveness of some documented automation.

Verifiability4 / 8 · 2.5/5

The README, skills, sandbox docs, and CI files separately support product capabilities, limitations, and stated project checks. The docs describe source paths, line numbers, replayable evidence, and constrain a benchmark report to a specific experiment. Deductions reflect tension between automatic-discovery claims and instructions elsewhere in the same document, plus some effectiveness claims without independent code evidence in the supplied material; claims therefore are not treated as verified results.

Risks and how to mitigate them
  • The local sandbox provides only process-level isolation and is unsuitable for untrusted code. If the selected isolated runtime is unavailable, execution falls back to local mode; heed the warning.
  • Refresh reads code and uses the configured model, and the first build may take a while. Commit or stash local changes and consider whether the configured model is appropriate for the code context being sent.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 064e6a1ee1a3 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/repobrain.svg)](https://followagents.com/en/agents/repobrain)
<a href="https://followagents.com/en/agents/repobrain"><img src="https://followagents.com/badge/repobrain.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v0.3.1 RepoBrain 0.3.1
    Release notes excerpt
    Highlights: - Freshness-aware answers with true incremental and resumable refresh. - New rb doctor diagnostics and actionable CLI error handling. - Claude plugin now installs and upgrades the rb CLI and engine together. - Clean-room fresh-install and v0.3.0 upgrade checks now run in CI. - Runtime changes after a release tag now require version bumps. Versions: engine/plugins 0.3.1, CLI 2.0.1.
    View on GitHub ↗
  2. v0.3.0 RepoBrain 0.3.0
    Release notes excerpt
    Antigravity is now RepoBrain 🧠 — same engine, new name. The repository moved to study8677/repobrain (old URLs redirect automatically). ⚠️ Breaking changes This is a clean-break rename. All functional identifiers changed: | Before | After | |---|---| | ag / ag-ask / ag-refresh / ag-mcp | rb / rb-ask / rb-refresh / rb-mcp | | AG_* environment variables | RB_* (e.g. RB_ASK_TIMEOUT_SECONDS) | | .antigravity/ knowledge directory | .repobrain/ | | antigravity-engine / antigravity_engine | repobrain-engine / repobrain_engine | …
    View on GitHub ↗
  3. v0.2.1 Antigravity 0.2.1
    Release notes excerpt
    Stage 1 hotfix release.\n\nHighlights:\n- Claude plugin MCP registration uses bundled .mcp.json and plugin-prefixed tool names.\n- ag-mcp reports version 0.2.1 and installer upgrades stale engines.\n- First refresh initializes .antigravity automatically.\n- MCP startup/tool errors are logged privately with secret redaction.\n\nVerification: engine test suite passed locally (172 passed, 1 requests dependency warning). --- …
    View on GitHub ↗

FAQ

How is RepoBrain different from Codex CLI's built-in code search?
RepoBrain pre-builds a knowledge base and routes questions to relevant modules, avoiding full-repo search each time. In benchmarks, it was 2.1× faster on factual questions and matched or beat Codex on correctness, though Codex excelled on synthesis questions.
Do I need to run rb-refresh for every project?
Yes, each project needs its own knowledge base. After code changes, you can run /repobrain:rb-refresh quick for incremental updates.
Can I use RepoBrain offline?
Partially. Local host-runner mode (RB_HOST_RUNNER=codex) works without an API key for rb-ask, but it's experimental and for personal use. Fully offline mode can generate scan artifacts with RB_REFRESH_SCAN_ONLY=1.
Can I share the knowledge base with my team?
Yes, .repobrain/ files can be committed to git, but .env is ignored. Sharing enables consistent knowledge across team members, but be cautious about sensitive information in generated docs.
Was this page helpful?
View on GitHub ↗ Install ↓

Host ecosystems

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts