claude-mem
Plugin : A set of capabilities installed into an AI application or a host · requires claude-code
A persistent memory for coding agents: the plugin captures what the agent does, summarizes it and reinjects useful context into later sessions.
A coding agent starts from zero in every session. claude-mem records its activity, compresses it with a model and retrieves it when it becomes useful again, with a local interface to search the history. The gain is real on a long project. The price to pay is a permanent presence: hooks on every event, a local service, a database that keeps your exchanges and screenshots. Anonymous telemetry is on by default. Best reserved for projects where this log does not raise a confidentiality problem.
Security reflects where data goes, requested permissions and incidents on record at the verification date. It is not a guarantee of zero risk: check the deployment mode and the connections you enable.
What it does, concretely
A coding agent starts from zero in every new session. It re-reads the same files, re-asks the same questions and walks back into mistakes that were already fixed. claude-mem adds a persistent memory to avoid this.
The plugin places hooks in the agent that hand each tool call (reads, edits, commands) to a small local service. A second agent, called the observer, turns that activity into short observations and writes a summary when the session ends. The next session starts with a compact index of what matters for the project, and the agent fetches details only when it needs them. Memory injection starts on the second session in a project.
Data is stored in ~/.claude-mem, in a SQLite database, with a local interface to browse memory, sessions and settings. According to the repository, the plugin works with Claude Code, Codex, Cursor, OpenCode and eleven more agents.
It is meant for people who work for a long time on the same project with a coding agent and lose time re-explaining the context. It suits sensitive projects less well: the log keeps your exchanges and, by default, copies of screenshots. It is also less useful for one-off tasks, since memory only shows up from the second session.
What it offers
- ·Automatic capture of the agent's activity (reads, edits, commands) through hooks, then summarized into observations by a second agent.
- ·Injection at the start of each session of a compact index of past observations, with details fetched only on demand.
- ·A mem-search skill that explores your history in three steps (index, timeline, details) to limit token use.
- ·A local interface: My Work shows live requests and progress, and /viewer gives access to memory, sessions and settings.
- ·<private> tags: anything wrapped in them is never stored.
- ·Fine-grained settings for the context injected at the start of a session, and a citable ID for each observation.
- ·Memory search from Claude Desktop.
- ·Optional cloud sync to cmem.ai and an optional shared TeamBrain workspace for teams.
In practice
- Price
- Free
- Commercial use
- Commercial use: yes
- Available on
- claude-code, codex, cursor, opencode, any-agent
- Host
- claude-code
- FR interface
- No
Security and data
- Rating
- Security: one caveat, see the card
- Your data
- Local or cloud depending on use
- Maintenance
- Active
- Last release
- 29 November 2026
Links and repository checked on 30 November 2026 · added on 30 November 2026
How to install claude-mem
npx claude-mem install