Claude-Mem
Automatic memory across sessions, under the Apache 2.0 licence. Hooks placed on Claude Code's lifecycle (session start, prompt submit, after each tool, end of turn, session end) capture what the agent does, compress it with a model, store it in a SQLite database backed by Chroma vector search, then inject the useful context back when the next session starts. A web viewer shows the memory stream live, and a `<private>` tag keeps content out of storage. The project now presents itself as Grok Mem, but the package is still called claude-mem.
Strengths
- Automatic capture through hooks: nothing to write or update by hand
- Hybrid search, by keyword and by meaning, to inject back only what relates to the current task
- A `<private>` tag to keep sensitive content out of storage, and a web viewer to see what is kept
Limitations
- A memory that piles up without triage ends up injecting stale material with the authority of a rule
- Install trap: `npm install -g claude-mem` only installs the library, without the hooks or the service; go through `npx claude-mem install` instead
- Requires Node.js 20 or later and Bun, which runs the local service
Best for
- Long exploratory work where finding what was already tried matters more than a clean context
- Someone who often comes back to a project after several days without having kept notes