Local, Git-aware memory for coding agents that flags lessons when linked code changes.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent ā or use 1-click editor setup below.
We ran the install command below but it didn't respond within our test window ā this can mean a slow first-time install rather than a real problem.
uvx robo-cortexNo response to initialize.
This is an experimental automated check and can have false negatives ā missing environment variables, a slow cold install, etc. It doesnāt necessarily mean somethingās wrong. Last checked 6d ago.
š” Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Robo Cortex.
Git-aware knowledge integrity for AI coding agents.
Your AI agent debugs a bug, learns the lesson, and forgets it by next week ā or worse, keeps citing a "lesson" that the code has since made false. robo-cortex is a local knowledge base built for that specific failure mode: memories are anchored to git blob hashes, so when the code they're about changes, the memory is automatically flagged for review instead of being silently trusted or silently lost. In other words: drift detection and stale-memory detection for AI agent memory, done deterministically from git history ā not an LLM guess, not an embedding-similarity heuristic.
Most agent-memory tools are embeddings + a vector database + a cloud dependency. robo-cortex is deliberately none of that. Four things it does that a generic key-value memory store doesn't:
needs_review on the next retrieve/search/affected call ā and a committed revert automatically heals it back. The healing requires three conditions: (a) the revert must be committed (git blob hash must match HEAD again), (b) the memory must have been flagged by the system (not manually via change_status), and (c) you must run a lazy trigger (retrieve/search/affected) after the revert to scan for changes. Few memory tools tie themselves to your actual code's history this deterministically ā no embedding similarity, no LLM judgment call, just a git blob hash matching or not.provisional memory only becomes active once real evidence backs it, or a human explicitly promotes it..cortex/memory.db is just a file ā inspect it with sqlite3 any time.active ā superseded ā archived, etc.) requires a --reason, permanently recorded. Nothing disappears silently; wrong lessons are marked invalidated, not deleted.A 30-session benchmark (3 real historical bugs from this repo, re-introduced and solved 10Ć each by a small model ā Claude Haiku 4.5 ā with and without a robo-cortex memory pack) measured, at identical fix quality (30/30 correct, zero disqualifications): ~12% fewer fresh tokens and ~15% lower API-equivalent cost (medians of paired per-task deltas), scaling up to ā26% tokens / ā39% cost on the task whose fix was hardest to locate unaided. Recording a lesson was itself metered: a memory pays for itself after ~1ā6 sessions that reuse it (median ā 5). We make no wall-clock claim ā time differences were noise-dominated. Full methodology, per-run raw evidence (usage logs, diffs, prompts), and the reusable harness are in the repo: docs/benchmark-results.md, benchmark-results-20260718/, scripts/benchmark/. Known limits, stated plainly: one subject model (small ā an earlier n=3 pilot on a larger model measured a smaller 2.7% effect, see EVALUATION.md §9), one well-documented codebase (likely compresses the effect), 3 task types. We'd rather publish a modest number we measured than a dramatic one we didn't.
Prerequisite: robo-cortex requires a git repository (staleness detection needs git history to compare against):
If pip install refuses with error: externally-managed-environment (common on recent Debian/Ubuntu), use a virtual environment or pipx:
If you plan to use robo-cortex with an MCP-capable agent (Claude Desktop/Code, etc.), install the MCP extra instead:
--path links a memory to a file, but only accepts a path that already exists at HEAD (no memory is ever born pointing at a dead link). For code you just wrote but haven't committed yet: record the memory without --path now, commit, then attach the path afterward:
Reusable lessons (not specific to this project) use scope=global and require --assumptions ā the conditions under which the lesson applies, so it doesn't get suggested everywhere by accident:
Global-scope commands (record --scope global, show, search, status, link, evidence, list) work from anywhere, including outside any git repository ā the global store (~/.cortex/global.db) isn't tied to a project. retrieve is the one exception: it's local-repo-aware by design, so it still requires an initialized repo.
Installs a git pre-commit hook: if the commit touches code linked to a memory that's active/provisional/needs_review, the commit is blocked with the memory's id and a review prompt, until you've reviewed it or bypassed explicitly. Example, for a memory linked to src/scanner.py when that file is part of the commit:
The bypass is real and documented ā git commit --no-verify skips it, same as any git hook. This is "enforcement by default, bypass explicit," not "impossible to skip." See roco hooks --help for uninstall/status. For a CI-level check on pull requests instead of (or in addition to) local commits, see docs/ci-example.yml.
There's also an optional post-commit hook, purely informational (it never blocks ā the commit it reports on already happened by the time it runs):
It runs roco affected --diff-range HEAD~1..HEAD after each commit and reports anything at risk, so a flag shows up immediately instead of waiting for the next retrieve/search/affected call. --post-commit also works with uninstall/status, independently of the pre-commit hook.
rocoBoth robo-cortex and roco are identical commands (same binary, two script entry points). Use whichever fits your fingers:
Name collision note: PyPI already has an unrelated package named roco ("Runtime Config Generator"). If that package is also installed in the same environment, whichever was installed last wins the roco command ā use the full robo-cortex name to be unambiguous, or check roco --version to confirm which one you're actually running.
Completes subcommand names and each subcommand's own flags (not flag values, and not nested sub-subcommands like hooks install). It's a static script generated from the installed version ā re-run the command after upgrading to pick up new commands or flags.
Factual signals from GitHub, npm, and our automated checks ā not a rating.
No reviews yet ā be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/robotel-limited-robo-cortex)<a href="https://allmcps.com/mcp/robotel-limited-robo-cortex"><img src="https://allmcps.com/api/badge/robotel-limited-robo-cortex?style=directory" alt="Robo Cortex on AllMCPs" /></a>