AOCI-CODE — a Git-versioned cognition index for coding agents

Distills your whole codebase and database schema into one Git-versioned index your coding agent reads before it touches anything.

Stars
★ 3k
Last updated
today v0.1.1
FARS reviewed
Nov 08, 2026
License
NOASSERTION
Primary language
Go

At a glance

How it runs
CLIMCP server
Works with
Universal · cross-platformCodex · Claude CodeClaude.ai (Partial support)
Cost
Free software; you pay for model usage
Setup effort
Medium · a few setup steps
You'll need
GitGo toolchain (source builds only)make (source builds only)PostgreSQL/MySQL/openGauss credentials via environment variable (optional)Shell / CLILocal filesystemMCP Server
Typical use
Taking over an undocumented legacy system: point your agent at a codebase of up to roughly 500K lines, have it build the index and report per-area mastery, then continue development.
Not a fit if
  • Codebases far beyond roughly 500K lines that cannot absorb the first-index build time
  • Users who want a one-click hosted service instead of wiring up a binary and MCP config
Website
aoci.ai ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-11-23latest release v0.1.1 (2026-11-04)+148.1 ★/day over 7 days
Source review
82/100 · Good

What does this agent do, and when should you use it?

AOCI-CODE (AI-Oriented Cognition Infrastructure) is a local-first Go project consisting of the aoci CLI and a stdio MCP server that gives coding agents durable context about a repository. The host model writes one FRAS line per managed object — F for responsibility, R for strong relations, A for exposed contracts, S for non-obvious constraints — tagged by layer, domain, importance and size. Those lines live as plain text in aoci.txt (Root), aoci.meta.txt (rules), aoci.code.txt and optional aoci.database.txt, so Git versions, diffs and rolls them back with the code. The MCP server exposes exactly nine tools and governs writes with deterministic plans, source SHA-256 binding, cross-process locks, CAS and atomic writes, so a batch either lands completely or recovers provably. AOCI-CODE never reaches the Internet, never uploads source, and stores only environment-variable references to database credentials. It remains a release candidate (v0.1.0-rc19) under an FSL-1.1-MIT source-available license.

aoci init writes the Root/Meta skeleton, a managed AGENTS.md rules block, Git boundaries and host MCP configuration; aoci scan takes its inventory from Git and establishes the managed Baseline; the host model then authors FRAS entries per object through MCP. The running aoci mcp server offers nine tools: reads (aoci_rules, aoci_overview, aoci_get_entries, aoci_search), maintenance (aoci_maintain, aoci_update_entry, aoci_remove_entry) and supporting evidence (aoci_header, aoci_report). For large indexes, aoci_overview delivers the Whole-Index in chunks the agent must follow via next_cursor, ending in one attestation. aoci verify reports Missing/Orphan/Stale/Unbaselined facts, aoci check runs the aggregated governance gate, and aoci index agent guide walks the deterministic host workflow. On the database side, aoci database source add declares a source, aoci database source access performs a read-only credential preflight, and aoci database cognition bootstrap adds table-level entries, reading only PostgreSQL/MySQL/openGauss system catalogs. aoci cognition system lineage/relations/impact/snapshot/evolution derive observation views over authoritative assets, all marked derived=true. aoci ui --detach --json starts a loopback-only read-only panel showing the index verbatim, covered lines, compression ratio, chunk plan and drift.

  1. Taking over an undocumented legacy system: point your agent at a codebase of up to roughly 500K lines, have it build the index and report per-area mastery, then continue development.
  2. Working across sessions in Codex, Claude Code, Cursor or OpenCode: because the index ships with the repository, a new person, a different agent or a fresh conversation resumes by reading it once.
  3. Non-professional developers iterating on their own projects, so the agent starts each task already knowing the system instead of re-searching the repo.
  4. Teams that need code and database context together: build the code index first, then enable Database Cognition with aoci database cognition bootstrap for table-level entries.
  5. Assessing database change blast radius with aoci cognition system impact --object database://primary/public/orders to walk the model-authored R relationships.
  6. Auditing and rolling back: the index is plain text under Git, so it can be reviewed, diffed and reverted, with a local panel showing coverage and governance state.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Config files
.mcp.json .claude/settings.json .codex/config.toml opencode.json
Install notes cover
Windows

How do you install or deploy this agent?

The recommended route is a signed release package. Download the v0.1.0-rc19 assets with GitHub CLI and follow the verification level documented on the release page:

gh auth login
gh release download v0.1.0-rc19 --repo aoci-spec/aoci-code

