Repobrain

Developer tools

RepoBrain (formerly Antigravity), Give your repo a brain. ChatGPT for your codebase: works in Claude Code, Cursor, Codex, Windsurf & more.

Your AI app calls the Repobrain MCP server, which does the developer tools work and sends the result back to the chat.

About Repobrain

Repobrain is a community MCP server from study8677, filed in our directory under developer tools. RepoBrain (formerly Antigravity), Give your repo a brain. ChatGPT for your codebase: works in Claude Code, Cursor, Codex, Windsurf & more.

At a glance

Publisher
study8677 (community)
Runs
See the README for setup
Written in
Python
License
MIT
GitHub stars
1,362

How to set up Repobrain

  1. Follow the install steps in the Repobrain README; it is written in Python, so have that toolchain ready.
  2. Check the Repobrain README for keys or settings; the registry lists none that Repobrain requires.
  3. Add Repobrain to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Repobrain tools to confirm the connection.
  5. Run one read-only task with Repobrain first, and keep your app asking before each tool call until the results look right.

Repobrain compared with similar servers

  • Reverify by 2akouwu has fewer GitHub stars than Repobrain (1.4k against 1.4k); both are community servers, and both run locally.
  • Apple Docs by kimsungwhee has more GitHub stars than Repobrain (1.4k against 1.4k); both are community servers, and both run locally.
  • Reverse Engineer Marketing by dansugc has fewer GitHub stars than Repobrain (1.4k against 1.4k); both are community servers, and both run locally.

Before you connect Repobrain

  • Give Repobrain its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Repobrain tool call until you trust what it does with them.
  • Treat text that Repobrain fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Repobrain on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Repobrain

How marketing and sales teams put Repobrain to work, by company size. Pick the size closest to yours and start Repobrain on one use case.

Small business

  • A small business with a developer can use Repobrain to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Repobrain to explain and fix a marketing site issue without context switching between tools.
  • Repobrain runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use Repobrain to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Repobrain to keep scripts and automations documented and versioned as they change.
  • Start Repobrain on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out Repobrain with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Repobrain so web and marketing engineering share one reviewed way of working with AI.
  • Repobrain is a community server, so have security review the code and pin a version before Repobrain touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Repobrain README

From study8677/repobrain on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

RepoBrain

Cross-IDE repository knowledge engine for grounded codebase Q&A.

Formerly known as Antigravity Workspace Template, same project, new name.

English · 中文 · Español

🚀 实测推荐: TeamoRouter, , 非广告,我自己在 Codex、Claude Code 等 AI 编程工具里高强度使用:一个 API Key 接入 Claude、GPT-5.5 等,模型价格方便调整,价格优惠,并没有掺水的情况。接入指南见 openrouter-api-key。

RepoBrain helps you understand an unfamiliar repository, trace an implementation, and ask questions with source-file references. It keeps project knowledge in .repobrain/, shared across supported IDEs and agents.

Project Philosophy

Cross-IDE repository knowledge engine for grounded codebase Q&A. Same .repobrain/ knowledge layer reads in every IDE; one engine, every host.

An AI Agent's capability ceiling = the quality of context it can read.

rb-refresh deploys a multi-agent cluster that autonomously reads your code, each module gets its own Agent that generates a knowledge doc. rb-ask routes questions to the right Agent, grounded in real code with file paths and line numbers.

Instead of handing Claude Code / Codex a repo-wide grep and making it hunt on its own, give it a ChatGPT for your repository.

Traditional approach:              RepoBrain approach:
  CLAUDE.md = 5000 lines of docs     Claude Code calls ask_project("how does auth work?")
  Agent reads it all, forgets most   Router → ModuleAgent reads actual source, returns exact answer
  Hallucination rate stays high      Grounded in real code, file paths, and git history
Four concrete failure modes RepoBrain fixes, click to expand
Problem Without RepoBrain With RepoBrain
Agent forgets coding style Repeats the same corrections Reads .repobrain/conventions.md, gets it right the first time
Onboarding a new codebase Agent guesses at architecture rb-refresh → ModuleAgents self-learn each module
Switching between IDEs Different rules everywhere One .repobrain/ folder, every IDE reads it
Asking "how does X work?" Agent reads random files ask_project MCP → Router routes to the responsible ModuleAgent

Architecture is files + a live Q&A engine, not plugins. Portable across any IDE, any LLM, zero vendor lock-in.

Read the full project philosophy.

Quick Start

Ask an AI assistant that can run commands in your project to install RepoBrain:

Read AI_INSTALL.md and follow it to install RepoBrain in this project.

The guide installs the tools, configures a model backend, then builds the knowledge base and checks an answer. A logged-in headless CLI such as Trae can serve as the backend without an API key; an OpenAI-compatible API is also supported. Requirements: Python 3.10+, Git with at least one commit, and a clean worktree before refresh.

