claude-mem: The Persistent Memory Plugin for Claude Code That Is Trending on GitHub The claude-mem persistent memory plugin for Claude Code is trending on GitHub this week with about 104,000 stars, according to its repository README, which lists version 15.5.0 under an Apache-2.0 license. The plugin hooks into six Claude Code lifecycle events (SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, Stop and SessionEnd) to record tool activity into a local SQLite database plus a Chroma vector store, then feeds compressed summaries back into later sessions through a three-step search workflow the README claims saves roughly 10x tokens. The README warns that `npm install -g claude-mem` installs only the SDK and does not register hooks or the worker, so nothing gets recorded; the documented install is `npx claude-mem install`, and the tool requires Node.js 20 or newer. claude-mem https://github.com/thedotmack/claude-mem?ref=explainx , a "persistent memory compression system built for Claude Code," is trending on GitHub this week and shows about 104k stars. The pitch is simple and addresses a daily annoyance: Claude Code starts every session knowing nothing about yesterday. claude-mem records what the agent did, compresses it, and feeds the relevant parts back in next time. This guide explains how it works, how to install it without the common mistake the README warns about, and where to be skeptical. We read the README and docs; we did not benchmark it. TL;DR: questions answered | Question | Answer | |---|---| | What is it? | A plugin and worker service that adds cross-session memory to coding agents | | License? | Apache-2.0 | | Version shown? | 15.5.0 README badge | | Install? | npx claude-mem install , or /plugin marketplace add thedotmack/claude-mem then /plugin install claude-mem | | Needs? | Node.js 20 or newer, a Claude Code with plugin support; Bun and uv auto-install; SQLite is bundled | | Where is data stored? | Local SQLite for sessions, observations and summaries; Chroma for vector search; settings in ~/.claude-mem/settings.json | | Supports? | Claude Code first; also OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode and others | | Main risks? | Records tool use, so secrets and private code can enter memory; optional cloud sync; unverified savings claims | How it works Six lifecycle hooks claude-mem hangs off Claude Code's hooks system https://docs.anthropic.com/en/docs/claude-code/hooks?ref=explainx . According to the README it listens on six events: SessionStart , UserPromptSubmit , PreToolUse , PostToolUse , Stop and SessionEnd . Each runs a claude-mem hook claude-code