aoci-spec/aoci-code
Local Go MCP server and CLI for Git-versioned code and schema context
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
AOCI-CODE splits semantic authorship from index governance. The Go aoci CLI initializes the repository and inventories managed files through Git. The coding agent reads the relevant evidence and authors semantic entries through a local stdio MCP server. The runtime does not infer business meaning from paths or an AST; it governs how entries are written and updated.
The state is plain text under Git: aoci.txt declares and activates the index, alongside assets such as aoci.meta.txt and aoci.code.txt. The manifest pairs Cobra with the official Go MCP SDK. The integration boundary is the host’s MCP support and ability to follow the tool contract, not the model provider’s API. That keeps the index portable across compatible hosts without moving model inference into the server.
Key Capabilities & Differentiators
A file entry records FRAS: responsibility, strongly related objects, exposed contracts, and constraints that may not be obvious from structure alone. Entries can capture transaction boundaries or compatibility requirements alongside public interfaces. The initial scan establishes the managed Baseline. After managed objects change, the server identifies entries that need updates and the agent supplies the new text. Git provides a way to review and roll back those changes.
Database cognition adds a separate table-level index from catalog metadata, without reading business rows. PostgreSQL and MySQL 5.7.6 or later are supported; openGauss 6.0.5 and SQLite have constraints, and MariaDB is not supported. The manifest includes pgx/v5, go-sql-driver/mysql, ncruces/go-sqlite3, and a local replacement for the openGauss connector. The combined code and schema index is useful when changes cross application and database boundaries.
Trade-offs & Limitations
Unlike CodeGraph, which resolves specific symbols and call paths, AOCI-CODE front-loads system context: it gives the agent a compact account of what the system does and what must not change before it starts searching. The two are complementary. AOCI-CODE does not replace exact source lookup, and an accepted entry is not proof of semantic correctness. Because entries are model-authored, review consequential contract or constraint changes against source and tests.
The first build reads every managed file in resumable batches. The planning example is about an hour per 200,000 lines, dependent on model and host speed rather than a throughput guarantee. The resulting index size matters more than line count: one 700,000-line example produced roughly 300,000 index tokens, which may not fit the host’s usable context budget. Evaluate build cost and index size together. The v0.2.0-rc8 release uses the source-available FSL-1.1-MIT license; review the terms rather than treating it as MIT-only.
Hardware & Deployment Guide
Install a verified signed package or build from canonical source with the Go toolchain declared in go.mod and make build. Put the binary at a stable absolute path and run init and scan against a writable Git checkout. Keep generated index assets out of Git ignore rules so the scan can see them. Load or restart the MCP host before asking it to build the index; Cursor may require manual configuration. For a server database, supply the connection string through the declared environment variable rather than storing credentials in the index.
The binary needs no model runtime of its own. Its documented network connections are limited to the declared database and the loopback status panel; the coding host still follows its own model and data-handling setup. In the 0.2.0 candidate series, a Claude Code build on rc7 completed a MySQL-backed first index after accepting database Evidence before any Code Entry, a sequence that deadlocked on rc6. The rc8 milestone is still a release candidate, so verify and pin the build you pilot.
aoci.txt activates the index; aoci.meta.txt and aoci.code.txt are separate Git-reviewable assets.scan --force.aoci ui --detach --json starts the local status panel in the background.Teams maintaining a long-lived Git repository across coding-agent sessions, especially when changes span code and database schemas and architectural context needs to be reviewable in Git.
You mainly need exact symbol lookup, cannot allocate host time and context for an agent-authored index, or require an unrestricted permissive license.
Quick Start & Installation
gh auth login
gh release download v0.2.0-rc8 --repo aoci-spec/aoci-codeComparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| aoci-code ★ | 3.2k | +108 | Go | — | Local Go MCP server and CLI for Git-versioned code and schema context |
| codebase-memory-mcp | 49.6k | +335 | C | MIT | A local code graph for tracing code, docs, and infrastructure via MCP. |
| graphify | 156.8k | +2.4k | Python | Apache-2.0 | Local AST graphs for dependency tracing, with CLI and MCP access. |
| taste-skill | 125.3k | +2.9k | JavaScript | MIT | An agent skill for directing company website design and checking builds in a bro |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/aoci-spec/aoci-code.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about aoci-code
Who builds the index, and how does the MCP host connect?
Does it need a GPU, and what should I size for?
What should a commercial team check before self-hosting?
Can it replace CodeGraph?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy