RepoBrain – Repo Intelligence Engine
Give your repo a brain: ChatGPT for your codebase, works across Claude Code, Cursor, Codex, Windsurf, and more.
- Source repo
- study8677/repobrain
- Stars
- ★ 1.4k
- Last updated
- 7d ago v0.3.1
- FARS reviewed
- Nov 08, 2026
- License
- MIT
- Primary language
- Python
- FA score
- 54/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformCodex · Claude Code
- Cost
- Free software; you pay for model usage
- Setup effort
- Low · running in minutes
- You'll need
- 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)
- Source review
- 54/100 · Major gaps
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.
- 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.
- A team onboarding a new codebase runs rb-refresh to auto-generate module knowledge docs, accelerating ramping up.
- A Codex CLI user asks /rb-ask "Where is X defined?" to quickly locate symbols and call chains.
- A project maintainer runs /repobrain:rb-refresh quick after code changes to incrementally update the knowledge base.
- 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)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
What are this agent's strengths and limitations?
- 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.
- 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?
Why each dimension lost points
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.
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.
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.
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.
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.
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.
- 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.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
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 ↗ -
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 ↗ -
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?
Do I need to run rb-refresh for every project?
/repobrain:rb-refresh quick for incremental updates.Can I use RepoBrain offline?
Can I share the knowledge base with my team?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.