Claude-Mem GitHub: Install the Plugin, Verify Hooks, Avoid npm -g
A practical Claude-Mem setup guide for Claude Code: official install commands, the global npm trap, hook checks, and a comparison with manual memory notes.
Claude-Mem is an open-source persistent-memory plugin hosted at thedotmack/claude-mem on GitHub. It captures session observations and makes compressed context available in later sessions, according to its documentation. Installation involves hooks and a worker, so downloading a package alone is not the same as activating memory.
Install Claude-Mem correctly
The official installation guide gives two normal paths. In a terminal on your own machine, run:
npx claude-mem install
The installer is interactive and can ask which agents and memory provider to configure. Read its provider choices before accepting a default; the current documentation describes both local and hosted options. Alternatively, inside Claude Code:
/plugin marketplace add thedotmack/claude-mem
/plugin install claude-mem
Restart Claude Code after installation. The marketplace path can need an additional session for its launcher to become active, so if the first restarted session has no memory context, follow the official verification steps before concluding it is broken.
The common GitHub/npm mistake
npm install -g claude-mem installs the SDK/library but does not register plugin hooks or start the worker. The project's installation guide explicitly warns about this and says a global binary can shadow the hook launcher on PATH. If a global install was your only step, run one of the supported installers above. Check the launcher with npx claude-mem doctor; its “Hook launcher” row reports where the command resolves. Do not interpret a successful npm install as proof of memory capture.
The documentation also says current exec-form hooks require Claude Code 2.1.139 or later. If hooks appear configured but no observations arrive, check the version and the doctor's launcher result before changing memory settings. Source.
Claude-Mem versus memory you maintain yourself
| Question | Claude-Mem | Manual CLAUDE.md or notes |
| ------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- |
| How is information added? | Hooks capture activity and a worker prepares later context | You select and write each durable fact |
| What can go stale? | Summaries may preserve outdated decisions | Notes become stale unless someone updates them |
| Setup and moving parts | Plugin, hooks, launcher, worker, provider choice | A text file in the project |
| Best fit | Repeated work where session history is useful | Stable project rules and decisions that need review in git |
This is a workflow comparison, not a measured reliability or privacy claim. A practical combination is to keep canonical project rules in CLAUDE.md and treat retrieved session memory as context to verify against current code. For instruction-focused guidance rather than session memory, see our Karpathy Skills guide. For a skill that governs how pages are built — layout, photography and a browser gate — see our Taste Skill guide.
FAQ
Is the GitHub repository enough to install it? No. Use the supported installer or Claude Code marketplace commands so hooks and worker are configured. Source.
Why is there no memory in the first new session? A marketplace-only install may compile its launcher on the first session start; the next session can have it. Check npx claude-mem doctor if it persists. Source.
Does it replace CLAUDE.md? It serves a different purpose: captured session context versus explicitly maintained project instructions. The documentation also describes optional generated folder context files. Source.
Sources and scope
- thedotmack/claude-mem GitHub repository — project identity and code. Checked November 6, 2026.
- Claude-Mem installation guide — commands, provider flow, hooks, launcher verification, npm warning. Checked November 6, 2026.
- Claude-Mem introduction — memory behavior and folder context files. Checked November 6, 2026.
The installer and provider choices can change. These steps reflect the official pages checked November 6, 2026. We have not independently measured memory quality or provider data handling.