Persistent memory for Claude Code using Mem0
Persistent memory for Claude Code using Mem0
Hey HN, I built this because I was frustrated re-explaining my setup every Claude Code session and hitting context limits faster than needed. The plugin uses mem0.ai to: - Automatically retrieve relevant memories before each prompt (UserPromptSubmit hook) - Store conversation context when sessions end (Stop hook) - Semantic vector search so only relevant context is injected Example: Claude now knows I prefer Python, my tech stack, and project context - without me repeating it. Technical details: - Pure Python, no dependencies except mem0ai - ~120 lines of code per hook - Works with Claude Code's official plugin system - MIT licensed Just submitted a PR to the official Anthropic plugin registry: https://github.com/anthropics/claude-plugins-official/pull/52 Happy to answer questions about the implementation or Claude Code plugins in general.
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
Fixing Claude Code's amnesia with persistent memory
Recall – Persistent Memory for Claude Code via MCP Hooks
Persistent memory for Claude Code, Codex & coding agents
Atale AI: Persistent Memory Chatbot
ContextForge – Persistent memory MCP server for Claude
Rekol, the memory for Claude Code that's yours
Albert, an AI companion with a persistent memory
Persistent memory infrastructure for AI agents
Graft – local-first persistent memory for coding agents
Persistent memory for AI applications