← All projects
Project record1 mention
Originally shared on Hacker News

Mnemolith

Mnemolith is a local AI coding memory tool that connects to AI agents like Cursor, Claude Code and Codex. Memories linked to project files are flagged as soon as those files change; each memory stores a hash of the files it depends on so changes are detected even before a commit, and AI models are told which memories changed or were replaced so they do not build on stale facts.

Last shared For Developers using AI coding agents like Cursor, Claude Code and Codex
01 / The problem

What it addresses

AI coding agents keep stale memories of project facts (e.g., continuing to assume PostgreSQL after the project switched to MySQL) and confidently build code on outdated information.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Mnemolith

    Mnemolith is a local AI coding memory tool that connects to AI agents like Cursor, Claude Code and Codex. Memories linked to project files are flagged as soon as those files change; each memory stores a hash of the files it depends on so changes are detected even before a commit, and AI models are told which memories changed or were replaced so they do not build on stale facts.

    Problem: AI coding agents keep stale memories of project facts (e.g., continuing to assume PostgreSQL after the project switched to MySQL) and confidently build code on outdated information.

    Audience: Developers using AI coding agents like Cursor, Claude Code and Codex

    Posted by @Anish2910 · Original source ↗

    Story title · @Anish2910 · · Source ↗

    Show HN: Mnemolith – AI coding memory that goes stale when your code changes

    Submitted URL · @Anish2910 · · Source ↗

    https://github.com/anishchugh05/mnemolith

    Source text · @Anish2910 · · Source ↗

    I started building Mnemolith and now I can proudly say that it works on your own local computer (hopefully no bugs but if you find any bugs or anything that I should improve on, please let me know) and is connected to your AI agents like Cursor, Claude Code and Codex.

    Source text · @Anish2910 · · Source ↗

    Now memories that are linked to your project files get flagged as soon as those files change, and the user will also find out what happened and they can decide if they want to rewrite what was saved or if it was something that can be ignored.

    Source text · @Anish2910 · · Source ↗

    Setup tells the AI models to call Mnemolith, and we let them know which memories changed or were replaced and why, so that they don’t build on old facts and we save time.

    Source text · @Anish2910 · · Source ↗

    In our system, each memory stores a hash of the files it depends on so even before a commit we are able to find what changes

    Source text · @Anish2910 · · Source ↗

    there it was - functions were written in a way that I was still using PostgreSQL and they were not at all written in a way for MySQL so it was not possible for them to work and Claude was writing them with so much confidence as in its memory it remembered it as a PostgreSQL.

    Source text · @Anish2910 · · Source ↗

    I decided to test it on Cursor and see if it is a thing where the AI model’s memory does not get updated the way it should.