← Back to glossary
+Suggest a term
Tool·Agents & Automation·Added 15 days ago

claude-mem

Also known as: thedotmack/claude-mem, claude mem, persistent memory plugin for Claude Code

An open-source memory middleware that captures everything a coding agent does during a session, compresses it, and injects relevant context into future sessions. Works across Claude Code, Codex, OpenClaw, Cursor, Gemini CLI, and other agents.

The core problem claude-mem solves is what builders call agent amnesia: every new coding session starts cold, with no knowledge of past decisions, architectural tradeoffs, or previous fixes. Claude-mem hooks into the agent's execution loop, records every file read, tool call, and conversation turn, then uses an LLM to compress those observations into structured memory entries stored in a local SQLite database.

When a new session starts, claude-mem queries that memory store based on the current task and injects only the relevant context back into the agent's system prompt, so the agent picks up where it left off without consuming the whole context window. The project originated as a Claude Code plugin but expanded into a vendor-agnostic layer that works with OpenClaw, Codex, Windsurf, Copilot, and other coding agents, standardizing the memory format so a session in one agent can inform a session in another.

It went viral in early 2026, gaining tens of thousands of GitHub stars within days of launch, and has since crossed 108K stars, making it one of the most-adopted open-source tools in the AI coding ecosystem. Its rise validated persistent cross-session memory as a category of developer infrastructure, something vendors now treat as table stakes rather than a third-party plugin.

This definition is AI-generated and refreshed weekly. It may contain inaccuracies. Use your own judgment, especially for production decisions.
Related terms
Agent memoryMemory LayerContext compactionContext rotAgentic coding