Who it is forA developer who runs many agent tasks on one project and does not want to stop and maintain the index by hand.
The problemCode changes make the index stale, and manual upkeep is easy to skip, so later agents read outdated descriptions.
The outcomeAfter each verified change, the affected entries are updated and the index returns to an aligned state.
What you need first
- A verified AOCI-CODE release package for your operating system and CPU, or a checkout of the canonical source repository (source builds also need the Go toolchain declared by go.mod and make)
- A supported MCP host such as Codex, Claude Code, Cursor, or OpenCode
- Normal read and write access to the target repository
- For database indexing: a PostgreSQL or MySQL 5.7.6+ database (or openGauss 6.0.5 with constraints) and a connection-string environment variable set in the host environment
Steps
- Complete the first index build so every managed object has an entry.
- Ask the agent to make a change as usual, with no separate index instruction.
- Let the MCP server detect the changed files and let the agent update the affected entries after tests pass.
- Review the Git diff of aoci.code.txt with the code diff before committing.
Prompt for your agent
In the repo <project-path>, make the requested change, run the tests, then update the AOCI entries for every changed managed file so the index is aligned. Report the list of updated entries and confirm the index is aligned.
Caveat. The README describes maintenance as automatic, but the agent still writes the entries, so the diff should be reviewed for accuracy.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for aoci-spec/aoci-code and "Keep the codebase index current as the agent changes code"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer