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
💡 Why It Matters
This project addresses the common issue of AI agents losing context between sessions, which forces repeated work like re-reading files or re-asking questions. It runs a secondary agent alongside your main AI agent that takes notes and compresses key information, allowing subsequent sessions to start with relevant context and fetch details only on demand. This approach differs from simpler memory search tools like Copilot CLI or Warp, which can query previous sessions but do not record or persist session memory automatically. Backend engineers and AI specialists working with Claude Code, Codex, or similar agents will benefit most from persistent context that reduces repetitive errors and accelerates workflows. The project has a solid star count and recent commits, but its growth is not yet notable, indicating it is still establishing its user base. Avoid it if you need a fully offline, self-contained memory system or if you primarily use AI agents not supported by claude-mem, such as those outside the Anthropic ecosystem or without plugin compatibility.
🎯 When to Use
Use this when you want persistent, session-to-session memory for AI coding assistants like Claude Code or Codex to improve context retention and reduce redundant interactions. Consider alternatives like Copilot CLI or Warp if you only need searchable memory without session recording or if you prefer tools with a longer track record and broader agent support.
👥 Team Fit & Use Cases
Commonly deployed in developer tooling environments where AI agents assist with code understanding and generation, enabling persistent context across editing sessions. It fits workflows that integrate with Claude Code, OpenClaw, or Gemini agents, enhancing AI-driven code review, debugging, or pair programming setups.
🎭 Best For
⚖️ Compare With
🏷️ Topics & Ecosystem
📊 Activity
Latest commit: 2026-12-02. Over the past 226 days, this repository gained 65.0k stars (+115.0% growth). Activity data is based on daily RepoPi snapshots of the GitHub repository.