study8677/antigravity-workspace-template

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

What it solves

RepoBrain 提供一個跨 IDE 的倉庫知識引擎,防止 AI 程式碼代理產生幻覺或遺忘專案特有的慣例。它取代了代理必須手動在成千上萬行程式碼或文件中 grep 的需求,這種做法常導致高幻覺率以及在詢問「X 是如何運作的?」時回應緩慢。

How it works

RepoBrain 使用多代理叢集自動分析程式碼庫。在一次 rb-refresh 週期中,它會依照 import 圖與目錄結構將檔案分群,為每個模組指派專屬代理,產生完整的 Markdown 知識文件。接著 Map Agent 會將這些文件索引成路由圖。使用者透過 rb-ask 提問時,Router 會找出相關模組,將對應的代理文件送給合成器,產生以實際原始碼(含檔案路徑與行號)為根據的答案。

Who it’s for

使用 AI 助力的 IDE 與 CLI 工具(如 Claude Code、Cursor、Windsurf、Codex CLI、VS Code + Copilot、Cline、Aider)的開發者,想要取得更精確且有根據的程式碼庫問答。

Highlights

  • Cross-IDE Compatibility: Uses a shared .repobrain/ knowledge layer that works across different AI tools and IDEs.
  • Language Agnostic: Analyzes code using LLMs rather than AST parsing or regex, making it compatible with any programming language.
  • Robotic Knowledge Generation: Automatically generates project-level documentation like conventions.md and structure.md.
  • MCP Server Support: Can be registered as a Model Context Protocol (MCP) server, allowing agents like Claude Code to call ask_project as a live tool.
  • Git Integration: Includes a dedicated GitAgent to analyze git history for insights into why changes were made.