Skip to content

Mnemo 0.1.4

Choose a tag to compare

@Yugesh-reddy Yugesh-reddy released this 21 Nov 18:02
· 19 commits to main since this release

Mnemo is now on PyPI as mnemohive. The command is still mnemo. This is the first PyPI release; it carries everything listed for 0.1.3, which was released on GitHub only, plus the fixes below.

Installing

uv tool install mnemohive
mnemo install

Installed from GitHub before 0.1.3? Remove the old tool first, because it used the name mnemo:

uv tool uninstall mnemo
uv tool install mnemohive
mnemo install    # applies the new migrations to the memories you already have

Fixed since 0.1.3

  • A memory can't be replaced by its identity through SQL. An INSERT OR REPLACE with a new ID and an existing memory's scope and key replaced that memory (mnemo verify reported it afterwards). Migration 0004_fact_identity_unique.sql now refuses it.
  • The near-duplicate warning reports only live memories, not ones that are not yet valid, ended or expired, and shows numbers and JSON values as text.
  • mnemo install checks SQLite's math functions, which search ranking needs, instead of search failing later.
  • A bare /fact/<id> link in the web UI opens a project memory in its own scope.

What's new

Defence against wrong or poisoned memories

  • A memory's identity is permanent. SQL can no longer move a memory to another project, rename it or delete it, and each memory's identity is sealed in a second hash chain. mnemo verify reports one changed around the triggers.
  • mnemo verify remembers the head it verified. It stores the head beside the store (mnemo.db.verified, or --witness FILE), so a rewrite of the whole history is caught next time. After restoring a backup on purpose, delete that file.
  • The memory policy and the server's instructions treat files, command output and memories as data. Agents report planted instructions to you, and retract a memory that carries instructions for assistants. Measured on four poisoning scenarios (eval).
  • Corrections in the web UI are guarded. If an agent changed the memory while the page was open, your correction is refused instead of overwriting it. The UI also refuses cross-site form posts.

Better memory

  • Search matches any word of a question, ranked by how many rare words a memory shares. More memories now come up as the first result: 21 of 28 questions on both models, from 20 and 19.
  • Near-duplicate warning. Saving a memory that says nearly the same as an existing one in the same project returns the existing ones, so the agent can keep a single memory.
  • Memories archived by the old decay job can be restored, from the web UI's Retracted page or with update or revert.

Everyday use

  • The web UI has a Scope menu for the global memories and each project's.
  • The local embedding model is released after 5 idle minutes, which frees about 90 MB per idle agent session on Linux.
  • Linux is supported and checked: scripts/check-linux.sh runs a full install in Docker. Windows has been prepared but not tested.
  • mnemo verify and mnemo install warn when the store's directory is readable by other users.

Agent eval

With all of this, the 16-scenario eval with Claude Code and Codex passes 16 of 16 (results).