Mnemolith

One memory.
Entirely local.

Your tools connect through MCP. Mnemolith checks the files behind each fact and keeps the record on your machine.

Set up your project
Your machineLocal connections only
Claude Code, Cursor, and Codex connect through MCP to Mnemolith, which manages embeddings, git hashing, and file sync. The Java engine stores memories, an HNSW index, and an append-only log on disk. Everything runs on your machine. Claude Code Cursor Codex MCP Mnemolith Embeddings Git content hashing AGENTS.md / CLAUDE.md sync Java engine Memories + history HNSW vector index Append-only log → disk All on your machine: Claude Code, Cursor, and Codex connect through MCP to Mnemolith with embeddings, git hashing, and file sync; then to the Java engine with memories, an HNSW index, and an append-only log on disk. Claude Code · Cursor · Codex MCP Mnemolith Embeddings · Git content hashing AGENTS.md / CLAUDE.md sync Memory checked against your files Java engine Memories + history HNSW vector index Append-only log → disk

Local connections only. Your code and memories never leave your machine.

Every fact has a reason to stay.
And a reason to leave.

It knows when a fact expires.

Each memory is linked to its files with a git content hash, or to one part of a file, like a function, with a hash of just that part. Change the file, or the part, and the old memory is retired, with the reason attached.

docker-compose.yml changed
The database runs Postgres.
m1 · outdated · linked file changed

Contradictions replace. They don’t pile up.

“We migrated to MySQL” replaces “we use Postgres.” Your next session gets the current decision, instead of two competing answers.

We use Postgres.
We migrated to MySQL.
Old memory retired · replacement recorded

The fix comes drafted.

With Mender on, a stale memory gets a suggested fix under its diff. Simple changes are drafted by rules on your machine; your AI tool drafts the rest. You approve it.

The database is Postgres (postgres:16 image).
The database is MySQL (mysql:8 image).
Suggested by Mender’s rules · waiting for you

You can follow the whole history.

See which tool and session saved a memory, the file versions behind it, and when it was created, went stale, was confirmed, or was replaced.

m1 · Claude Code · session 01
Created → went stale → replaced by m2
File versions and reasons stay in the record.

Different tools. The same context.

A fact saved in Claude Code is available in Cursor and Codex. All three connect to the same project memory.

Claude CodeCursorCodex
recall("database setup")
The database runs MySQL 8.

Part of the repo. Private to your machine.

Sync memories into a managed section of AGENTS.md or CLAUDE.md, then commit and review them in a PR. The engine accepts only local connections; your code and memories go nowhere.

# AGENTS.md
Managed project memory
Tests need DOCKER_HOST set.
Linked to docker-compose.yml · reviewed with your code

Measured, not promised.

The engine was measured against official Redis 8. The memory layer also surfaced a useful limit: similarity is not the same as agreement.

Reported measurements for Mnemolith
What was measured Result Context
Redis throughput 88% SET, 93% GETAbout 206K / 226K ops/sec Compared with official Redis 8.
p50: 0.119 ms vs 0.111 ms.
Vector search 99.4% recall@100.84 ms per search 100K real text embeddings.
22× faster than exact search.
Crash safety 0 acknowledged writes lost0.6 s recovery 1,039,890 writes.
8 kill -9 crashes.

The contradiction looked more like a match.

Real duplicates scored 0.73–0.92 similarity. Changing an API timeout from 30 to 60 seconds scored 0.94. That’s why Mnemolith only auto-merges near-identical text and lets the AI judge whether a new fact replaces an old one.

Reported measurements, not a guarantee for every workload. Inspect the project on GitHub.

Does memory help? We tested it.

Claude Code did 7 tasks in a sample codebase, 3 times each, in three setups. Every task needs something only a teammate would know: a past decision, who owns which code, a promise to a partner, a business rule. Two need a fact mentioned in an earlier session. An automatic check grades every run.

Evaluation results: tasks done right in each setup
Setup Tasks done right What happened
No memory 43%9 of 21, 3 of 6 across sessions Edited the payments team’s code, changed a frozen partner API and skipped refund approval, every time.
CLAUDE.md notes 86%18 of 21, 3 of 6 across sessions The same facts in a notes file. Missed a database address from an earlier session every time.
Mnemolith 100%21 of 21, 6 of 6 across sessions The same facts as memories. It saved what came up in conversation on its own and used it in the next session.

The cost: about the same per task as a notes file ($0.125 vs $0.121 at API prices), and the same as no memory at all. 63 runs of Mnemolith 0.3.5 on Claude Opus 5.5, November 2026. In an earlier round, where every fact could also be found in the code, all three setups tied: Claude reads code well.

With teammates: when one person’s AI needed what another person told theirs, team memory got 4 of 4 tasks right, a shared CLAUDE.md 3, and personal memory or none 2. See the team evaluation.

Run it yourself

Uses your own Claude Code plan. About 63 runs, so it may take two sittings. How it works and what each task checks.

git clone https://github.com/anishchugh05/mnemolith && cd mnemolith/eval && python3 run.py --repeat 3

See it in your own project.

Start with a fact worth remembering.

Install Mnemolith