
一个持久化的、基于Git版本的整个代码库和数据库模式的映射,编码代理在触碰任何东西之前会先阅读。
概览
代理只需阅读一次,了解系统,而不是每次任务都重新阅读仓库。 在Codex、Claude Code、Cursor、OpenCode等代理中,你的代理在开始每个任务时都已经了解整个系统:每个文件的用途、依赖的是什么以及哪些不能损坏。它停止为每个请求搜索和重新阅读代码库。非专业开发者可以继续迭代自己的系统;专业开发者可以把整个系统交给代理,专注于架构和设计。 将代理指向一个最多约50万行的现有代码库,要求它构建索引。它报告对每个区域的了解程度,然后从那里开始开发。实际的限制是索引的大小,而非行数:如今,70万行的商业系统就是这样开发的,索引约为30万个代币。 索引存储在代码旁边的仓库里,由 Git 进行版本管理。
概述(AI 翻译)
**一个持久化的、带有Git版本的整个代码库映射——由你的编码代理编写,由本地MCP服务器管理。**代理只需读取一次,便熟悉系统,而不是每次任务都重新读取仓库。
🇺🇸 英文 |🇨🇳 简体中文
它的作用
构建大型系统而不丢失故事情节。 在Codex、Claude Code、Cursor、OpenCode等类似代理中,你的代理在启动每个任务时都已经了解整个系统:每个文件的用途、依赖的是什么以及哪些不能损坏。它停止为每个请求搜索和重新阅读代码库。非专业开发者可以继续迭代自己的系统;专业开发者可以把整个系统交给代理,专注于架构和设计。
一步接管现有系统。 指向一个最多约50万行的现有代码库,要求它构建索引。它报告对每个领域的了解程度,然后从那里开始开发。实际限制是索引的大小,而非行数:如今,商业系统以70万行的代码开发,索引约为30万个代币。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
AOCI-CODE
A persistent, Git-versioned map of your entire codebase — written by your coding agent, governed by a local MCP server. Agents read it once and know the system, instead of re-reading the repo on every task.
🇺🇸 English | 🇨🇳 简体中文
https://github.com/user-attachments/assets/31636873-3e05-401f-849a-1f1ea87cd0a4
What it does
Build large systems without losing the plot. In Codex, Claude Code, Cursor, OpenCode, and similar agents, your agent starts every task already knowing the whole system: what each file is for, what it depends on, and what must not break. It stops searching and re-reading the codebase for every request. People who are not professional developers can keep iterating on their own systems; professional developers can hand the whole system to an agent and keep their attention on architecture and design.
Take over an existing system in one step. Point the agent at an existing codebase of up to about 500,000 lines and ask it to build the index. It reports how well it knows each area, then picks up development from there. The practical limit is the size of the index, not the line count: a 700,000-line commercial system is developed this way today, with an index of about 300K tokens.
Change people, agents, or conversations without starting over. The index lives in the repository next to the code and is versioned by Git. When a project changes hands, switches agents, or opens a new conversation, one read of the index picks up where things left off.
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →