Git-versioned codebase index that coding agents read first
source availableFSL-1.1-MITself-hostablefreeMCP
AOCI-CODE is a local MCP server and CLI, written in Go, that has your coding agent write and maintain a persistent index of the whole codebase: one dense line per file saying what it is responsible for, what must be read with it, what callers depend on and what must not break. The index lives in the repository as plain text versioned by Git, so a new conversation, another agent or a new developer reads it once and knows the system. After the first build (about an hour per 200,000 lines), the server detects code changes and flags the entries the agent must update. It can also index MySQL, PostgreSQL and openGauss table structures (never data), works offline with no stored credentials, and has a local web panel. It integrates with Claude Code, Codex, Cursor and opencode. It is source-available under FSL-1.1-MIT, which becomes MIT two years after each release, and is still at release candidate stage.
Problems it solves
- my coding agent re-reads the whole repo on every task and forgets the architecture
- give Claude Code long-term memory of a large codebase across conversations
- hand a large existing codebase to an AI agent so it can take over development
- keep an agent-written map of every file in sync as the code changes
- let my coding agent understand our database schema without touching data
Features
- one-line-per-file index written by the agent: responsibility, relations, depended-on API and constraints
- index stored as plain text in the repository and versioned with Git
- change detection that flags stale entries for the agent to update
- database schema index for MySQL 5.7.6+, PostgreSQL and openGauss 6.0.5
- MCP server with 9 tools, plus a CLI and a local web panel
- setup for Claude Code, Codex, Cursor and opencode
- offline, read-only on your system, no stored credentials
- single CGO-free Go binary for Linux, macOS and Windows
Limitations
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Has an MCP server | plan not known |
Alternatives
The same job
These do what AOCI-CODE does.
- ai-memory Long-term memory for AI coding agents, shared across agents, projects and machines
- codebase-memory-mcp Local code intelligence for AI agents: a persistent knowledge graph of your code over MCP
- Beads A memory upgrade for your coding agent
- Engram Persistent memory for AI coding agents
