bettermemory · Anaphase Plain-text copy of https://anaphase.ai/bettermemory Version 9, now in pre-release # Never explain your codebase twice. Memory for Claude Code, checked against your code. ## Every memory is checked. Before your agent uses a memory, bettermemory holds it against your code and its own signed log, and reports what it finds. A search result for a memory whose file has since been deleted[1] ``` "snippet": "The session-auth token validator lives at `src/auth/session.py` and rejects expired tokens before the request reaches the...", "staleness_verdict": "spot_check_recommended", "path_drift": { "missing": ["src/auth/session.py"] } ``` The log check after a memory was written into the store without bettermemory[2] ``` $ bettermemory log verify bettermemory log verify: tampered fold diverged memories: 1 unaccounted, 0 missing unaccounted 01M768Z9PXKQ4T7W2C5N8HBD3F ``` ## It stays on your machine. - One file: The whole store, on your disk - One model: Your agent, and no second model - No account: Nothing to sign up for - No cloud: The server runs locally ## Install with one prompt. Paste it into your agent, which installs the newest 9.0 candidate and sets it up. The prompt ``` Install the bettermemory 9 pre-release: run `uv tool install 'bettermemory>=9.0.0rc1'`, then do the manual setup in https://github.com/0Mattias/bettermemory/blob/v9/docs/clients.md, hooks included, calling `bettermemory` where the plugin's hooks call `uvx bettermemory`. If the 8.x plugin is installed, ask me to remove it first. ``` Works with - Claude - Codex - Cursor - Gemini - Copilot - Cline On Claude Code, hooks bring memory to the prompt. The other agents reach it through the tools. The Claude Code plugin installs 8 until 9.0 is final. Open source, MIT licensed. [Announcement](https://anaphase.ai/blog/bettermemory-9.txt) · [Releases](https://github.com/0Mattias/bettermemory/releases) · [GitHub](https://github.com/0Mattias/bettermemory/tree/v9) ## Notes 1. From `bettermemory try` on 9.0.0rc18, 2026-11-11: a memory is stored that cites a file, the file is deleted, and the next search returns this hit. Three of its fields are shown, with the path set relative to the demo’s folder. 2. A second memory was inserted into the store file by another process, with no entry in the log; four lines of the report are shown. 9.0.0rc18, 2026-11-11. Signatures are HMAC-SHA256 under a key kept outside the store; the key is symmetric, so a process that can read it can sign ([threat model](https://github.com/0Mattias/bettermemory/blob/v9/SECURITY.md#threat-model)).