study8677/repobrain

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

What it solves

RepoBrain is a repository knowledge engine designed to help developers understand unfamiliar codebases, trace implementations, and perform grounded Q&A. It solves the problem of AI agents forgetting coding styles, guessing at architecture, or hallucinating when they rely on generic search tools like grep or massive, monolithic documentation files.

How it works

RepoBrain creates a persistent knowledge layer stored in a .repobrain/ folder within the project. It uses a multi-agent cluster via rb-refresh to autonomously read the source code and generate specialized knowledge documents for each module. When a user asks a question via rb-ask, a router directs the query to the appropriate ModuleAgent, which provides an answer grounded in actual source code, including specific file paths and line numbers.

Who it’s for

It is intended for developers using AI-powered IDEs (such as Cursor, Windsurf, VS Code + Copilot, or Claude Code) and AI agents (like Aider or Cline) who need a consistent, cross-IDE knowledge base for their codebase.

Highlights

  • Cross-IDE Compatibility: Knowledge is stored in a local folder, making it portable across different IDEs and LLM providers.
  • Grounded Answers: Provides answers with direct references to source files and line numbers to reduce hallucinations.
  • Multi-Agent Architecture: Uses a swarm of agents to decompose the repository into modules and self-learn the architecture.
  • MCP Support: Can be integrated as an MCP (Model Context Protocol) client/tool for other agents.
  • Incremental Updates: rb-refresh updates only affected groups after committed changes, preserving existing knowledge during failures.

Related

  • Project
  • Project
  • Project
  • Project
  • Project