Claude-Mem - An open-source Claude Code memory plugin that provides long-term memory.
Claude-Mem is an open-source plugin designed specifically for Claude Code, providing AI with long-term memory capabilities. Claude-Mem automatically stores and manages key information from sessions, including tool calls, conversation logs, and project details...
What is Claude-Mem?
Claude-Mem is an open-source plugin designed specifically for Claude Code, providing AI with long-term memory capabilities. Claude-Mem addresses the issue of AI forgetting things across sessions by automatically storing and managing key information, including tool calls, conversation logs, and project structure. Features such as persistent memory across sessions, progressive recall, history lookup, and a structured knowledge base help developers reduce repetitive work, improve development efficiency, and ensure AI remains consistent and efficient in long-term projects.
Claude-Mem's main functions
- Cross-session persistent memoryAutomatically stores key information in the session (such as tool call results, conversation logs, etc.) to ensure that the context does not need to be reinterpreted in a new session, thus maintaining the continuity of the context.
- Gradual recallThe memory is presented using a three-layer structure of index → summary → original text, content is loaded on demand, tokens are saved, and information overload is avoided.
- Historical searchIt supports searching past records using natural language, quickly finding relevant tool outputs, conversation summaries, and full content, thus improving query efficiency.
- Structured knowledge baseHistorical information is transformed into a searchable database and vector index, forming a project-level knowledge base to help AI quickly understand project progress.
- Automatic recording of the development processAutomatically capture tool calls, file operations, error logs, etc., reducing manual archiving work and avoiding repetitive work caused by lost context.
- Privacy Control:use
<private>Tags exclude sensitive content to ensure data security. - Intelligent Search:supply
mem-searchThe skill allows users to query project history using natural language, saving approximately 2250 tokens. - Automatic operationNo manual intervention is required; context is automatically injected, and the system runs transparently, enhancing the user experience.
How to use Claude-Mem
- Install pluginsIn the Claude Code terminal, enter the following command to add and install the Claude-Mem plugin:
/plugin marketplace add thedotmack/claude-mem
/plugin install claude-mem
- Restart Claude CodeAfter installation, restart the Claude Code application. Upon restarting, the context of the previous session will be automatically loaded into the new session.
- Using Web Viewer UI: Open the Web Viewer UI (default address is http://localhost:37777) to view the memory stream, history, and perform search operations in real time.
- Query historyBy asking questions in natural language (such as "What did we discuss last time?" or "What issues did we fix before?"), Claude will automatically invoke the mem-search skill to quickly return relevant historical records.
- Privacy ControlIn conversations, use the <private> tag to wrap sensitive information. This content will not be stored or retrieved, ensuring privacy and security.
- Try the Beta versionIf you want to try experimental features (such as Endless Mode), switch to the Beta version in the Web Viewer UI settings.
Claude-Mem's project address
- GitHub repositoryhttps://github.com/thedotmack/claude-mem
Application scenarios of Claude-Mem
-
Long-term software development projectsClaude-Mem automatically records code changes, discussions, and decisions during the development process, helping developers quickly review project history, avoid repeatedly explaining the background, and improve development efficiency.
-
Multi-person collaborative developmentBy using a shared memory, Claude-Mem enables team members to quickly understand project progress, reducing communication costs and information asymmetry, and enhancing collaboration efficiency.
-
Code debugging and optimizationClaude-Mem can record error logs and debugging processes, and supports natural language search of historical issues and solutions, accelerating problem identification and optimization.
-
Technical Writing and DocumentationClaude-Mem helps record key discussions and code context information, ensuring the accuracy and completeness of technical documentation and improving writing efficiency.
-
Personal knowledge managementIt allows independent developers to record project progress and learning notes, forming a personal knowledge base that facilitates quick resumption of work after a long interruption.