$git clone https://github.com/study8677/repobrain<sub>Formerly known as <b>Antigravity Workspace Template</b> — same project, new name.</sub>
| 1 | <div align="center"> |
| 2 | |
| 3 | <img src="docs/assets/logo.svg" alt="RepoBrain" width="140"/> |
| 4 | |
| 5 | # RepoBrain |
| 6 | |
| 7 | ### Give your repo a brain 🧠 — ChatGPT for your codebase, works in Claude Code, Cursor, Codex, Windsurf & 4 more. |
| 8 | |
| 9 | <sub>Formerly known as <b>Antigravity Workspace Template</b> — same project, new name.</sub> |
| 10 | |
| 11 | [](LICENSE) |
| 12 | [](https://python.org/) |
| 13 | [](https://github.com/study8677/repobrain/actions) |
| 14 | [](https://deepwiki.com/study8677/repobrain) |
| 15 | [](https://github.com/xiaolai/nlpm-for-claude) |
| 16 | [](https://github.com/study8677/repobrain/stargazers) |
| 17 | |
| 18 | <br/> |
| 19 | |
| 20 | <img src="https://img.shields.io/badge/Claude_Code-✓-D97757?style=flat-square" alt="Claude Code"/> |
| 21 | <img src="https://img.shields.io/badge/Codex_CLI-✓-412991?style=flat-square" alt="Codex"/> |
| 22 | <img src="https://img.shields.io/badge/Cursor-✓-000000?style=flat-square" alt="Cursor"/> |
| 23 | <img src="https://img.shields.io/badge/Windsurf-✓-06B6D4?style=flat-square" alt="Windsurf"/> |
| 24 | <img src="https://img.shields.io/badge/Gemini_CLI-✓-4285F4?style=flat-square" alt="Gemini CLI"/> |
| 25 | <img src="https://img.shields.io/badge/VS_Code_+_Copilot-✓-007ACC?style=flat-square" alt="VS Code"/> |
| 26 | <img src="https://img.shields.io/badge/Cline-✓-FF6B6B?style=flat-square" alt="Cline"/> |
| 27 | <img src="https://img.shields.io/badge/Aider-✓-8B5CF6?style=flat-square" alt="Aider"/> |
| 28 | |
| 29 | <sub>**English** · [中文](README_CN.md) · [Español](README_ES.md)</sub> |
| 30 | |
| 31 | <br/><br/> |
| 32 | |
| 33 | <img src="docs/assets/demo.gif" alt="rb-ask demo — ask your codebase, get grounded answers with file paths and line numbers" width="800"/> |
| 34 | |
| 35 | </div> |
| 36 | |
| 37 | <br/> |
| 38 | |
| 39 | <div align="center"> |
| 40 | |
| 41 | <p><strong>🚀 实测推荐:</strong> <a href="https://teamorouter.com/?i=e188641773">TeamoRouter</a> —— 非广告,我自己在 Codex、Claude Code 等 AI 编程工具里高强度使用:一个 API Key 接入 Claude、GPT-5.5 等,模型价格方便调整,价格优惠,并没有掺水的情况。接入指南见 <a href="https://github.com/xixiaoyao/openrouter-api-key">openrouter-api-key</a>。</p> |
| 42 | |
| 43 | </div> |
| 44 | |
| 45 | <br/> |
| 46 | |
| 47 | <div align="center"> |
| 48 | |
| 49 | <a href="https://doloffer.com"> |
| 50 | <img src="docs/assets/doloffer-banner.png" alt="DolOffer - GPT and Claude membership recharge, official subscriptions with after-sales support" width="800"/> |
| 51 | </a> |
| 52 | |
| 53 | <sub><b>Sponsored placement:</b> <a href="https://doloffer.com">DolOffer</a> (<a href="https://github.com/Doloffer-g/guide">GitHub project</a>) offers discounted GPT and Claude membership recharge, official subscriptions, and after-sales support. Use code <code>AI8888</code> for 10% off.</sub><br/> |
| 54 | <sub><b>Disclaimer:</b> This is a paid sponsor placement. DolOffer services, pricing, availability, and support are provided by DolOffer; please review their terms before purchase.</sub> |
| 55 | |
| 56 | </div> |
| 57 | |
| 58 | <br/> |
| 59 | |
| 60 | <div align="center"> |
| 61 | <img src="docs/assets/before_after.svg" alt="Before vs After RepoBrain" width="800"/> |
| 62 | </div> |
| 63 | |
| 64 | <br/> |
| 65 | |
| 66 | ```bash |
| 67 | # 1 — Install (Claude Code plugin marketplace) |
| 68 | /plugin marketplace add study8677/repobrain |
| 69 | /plugin install repobrain@repobrain |
| 70 | |
| 71 | # 2 — Pick LLM provider, build the knowledge base |
| 72 | /repobrain:rb-setup |
| 73 | /repobrain:rb-refresh |
| 74 | |
| 75 | # 3 — Ask anything, grounded in real code with file paths + line numbers |
| 76 | /repobrain:rb-ask "How does auth work?" |
| 77 | ``` |
| 78 | |
| 79 | > **99% factual · 2.1× faster than Codex CLI · works in any AI IDE.** |
| 80 | > [Head-to-head benchmark ↓](#head-to-head-eval-repobrain-vs-codex-cli-vs-claude-code-2026-05-09) |
| 81 | > Codex CLI users — drop the `repobrain:` prefix; the same four slash commands ship there too. |
| 82 | |
| 83 | --- |
| 84 | |
| 85 | ## Why RepoBrain? |
| 86 | |
| 87 | **Cross-IDE repository knowledge engine for grounded codebase Q&A.** Same `.repobrain/` |