Over 100,000 stars for a problem anyone using coding agents knows: every session starts with no memory of the last one. claude-mem captures what the agent does, compresses it with AI and hands it back in later sessions. On October 14, 2026 its GitHub page showed about 100.5k stars and 8.8k forks, and the weekly trending list credited it with roughly 3,587 new stars.
What it is
claude-mem stores observations of tool usage, generates summaries and makes them searchable. According to the README, it works with Claude Code, Codex, Gemini, Copilot, OpenCode and others.
Under the hood it relies on six lifecycle hooks (SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, Stop and SessionEnd), each run as claude-mem hook claude-code <event>. The hooks talk to a local service with an HTTP API and web viewer, managed with Bun. Sessions, observations and summaries go into SQLite, and a Chroma vector store enables hybrid semantic and keyword search. The stack is TypeScript on Node.js 20+, with Bun and uv; the license is Apache-2.0.
To query the memory there's a search skill and MCP tools (search, timeline and get_observations), meant to be used in that order: search, view the timeline, then fetch details for the IDs you care about.
How to use it
The README offers two install paths:
# Installer (offers sign-in and provider choice)
npx claude-mem installOr from Claude Code, through the plugin marketplace:
/plugin marketplace add thedotmack/claude-mem
/plugin install claude-memThen restart. npm install -g claude-mem isn't enough: it only installs the SDK, with no hooks or service. Once installed, context from previous sessions shows up on its own; to search manually, the pattern is search(query="authentication bug", type="bugfix", limit=10), then timeline, then get_observations(ids=[...]). Anything wrapped in <private> tags isn't stored.
What I like and what I don't
I like that storage is local by default (SQLite and Chroma), that there's an explicit tag to exclude content and that the license is clear for professional use. And the hook-based design uses Claude Code's standard mechanism, not a workaround.
What holds me back is privacy. Observations are compressed with AI, so a model provider is involved: the README mentions a hosted observer with a 30-day free trial, your own OpenRouter or Gemini key, or your Anthropic plan. There's also optional cloud sync (cmem.ai), and the README doesn't spell out what data leaves the machine in each mode. An agent working on production code sees secrets, paths and logs, so before using it anywhere serious I'd read the hook code and choose a provider explicitly, or disable online mode with CLAUDE_MEM_ONLINE_OPTIN=false.
On maintenance, the badge shows version 13.39.0, and the repository has 34 open issues and 57 open pull requests.
claude-mem vs Claude Code's built-in memory
Claude Code already ships two memory mechanisms: CLAUDE.md files, which you write, and auto memory, notes Claude itself saves based on your corrections and preferences.
| Claude Code built-in memory | claude-mem | |
|---|---|---|
| What it stores | Instructions (CLAUDE.md) and learnings Claude writes down | Observations of every tool call, summarized with AI |
| Where | Markdown files; auto memory in ~/.claude/projects/<project>/memory/ | SQLite and Chroma, with a local service and web viewer |
| How it's recalled | Loaded at the start of every session (auto memory up to 200 lines or 25 KB) | Injected context plus on-demand search over MCP |
| External provider | Not needed | Yes, to compress observations |
| Agents | Claude Code | Claude Code, Codex, Gemini, Copilot, OpenCode… |
When to pick which: built-in memory is enough if you want the agent to remember project conventions, commands and decisions, and it adds no moving parts or providers. claude-mem pays off if you need a searchable history of what happened in each session, or memory shared across several agents, and you're willing to run one more service and decide which provider sees your observations.
Sources
- thedotmack/claude-mem (GitHub), README and metadata as of October 14, 2026
- GitHub Trending (weekly), October 14, 2026
- How Claude remembers your project (Claude Code docs)