Releases: 0xtechdean/claude-code-mem0
v0.3.1 - Auto-Save Fix
Bug Fix
Auto-Save Now Works Correctly
Fixed an issue where the auto-save feature wasn't completing because daemon threads exit when the main script exits.
The fix: Wait up to 2 seconds for the save request to complete before exiting.
What's Working
- Every prompt is now saved to mem0
- Memories are extracted asynchronously (15-30 sec delay)
- Claude learns continuously from all conversations
Full Changelog: v0.3.0...v0.3.1
v0.3.0 - Auto-Save Every Prompt
What's New
Auto-Save Every Prompt
Every user prompt is now automatically saved to mem0 in the background. Claude continuously learns from your conversations without any action needed.
Enabled by default - set MEM0_AUTO_SAVE=false to disable.
How It Works
- You send a prompt → memories retrieved (as before)
- Background thread saves your prompt to mem0
- mem0 extracts key facts asynchronously
- Next session benefits from accumulated context
Changes
- Modified
userpromptsubmit.pyto save prompts in background thread - Added
MEM0_AUTO_SAVEconfig option - Updated
.env.examplewith all options - Updated documentation
Configuration
# Disable auto-save if needed
MEM0_AUTO_SAVE=falseFull Changelog: v0.2.0...v0.3.0
v0.2.0 - Manual Save Command
What's New
/mem0:save Command
Manually save memories mid-session without exiting Claude Code.
/mem0:save
Claude will review your conversation and save key facts to mem0.
Changes
- Added
commands/save.md- new/mem0:savecommand - Added
hooks/save_manual.py- programmatic memory saving script - Updated documentation
Full Changelog
Features:
/mem0:save- Save memories without ending session- Programmatic API via
save_manual.py
Fixes:
- Updated README with new command docs
- Better plugin structure documentation
See README for full usage.
v0.1.0 - Initial Release
mem0 Plugin for Claude Code
Persistent memory for Claude Code using mem0.ai - remembers context across conversations.
Features
- Automatic Memory Retrieval: Relevant memories are searched and injected before each prompt
- Conversation Storage: Conversations are automatically saved to mem0 when sessions end
- Semantic Search: Vector-based search for intelligent memory retrieval
- User Scoping: Memories are scoped by user ID for personalized experiences
Installation
Add to your ~/.claude/settings.json:
{
"plugins": [
"github:0xtechdean/claude-code-mem0"
]
}Then install the dependency:
pip install mem0aiCreate a .env file in your project with your API key from app.mem0.ai:
MEM0_API_KEY=your-api-key-hereSkills
/mem0:configure- Set up mem0 API key and settings/mem0:status- Check configuration and test connection
See README for full documentation.