Short answer: claude-mem is a free, open source plugin that gives Claude Code (and a long list of other coding agents) a memory between sessions. It records what the agent did, turns it into short summaries, and feeds the useful parts back in when you start again. The core runs on your machine. A hosted "observer" with a 30-day trial and an optional cloud sync are the parts that can cost money.
Every coding agent forgets. You close the session, open a new one, and spend the first ten minutes explaining the project again. claude-mem tries to fix that.
It hooks into the agent's session: when it starts, when you send a prompt, before and after each tool call, and when the session ends. Each step becomes an "observation". An AI model then compresses those observations into short summaries and stores them in a local SQLite database. Next time you open a session, the relevant summaries are added to the start, so the agent already knows what you were working on.
There is also a local web viewer where you can browse sessions, see what was saved, and change settings. Search works by keyword and by meaning, through four MCP tools. The agent first searches, then looks at a timeline, and only then pulls full details. The project says this saves around 10x tokens compared to loading everything at once. That number comes from the project itself, not from an outside test.
npx claude-mem install, or inside Claude Code add the plugin from the marketplace with /plugin marketplace add thedotmack/claude-mem and then /plugin install claude-mem.npx claude-mem install --ide opencode. The README lists Codex, Gemini, Copilot, OpenCode, Hermes, Cursor and more.Note: npm install -g claude-mem only gives you the library, without the hooks. Use one of the install routes above.
The code is Apache-2.0, around 108,000 stars on GitHub. Running it is free. The catch is the compression step, which needs an AI model somewhere:
<private> tags to keep it out of storage, and read the privacy policy before turning on cloud sync.npx claude-mem doctor.Source: thedotmack/claude-mem on GitHub
More AI tools and ready prompts at masterphub.io