Or build from the canonical repository (this needs the Go toolchain and make):

git clone https://github.com/aoci-spec/aoci-code.git
cd aoci-code
mkdir -p build
make build
./build/aoci --version

The equivalent on Windows PowerShell:

git clone https://github.com/aoci-spec/aoci-code.git
Set-Location .\aoci-code
New-Item -ItemType Directory -Force .\build | Out-Null
make build
.\build\aoci.exe --version

Either way, keep the resulting binary at a stable absolute path, because the MCP configuration points at that path. Note that the license is FSL-1.1-MIT and the repository describes the project as source-available (Fair Source).

How do you use this agent?

Initialize in the target repository root and establish the Baseline:

AOCI=/absolute/path/to/aoci-code/build/aoci
"$AOCI" --repo . init --locale en-US --agent codex
"$AOCI" --repo . scan

init also writes host MCP configuration (.mcp.json, .claude/settings.json, .codex/config.toml or opencode.json) containing machine-bound absolute paths and should be gitignored. Do not add aoci.txt, aoci.meta.txt, aoci.code.txt or AGENTS.md to .gitignore — an ignored asset is silently skipped.

Then restart or refresh the host session so the newly written MCP server takes effect, and ask the agent to build the index:

First 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.

Once the index is complete, verify alignment and open the panel:

"$AOCI" --repo . verify
"$AOCI" --repo . check
"$AOCI" --repo . ui --detach --json

If the project has a database, declare a source (the credential is referenced only by environment variable name; primary maps to AOCI_DB_PRIMARY_DSN) and run the read-only preflight:

aoci --repo . database source add \
  --source-id primary \
  --engine postgresql \
  --database-name app \
  --namespace public

aoci --repo . database source access --source primary --json

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

External MCP tool bridge

Inherits capabilities of connected MCP servers; audit third-party servers before enabling.

FARS trust-control audit

Verified present in source (3/3)
  • data-flow disclosure
  • sensitive-data handling
  • rollback or recovery path

What are this agent's strengths and limitations?

Pros
  • Plain-text index files live inside the repository and are versioned by Git, so they can be diffed, reviewed, rolled back and reused by any agent or later session without binding to a model or conversation.
  • Local-first by design: no Internet access, no uploads, and database credentials stored only as environment-variable reference names.
  • Governed writes: deterministic plans with source SHA-256 values, cross-process locks, CAS and atomic writes that either land as one consistent batch or recover provably.
  • A loopback-only read-only panel (default 30 s refresh) shows the index verbatim, covered files and lines, compression ratio, chunk plan and drift for human auditing.
  • Documented host integration for several agents: Codex, Claude Code, OpenCode V1 and Qoder write project config, while Cursor returns a reference snippet.
Limitations
  • The first index is slow — the README estimates about an hour per 200,000 lines — and there is no shortcut to skip it.
  • Index quality depends on the host model: all-green machine results prove structural and governance contracts only, not that every model-written statement is correct.
  • The license is reported as NOASSERTION and the README describes it as FSL-1.1-MIT (Fair Source/source-available), so commercial terms need separate review before adoption.
  • The software is free, but you must already have an MCP host and pay for your own model usage; no vendor-hosted service is offered.
  • Database Cognition covers PostgreSQL, MySQL and a deliberately limited openGauss 6.0.5 LTS profile; other engines and partition/column-store objects are out of scope.
  • It is still a release candidate (v0.1.0-rc19), so CLI behavior and interfaces may change before a stable release.

How does this agent compare with similar options?

The README explicitly contrasts AOCI-CODE with CodeGraph: CodeGraph parses code into a graph of symbols and calls and returns exact source and call paths when the agent asks a question, making it a precise lookup tool for the task at hand. AOCI-CODE instead has the model write one FRAS line per file so the agent reads the whole index first and knows the system before the task starts. The README recommends using both — the index to know the system, CodeGraph to fetch exact code while working — and states that a full comparison covering RAG, LSP and repo maps also exists.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
AOCI-CODE — a Git-versioned cognition index for coding agents This agent 82 · Good CLIFree + model costs ★ 3k today Go Codex · Claude Code
Caprock 83 · Good Desktop appFreemium ★ 50 today Go Codex · Claude Code · OpenAI API · Claude API
Headroom: The Context Compression Layer for AI Agents 71 · Some gaps CLIFree + model costs ★ 81k today Python Codex · Claude Code · OpenAI API · Claude API
lcc — Local Context Compiler 77 · Good CLIFree ★ 20 1d ago Python Claude Code

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Good
82/ 100 5-point scale 4.1 / 5
Trust 23/29
Reliability 11/14
Adaptability 15/18
Convention 15/18
Effectiveness 10/13
Verifiability 8/8
Why each dimension lost points
Trust23 / 29 · 4.0/5

