RepoBrain MCP server
2026년 11월 12일 커밋Lets an AI client ask grounded questions about a repository and get answers with file paths and line numbers.
다른 이름 study8677/repobrain
- 스타
- 1,362
- Tools
- —
- 다운로드, 30일
- —
- 최신 버전
- —
- 마지막 커밋
- 2026년 11월 12일
- 라이선스
- MIT
RepoBrain MCP란?
RepoBrain은(는) MCP server입니다. Lets an AI client ask grounded questions about a repository and get answers with file paths and line numbers.
프로젝트 README에서 생성된 요약
RepoBrain MCP server 정보
Developers seeking to understand unfamiliar codebases can use RepoBrain to perform grounded questions about their repositories. It functions as a knowledge engine that provides answers containing specific file paths and line numbers, ensuring the AI assistant remains rooted in the actual source code. The system works by using a multi-agent cluster to autonomously read modules and generate a local knowledge base stored in a .repobrain/ directory.
Users can set up the tool using a Python 3.10+ environment and connect it to an OpenAI-compatible API or a headless CLI like Trae. The workflow involves running rb-refresh to build the knowledge layer and rb-ask to query it. Because the knowledge is stored locally within the project, it can be shared across different IDEs and agents like Cursor, Windsurf, or VS Code with Copilot, preventing vendor lock-in and ensuring consistent context regardless of the host environment.
활용 사례
- 1Trace implementation detailsAsk the AI to find where a specific API is implemented and identify all its callers.
- 2Analyze data flowRequest an explanation of how data moves from the user interface through to the backend systems.
- 3Assess change impactDetermine which specific modules will be affected if a certain function is modified.
- 4Onboard to new projectsUse automated agents to learn the architecture of a new codebase quickly.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
자동 검사
2026년 11월 13일에 실행됨전체 보고서 →아직 인증되지 않았습니다. 서버는 80점 이상의 점수, 심각한 결함 없음, 그리고 검사에 충분한 데이터를 갖추어야 합니다. 검사 방식
- 소스 저장소 연결 및 접근 가능study8677/repobrain is public and reachablegithub.com/study8677/repobrain ↗통과
- 패키지가 이 저장소를 소스로 지정검사되지 않음
- 빌드 출처(Sigstore 증명)검사되지 않음
- 오픈 소스 라이선스 (OSI)MITspdx.org/licenses/MIT.html ↗통과
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-11-12github.com/study8677/repobrain ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음검사되지 않음
- 패키지와 의존성에 심각한 보안 권고 없음검사되지 않음
- 모델에 대한 숨겨진 지침 없음0 tool descriptions and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 원격 endpoint가 MCP 핸드셰이크에 응답검사되지 않음
README
GitHub에서 보기RepoBrain
Cross-IDE repository knowledge engine for grounded codebase Q&A.
Formerly known as Antigravity Workspace Template — same project, new name.
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
| 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
- Installation and troubleshooting
- Commands, JSON, and optional integrations
- Knowledge generation and Q&A architecture
- External MCP tools · Sandbox configuration
- Release changes
- Full documentation: English · 中文 · Español
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
Star History
License
MIT License. See LICENSE for details.
Built for the AI-native development era
Friendly Link: LINUX DO
RepoBrain MCP 질문
What does RepoBrain do?
It builds a knowledge base of your repository and routes questions to module agents so answers are grounded in real source code with file paths and line numbers.
Which IDEs and AI clients does RepoBrain support?
It works with Claude Code, Codex CLI, Cursor, Windsurf, Gemini CLI, VS Code with Copilot, Cline, Aider, and other hosts that can run commands or call MCP tools.
Does RepoBrain need an API key?
Not necessarily — a logged-in headless CLI can serve as the model backend, or you can use an OpenAI-compatible API.
How do I refresh the knowledge base?
Run rb-refresh, which builds the first knowledge base, updates affected groups after committed changes, or resumes an interrupted task; use --full to regenerate everything.
Where is the knowledge stored?
Project knowledge is kept in a .repobrain/ folder inside your repository and shared across supported IDEs and agents.