SkillsPlugins & marketplacesHooks

thedotmack/claude-mem

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

Stars
118,864
+7 days
—
Forks
10,334
Language
TypeScript
License
Apache-2.0
Last push
21 Nov 2026

Summary

Summary written by AI from the README; it may be imprecise.

This tool provides persistent memory across sessions for coding agents such as Claude Code, Codex, and OpenCode. It uses lifecycle hooks and a background worker to record tool activity, summarize key insights into observations, and store them locally in SQLite and a vector database. Future sessions automatically receive a compact index of past context, with MCP tools available to query full details on demand.

Use it when

  • When your agent repeatedly forgets previous decisions, bugfixes, or context across session restarts
  • Search past session history and codebase insights efficiently through built-in MCP search tools
  • Inject relevant historical project context into new sessions without consuming excessive tokens

Install

plugin
/plugin marketplace add thedotmack/claude-mem
plugin
/plugin install claude-mem
npm
npx claude-mem install

Commands quoted from the repo's README. Read the README before running them.

Includes hooks that run shell commands on your machine. Read them before installing.

Stars over 90 days

Collecting: 2 of 90 days so far. The chart appears after 7 days.

Type to search the reference, templates and lessons.