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 サイクル中に、インポートグラフとディレクトリ構造に基づいてファイルをグループ化し、各モジュールに専用エージェントを割り当てて包括的な Markdown ナレッジドキュメントを生成します。その後、Map Agent がこれらのドキュメントをルーティングマップにインデックスします。ユーザーが rb-ask で質問すると、Router が関連モジュールを特定し、対応するエージェントドキュメントをシンセサイザーに渡して、実際のソースコード(ファイルパスと行番号を含む)に基づいた回答を生成します。
Who it’s for
Claude Code、Cursor、Windsurf、Codex CLI、VS Code + Copilot、Cline、Aider などの AI 搭載 IDE や CLI ツールを使用し、より正確で根拠のあるコードベース Q&A を求める開発者向けです。
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.mdandstructure.md. - MCP Server Support: Can be registered as a Model Context Protocol (MCP) server, allowing agents like Claude Code to call
ask_projectas a live tool. - Git Integration: Includes a dedicated GitAgent to analyze git history for insights into why changes were made.