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
Claude-mem is a persistent memory system for AI agents that captures tool usage, shell commands, and file edits across sessions, compresses observations using AI, and injects relevant context into future conversations. It functions as a Claude Code plugin and also integrates with Cursor through hook scripts, supporting multiple AI platforms including Claude, Gemini, Copilot, and others. The project is built with Bun as the runtime, uses SQLite for observation storage and Chroma for vector embeddings, and includes a worker service that manages session data and context injection. Claude-mem was created by thedotmack and features integration patterns for both Claude Code's native hook system and Cursor's beforeSubmitPrompt, afterMCPExecution, afterShellExecution, and file-edit hooks.