# AOCI-CODE

> Git-versioned codebase index that coding agents read first

Source: https://talira.ai/catalog/aoci-code-cm2mxqe7
Every listing: https://talira.ai/catalog.md

- Kind: Source available
- Types: MCP server, Command-line tool
- Categories: [developer tools / ai coding / context](https://talira.ai/categories/developer-tools/ai-coding/context), [ai / agents / memory](https://talira.ai/categories/ai/agents/memory)
- Platforms: linux, macos, windows[^1]
- Licence: FSL-1.1-MIT (source-available)[^2]
- Pricing: Free
- Pricing notes: Free; source-available under FSL-1.1-MIT.
- Free tier: yes
- Self-hostable: yes
- MCP server: yes[^1]
- Supports: [MCP](https://talira.ai/standards/mcp.md)[^1], [AGENTS.md](https://talira.ai/standards/agents-md.md)[^1]
- Made by: [Liu JinShi](https://talira.ai/orgs/liu-jinshi.md)

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.

## Links

- Website: https://www.aoci.ai/
- GitHub: https://github.com/aoci-spec/aoci-code
- Docs: https://github.com/aoci-spec/aoci-code/tree/main/docs

## 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

- Building the first index takes about an hour per 200,000 lines of code.[^1]
- MariaDB isn't supported.[^1]

## Capabilities

- Has a command line tool: plan not known
- Has an MCP server: plan not known

## Trust

Overall: 0.38 out of 1.
Signals: backing 0.30, extensibility 0.40.

- made by Liu JinShi
- has an MCP server for agents

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [ai-memory](https://talira.ai/catalog/ai-memory-bn4w404w.md): Long-term memory for AI coding agents, shared across agents, projects and machines
- [codebase-memory-mcp](https://talira.ai/catalog/codebase-memory-mcp-bmyghda5.md): Local code intelligence for AI agents: a persistent knowledge graph of your code over MCP
- [Beads](https://talira.ai/catalog/beads-y6x63vky.md): A memory upgrade for your coding agent
- [Engram](https://talira.ai/catalog/engram-6p0bcdf2.md): Persistent memory for AI coding agents

## Sources

[^1]: https://github.com/aoci-spec/aoci-code (checked 22 Nov 2026)
[^2]: https://github.com/aoci-spec/aoci-code/blob/main/LICENSE (checked 22 Nov 2026)