The evidence describes a local-first MCP/CLI that connects to a database only during explicit evidence commands and refers to credentials by environment-variable name. Security guidance covers stdout isolation, capability-bearing status links, file permissions, and recovery boundaries. Formal writes use validation, locks, CAS, atomic writes, and recovery; uninstall requires review. Least privilege and external effects score 2 because initialization needs repository write access and host configuration changes, and database snapshots create an external connection; auto mode also has approval exceptions tied to state. Attribution scores 2: copyright and release verification procedures are present, but the publisher identity cannot be verified from this packet.

Reliability11 / 14 · 3.9/5

The README, installation guide, and contract-authority document broadly reinforce one another, and the Go entry explicitly protects MCP stdout. The documentation is extensive, and the excerpts cannot establish that every implementation detail matches every release claim, so self-consistency scores 2. Dependencies have a module manifest, integrity checks, and supply-chain verification instructions, but the packet gives no vulnerability-scan result for this revision, so availability/security evidence scores 2. Specific machine errors and stop conditions are documented for missing Git, invalid evidence, drift, and capacity stops, earning 3 for failure messages.

Adaptability15 / 18 · 4.2/5

The materials cover Codex, Claude Code, Cursor, OpenCode, database use, existing and new repositories, and varied project sizes; they also define what the product is not, earning 3 for scenarios and boundaries. Trigger guidance is detailed, but automatic maintenance, restart, and approval behavior still depends on host loading and repository configuration, so trigger precision scores 2. A single Go binary, cross-platform builds, and host examples support deployment, while MCP support, stable absolute paths, Git-based scanning, and a recent Go toolchain constrain fit, earning 2.

Convention15 / 18 · 4.2/5

Information architecture, contract authority, install/uninstall guidance, database authoring instructions, and examples are thorough, earning 3 where applicable. The binary name and nine-tool surface are explicitly stable, but the release is an RC and documentation contains version-specific instructions, so naming stability and versioning/changelog score 2. A security reporting channel and response expectations are stated, but maintainer identity and long-term commitment are limited in the packet, so maintenance responsibility scores 2. The license text is complete, but NOASSERTION metadata and the README's FSL label should be reconciled by consumers, so license scores 2.

Effectiveness10 / 13 · 3.8/5

The entry format, MCP tools, CLI checks, Git review, and alignment workflow provide reusable repository context in a form agents and teams can consume, earning 3 for output usability. The claimed value is reduced repeated discovery and preserved semantic constraints; it depends on model authorship and ongoing alignment, and the documentation acknowledges substantial initial indexing time, so marginal value and cost-benefit score 2.

Verifiability8 / 8 · 5.0/5

The documentation separates runtime facts, public specifications, machine contracts, live Guide output, and static explanation, and supplies traceable release checks, SBOMs, CI gates, and error conditions, earning 3. The README, security policy, installation guide, configuration, entry-point code, and CI corroborate data-flow, permission, and protocol-boundary claims, earning 3. The material distinguishes claims, runtime outputs, and verification steps, including the limit that checksums do not authenticate a publisher. The score reflects that evidence discipline, not an independent execution or verification.

