aoci-code
您整個程式碼庫與資料庫結構的持久化、Git 版本化地圖,供編碼代理在動工前讀取。以 Go 撰寫的本地優先 MCP 伺服器與 CLI。
aoci-code 是什麼?
一個持久化、Git 版本化的地圖,涵蓋您整個程式碼庫與資料庫結構,供編碼代理在動工前讀取。以 Go 撰寫的本地優先 MCP 伺服器與 CLI:一套受控管的程式碼知識儲存庫索引,為 Claude Code、Codex、Cursor 與 opencode 提供長期脈絡、記憶與程式碼智慧。
aoci-code 概覽
這是什麼
一個持久化、由 Git 版本控制的程式碼與資料庫結構地圖,供程式碼代理在接觸任何東西之前讀取。這是一個以 Go 撰寫的本地優先 MCP 伺服器與 CLI。代理只需讀取索引一次就能了解整個系統,無需在每次任務中重新讀取儲存庫。索引與程式碼一同存放在儲存庫中,並由 Git 進行版本控制。
主要功能
- 代理在開始每個任務時就已了解整個系統:每個檔案的用途、依賴關係以及不可破壞的部分。
- 支援一步接管最多約 50 萬行程式碼的現有系統。
- 索引由 Git 版本控制,因此更換人員、代理或對話時無需從頭開始。
- 首次索引建立後,維護自動進行:MCP 伺服器會偵測變更並寫入更新的條目。
- 支援索引資料庫(MySQL 5.7.6 以上、PostgreSQL、含約束的 openGauss 6.0.5)。
- 僅限本地:對你的系統唯讀,無需網際網路,不儲存憑證。它從不連線網際網路,也不上傳任何資料。
- 索引格式使用 F(檔案用途)、R(關係)、A(架構)、S(敏感約束)等欄位,以一行描述每個檔案或資料表。
使用情境
- 建置大型系統而不遺失上下文。
- 非專業開發者持續迭代自己的系統。
- 專業開發者將整個系統交給代理,專注於架構與設計。
- 一步接管現有系統。
- 更換人員、代理或對話而不需從頭開始。
快速開始
將以下指令交給你的代理,以下載 AOCI-CODE 並完成設定。重新啟動代理後,再傳送第二個指令以建立索引。textAOCI-CODE project: https://github.com/aoci-spec/aoci-codeDownload the latest release package for this operating system and CPU architecture fromhttps://github.com/aoci-spec/aoci-code/releases, and follow the installation instructionson the Release page to verify it. If no compatible release package exists, or if Iexplicitly request the latest source, build it from the official repository.After extracting the package, place aoci (aoci.exe on Windows) at a stable absolute path.Then use that absolute path to do the following for my project:1. Run init to initialize AOCI and integrate MCP for the current host; if this host does not write project configuration (Cursor, for example), give me the configuration I need to paste myself2. Run scan scan takes its file inventory from Git, so do not add the cognition assets init writes (aoci.txt, aoci.meta.txt, aoci.code.txt, AGENTS.md) to .gitignore or .git/info/exclude — an ignored asset is silently skipped and the index cannot be built. Leave the host-config ignore init writes for itself as it is.3. Tell me to restart the agent so the newly written MCP server takes effectStop after those three steps and do not build the index yet — I will tell you to continueafter the restart.重新啟動代理後,傳送以下指令:textFirst confirm the AOCI MCP server is connected, then build the AOCI index for this project. When it is complete, give me the AOCI panel link.
授權與價格
授權未明確宣告(NOASSERTION)。開源軟體。
內容整理自該專案公開的 README 與儲存庫資訊。