For platform-specific installation or manual configuration, see the installation guide and the quick-start guide. Installing RepoBrain into an existing project does not require rb init or rb-init.

Everyday Use

Run these commands in your project directory after installation and configuration:

rb-refresh
rb-ask "How does authentication work in this project?"

rb-refresh automatically builds the first knowledge base, updates affected groups after committed changes, or continues a matching interrupted task. If knowledge is already current, it skips without calling a model. After a failure, run the same command again to continue.

Use this only when you want to regenerate all knowledge:

rb-refresh --full

rb-ask reads the existing knowledge base and answers with source evidence. It reminds you when committed code is newer; it does not refresh during a question.

Examples of useful questions:

  • Where is this API implemented, and what calls it?
  • How does data move from the UI to the backend?
  • Which modules are affected by changing this function?

How It Works

Source code → rb-refresh → .repobrain/ knowledge → rb-ask → answer with code references

RepoBrain groups related code, generates module knowledge, and routes each question to relevant context. Knowledge lives in your project, so supported IDEs share the same base. Updates are staged separately and become active only when complete; a failed update preserves the existing usable generation.

The first build can take several minutes or longer on large repositories and uses your configured model. Commit or stash local changes before refreshing. IDE rules and new-project scaffolding are optional; see the usage reference.

Support Matrix

Use Environments How to connect
Native plugins Claude Code, Codex CLI Setup, refresh, and ask via slash commands.
Compatible IDEs Cursor, Windsurf, Gemini CLI, VS Code + Copilot, Cline, Aider, DeepSeek Harness Shared context files, CLI, or an MCP client.
Other agents and scripts Any host that can run commands or call MCP tools CLI/JSON output or optional rb-mcp.

Platform-specific commands, JSON output, and MCP registration are documented in the usage reference and INSTALL.md.

Evaluation

A locked comparison on Flask, ripgrep, Vite, and Prometheus used the same source access and model route for RepoBrain and CodeGraph + Trae. The full report includes accuracy, query time, tokens, and cold-build cost. Results apply to that experiment; AI knowledge generation and static graph indexing are different workloads.

Documentation

NLPM Audit Feedback, Improved by NLPM, a natural-language programming linter by xiaolai.

Contributing

Ideas are contributions too! Open an issue to report bugs, suggest features, or propose architecture.

Contributors


⭐ Lling0000

Major Contributor · Creative suggestions · Project administrator · Project ideation & feedback

h13181278389

Core Contributor · Thank you for your support, feedback, and contributions to RepoBrain

flyw1015

Core Contributor · Thank you for your support, feedback, and contributions to RepoBrain

Alexander Daza

Sandbox MVP · OpenSpec workflows · Technical analysis docs · PHILOSOPHY

Chen Yi

First CLI prototype · 753-line refactor · DummyClient extraction · Quick-start docs

Subham Sangwan

Dynamic tool & context loading (#4) · Multi-agent swarm protocol (#3)

shuofengzhang

Memory context window fix · MCP shutdown graceful handling (#28)

goodmorning10

Enhanced rb ask context loading, added CONTEXT.md, AGENTS.md, and memory/*.md as context sources (#29)

Abhigyan Patwari

Code knowledge graph integration for rb ask, symbol search, call graphs, and impact analysis

BBear0115

Skill packaging & KG retrieval enhancements · Multi-language README sync (#30)

SunkenCost

rb clean command · __main__ entry-point guard (#37)

Aravindh Balaji

Unified instruction surface around AGENTS.md (#41)

xiaolai

NLPM audit feedback · Skill frontmatter fixes · Dependency hygiene review (#51, #52, #53)

Star History

License

MIT License. See LICENSE for details.

📚 Full Documentation →

Built for the AI-native development era

Friendly Link: LINUX DO

Questions about Repobrain

What is the Repobrain MCP server?

RepoBrain (formerly Antigravity), Give your repo a brain. ChatGPT for your codebase: works in Claude Code, Cursor, Codex, Windsurf & more. Repobrain is maintained by study8677 on GitHub at study8677/repobrain, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Repobrain MCP server?

Repobrain doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (study8677/repobrain). Like most servers, Repobrain ends with a command or URL you paste into your AI app's MCP config.

Does Repobrain need an API key?

The registry lists no required keys for Repobrain. Check the Repobrain README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Repobrain an official MCP server?

No. Repobrain is a community server maintained by study8677. Community servers can be excellent; read the code and the open issues before you give Repobrain access to company data.

What license is Repobrain under?

Repobrain is released under the MIT license, according to its GitHub repository. The license covers the code of Repobrain; the service it connects to has its own terms.