Risks and how to mitigate them
  • This assessment uses only the supplied static material; no program was run and no release artifact was verified. Confidence is low.
  • Publisher identity is unknown. License metadata is NOASSERTION while the repository license file states FSL-1.1-MIT; check its restrictions against the intended use.
  • Initialization and maintenance modify repository files and host MCP configuration. Initial indexing can take substantial time, and keeping the index aligned requires model participation. Database snapshots connect to the database declared by the user.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision b4bbc0565503 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/aoci-code.svg)](https://followagents.com/en/agents/aoci-code)
<a href="https://followagents.com/en/agents/aoci-code"><img src="https://followagents.com/badge/aoci-code.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v0.2.0-rc3 AOCI-CODE v0.2.0-rc3 Pre-release
    Release notes excerpt
    AOCI-CODE v0.2.0-rc3 is built from 0a00a2b952ca6f6c40556b0fc37d4230baac98ae. The third 0.2.0 candidate makes the first build faster and folds in a week of contributor fixes. A first build now issues three sibling batches by default and falls back to one batch by itself when only one session takes them, so a single Host loses nothing; on a 798-file real repository three sessions finish in half the rounds. Ten contributor pull requests landed, among them Database Evidence fixes, a Git-untracked source diagnostic, and a repair …
    View on GitHub ↗
  2. v0.1.1 AOCI-CODE v0.1.1
    Release notes excerpt
    AOCI-CODE v0.1.1 is built from a9b803fa47ac2a9c3a2da48209c9030db513612d. A security update of the PostgreSQL driver. Nothing else changes: the Go toolchain, the other dependencies, the MCP tool surface, input schemas, formal-asset formats, and scope identities are those of v0.1.0, and a repository aligned under v0.1.0 stays aligned. Upgrade if a PostgreSQL source's connection string uses require_auth or channel_binding=require without sslmode=verify-full; MySQL and openGauss sources do not use this driver. - Update the PostgreSQL driver github.com/jackc/pgx/v5 to 5.12.0, which …
    View on GitHub ↗
  3. v0.1.0 AOCI-CODE v0.1.0
    Release notes excerpt
    AOCI-CODE v0.1.0 is built from d28f487be3990f9ce67ffeefa38df70e1fc5a22b. The first release. It promotes v0.1.0-rc23 unchanged: the product code, dependencies, Go toolchain, MCP tool surface, input schemas, formal-asset formats, and scope identities are those of 592e90c, released as rc23 on 2026-10-29 and soaked since then. The soak found one defect, listed below as a known issue. It is not fixed here, so the release stays the build that was soaked. The 23 candidate sections below record how it got here. - The release is no longer a candidate. The GitHub Release is published as the …
    View on GitHub ↗

FAQ

Does it send my code or database anywhere?
No. The process never reaches the Internet and uploads nothing. It reads source code and database table structures, not business rows, and the only connections it opens are to the database you declare (catalog metadata only) and to its own loopback status page. Credentials are referenced by environment-variable name and never stored.
How long does the first index take, and can it be interrupted?
The documented estimate is roughly one hour per 200,000 lines of code, depending on the model and the agent's speed. It runs in batches and resumes where it stopped if interrupted, so you do not restart from scratch.
Which MCP hosts are supported, and why does Cursor need manual work?
Codex, Claude Code, OpenCode V1 and Qoder get project-level configuration written by init; Cursor only receives a reference snippet, so you paste the configuration yourself. Other standard stdio MCP hosts need manual configuration and host-specific validation.
Who guarantees the correctness of what the model writes into the index?
The host model owns meaning; AOCI-CODE owns governance. It validates structure, the tag dictionary, relationship identities, scope, ownership and budgets, and commits with locks, CAS and atomic writes. All-green machine results mean the encoded structural and governance contracts hold, not that every statement is correct.
Should the index files and host config be committed to Git?
The index files (aoci.txt, aoci.meta.txt, aoci.code.txt and aoci.database.txt) must stay in Git — an ignored asset is silently skipped and the index cannot be built. Host config written by init such as .mcp.json, .codex/config.toml and opencode.json contains machine-bound absolute paths and should be gitignored instead.
Is AOCI-CODE — a Git-versioned cognition index for coding agents free?
The software is free, but AOCI-CODE — a Git-versioned cognition index for coding agents calls an AI model, and you pay that model provider for usage (or run a local model).
Is AOCI-CODE — a Git-versioned cognition index for coding agents open source?
The source code is public on GitHub (aoci-spec/aoci-code), but the repository does not declare a recognised licence, so the rights to reuse or modify it are unclear. Ask the author or check the README before building on it.
Is AOCI-CODE — a Git-versioned cognition index for coding agents safe to use?
FollowAgents' FARS review (Nov 08, 2026) scored AOCI-CODE — a Git-versioned cognition index for coding agents 23/29 on trust and safety. None of the eight safety controls the review checks for was missing outright. The repository has changed since that review.
Is AOCI-CODE — a Git-versioned cognition index for coding agents still maintained?
Yes. The latest commit on GitHub is from 2026-11-23, within the last 30 days. The latest release is v0.1.1 (2026-11-04).
Who makes AOCI-CODE — a Git-versioned cognition index for coding agents?
AOCI-CODE — a Git-versioned cognition index for coding agents is published on GitHub by the account aoci-spec. FollowAgents has not verified which person or company is behind that account.
What is AOCI-CODE — a Git-versioned cognition index for coding agents's official website?
The project's GitHub repository lists https://www.aoci.ai as its website. That link is set by the repository owner; the source code itself is on GitHub (aoci-spec/aoci-code).
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts