unified-mem
Claude Code remembers per project. unified-mem makes what it learns follow you across every repo: scored by how much each note actually contributed, invalidated when your code changes, observable on a live dashboard.

The literal bytes retrieve-prompt.mjs prints, not a mockup. The prompt states only the symptom; the note supplies the cause (cp1252) and the fix. The match is rare-word overlap, not semantics: the hook injects a note only if it contains at least two of the prompt's rare terms, and this one contains five. Reproduce it with the two commands above.
Click through the live dashboard: the real UI, no install, fictional data.
Contents: Problem · What we built · How it helps · How it works · Results · Dashboard · Install · Comparison · Docs
The problem
Claude Code ships with good built-in memory: per-project auto-memory that loads each session, the CLAUDE.md instructions hierarchy, and --resume for continuing conversations. unified-mem does not replace any of that. It fixes the three things the built-in layer cannot do:
- Cross-repo blindness. Auto-memory is keyed to one repository. The race condition you and Claude spent two hours fixing in
api-core is invisible tomorrow in web-app, so the same class of bug costs the same two hours again. Fixes, gotchas, conventions, and your personal preferences all stop at the repo boundary.
- No learning loop. Nothing measures whether a remembered fact actually helps. A note that saves a session and a note nobody ever benefits from are treated identically, forever. Memory that cannot rank itself eventually injects noise, and measured research shows irrelevant context actively degrades model performance.
- No staleness handling. Nothing notices when the code a memory describes gets rewritten. A remembered fix that no longer matches reality is worse than no memory at all: it gets applied with confidence.
What we built
One vault of small markdown notes (one claim each, tagged with the repo they came from, plus the files and commit the claim is about whenever the reflector could identify them: files on 37 of 55 notes in the author's vault, a commit on 24) that every Claude Code session, in every repo, writes to and reads from. Zero dependencies: plain Node builtins plus SQLite full-text search, and the vault is a git repo you own.