Claude-Mem is a persistent memory plugin for Claude Code and other coding agents. It captures observations of tool use during a session, compresses them into semantic summaries, and injects the relevant context into later sessions, so the agent keeps project knowledge after a session ends.
Lifecycle hooks (SessionStart, UserPromptSubmit, PostToolUse, Stop, and SessionEnd) feed a local worker service that stores sessions, observations, and summaries in SQLite with full-text search, and uses the Chroma vector database for hybrid semantic and keyword search. The worker also serves a web viewer that shows the memory stream in real time.
Search follows a three-layer pattern exposed as MCP tools: a compact search index of IDs, a timeline of what happened around a result, and full observation details fetched only for the chosen IDs. Filtering before fetching cuts token use by about ten times.
Besides Claude Code, Claude-Mem installs into OpenCode, T3 Code (with Codex and Claude Code providers), Antigravity CLI, Oh My Pi, Pi, DeepSeek Harness, Grok Bot, and OpenClaw gateways. Observations are generated by a hosted observer, your own OpenRouter or Gemini key, or your Anthropic plan. Workflow modes set the observation style and language, and an optional cloud sync backs memory up.
Features
- Automatic capture: lifecycle hooks record tool-use observations and session summaries without manual steps
- Progressive disclosure: layered memory retrieval that shows token cost before fetching full details
- MCP search tools: search, timeline, and get_observations tools for a three-layer search workflow
- Hybrid search: SQLite full-text search combined with Chroma vector search
- Web viewer: a real-time view of the memory stream with citations to past observations by ID
- Privacy tags: content wrapped in private tags stays out of storage
- Multi-harness support: plugins for Claude Code, OpenCode, T3 Code, Antigravity CLI, Oh My Pi, Pi, DeepSeek Harness, Grok Bot, and OpenClaw
- Claude Desktop skill: searches memory from Claude Desktop conversations
- Modes and languages: workflow modes such as code or investigation, with observations generated in languages including Chinese and Japanese
- Cloud sync: optional backup of memories to a hosted service



