Mnemolith

Good memory knows when to let go.

Code changes. Decisions change. The context your AI carries into the next session should change with them.

Remembering is only
half the problem.

An AI coding tool starts a new session without the decisions that shaped your project. Saving those decisions helps—until the code moves on and the saved context doesn’t.

Mnemolith connects a fact to the files behind it. When those files change, the fact can leave active memory without disappearing from history. You can see what was believed, what changed, and why.

The goal is context you can inspect, question, and keep current.

Why “Mnemolith”?

From the Greek mnēmē, memory, and lithos, stone. Say it “NEE-mo-lith.” For most of history, the things people most needed to remember were carved in stone: laws, treaties, the Rosetta Stone. It was the one place knowledge didn’t fade.

AI tools forget everything between chats. Mnemolith is the stone they write on: what your project knows, kept where every tool can read it.

And unlike real stone, it knows when something carved there is no longer true.

Not a Redis clone.

It started as a from-scratch rebuild of Redis in Java. Then it kept going: vector search, traceable memories, and an awareness of the code underneath them.

Every layer written from scratch.
The Redis protocol stays compatible: redis-cli and redis-py work unchanged.

  1. MCP server

    The connection to Claude Code, Cursor, and Codex.

  2. Git awareness

    Content hashes link memories to files. Changed files retire old facts.

  3. Memory layer

    Status, provenance, full history, duplicate merging, and conflict review.

  4. HNSW index

    Its own vector index. 99.4% recall@10 at 0.84 ms on 100K vectors.

  5. Java engine

    Redis-compatible. 50+ commands, replication, transactions, and crash-safe persistence.

From the tool connection down to the bytes on disk.

A working v0.4.4. Still early.

This is v0.4.4. The engine and memory workflow are here. There’s more to measure, and more to build.

Today

Local shared memory, file-linked retirement, provenance, file sync, MCP connections, a browser dashboard for reviewing memories (mnemolith ui), importing the notes you already keep in CLAUDE.md, AGENTS.md, and Cursor rules, JSON export, a clean uninstall, a private copy of Java downloaded for you when your computer doesn’t have one, Mender, which drafts the fix when a memory goes stale, team memory shared through your repo and reviewed like code, a Claude Code plugin, and an evaluation you can rerun yourself.

Next

Memory for any folder, not just code: documents, policies and deadlines, flagged when they change. See the roadmap.

Built in the open.

A project by Anish Chugh. Read the code, follow the work, or try it locally.

Explore on GitHub