4.4 KiB
4.4 KiB
Changelog
All notable changes to the Mem0 plugin will be documented in this file.
0.2.0
Added
- Project-scoped memories: Deterministic
project_idfrom git remote (_project.sh/_project.py). Memories are now isolated per-repo viametadata.project_idon everyadd_memoryandsearch_memoriescall. Same repo cloned twice → sameproject_id. - Branch-aware tagging:
metadata.branchstamped on session-state and compact-summary memories. Enables branch-scoped recall (e.g. "what was I doing on feature/auth-rewrite?"). - Auto-import of project files: SessionStart detects CLAUDE.md, AGENTS.md, .cursorrules, .windsurfrules, mem0.md — hashes them (SHA-256), imports changed files as
project_profilememories. Idempotent across sessions. - Active identity banner: SessionStart now prints
user=X | project=Y | branch=Z | memories=Ninstead of a silent bootstrap. - Session-end report: Stop hook prints
Session: wrote N memories, retrieved M. Categories touched: ...and appends to~/.mem0/session-log.md. /mem0:onboardskill: Post-install wizard — verifies API key, detects and imports project files, installs coding categories, prints setup summary. 30 seconds to value./mem0:tourskill: Shows all memories for the current project grouped by category. Proof-of-value demo./mem0:switch-projectskill: Manualproject_idoverride for monorepos and non-git directories. Persists to~/.mem0/project_map.json.- Session stats tracker (
session_stats.py): Tracks memory adds/searches per session for the end-of-session report.
Changed
- All hooks and
mem0-mcp/SKILL.mdnow includeproject_idin every filter and metadata example. - SessionStart banner replaces the previous "## Mem0 Identity" block with a compact one-liner.
on_pre_compact.pyandcapture_compact_summary.pynow includeproject_idandbranchin stored metadata.
0.1.3
Fixed
- user_id resolution no longer derives from
MEM0_API_KEY. v0.1.2 changed the resolver to fall back to"mem0-" + sha256(MEM0_API_KEY)[:12]ahead of$USER, which silently moved every existing user to a new bucket on update. Memories written under the previous$USERvalue became unreachable from the plugin. Resolution is now back toMEM0_USER_ID→$USER→"default". - Dropped the "regardless of which machine you're on" line from the SessionStart bootstrap, since cross-machine consolidation now requires setting
MEM0_USER_IDexplicitly.
Notes for users upgrading from 0.1.2
- The
~/.mem0/identity.jsoncache file is no longer read or written. Safe to delete. - If you wrote memories during the v0.1.2 window, they live under
mem0-<sha256(api_key)[:12]>. To recover: temporarilyexport MEM0_USER_ID=mem0-<hash>, search/export, then unset. - Want a single bucket across machines (the original goal of #5076)? Set
MEM0_USER_IDexplicitly in your shell profile. The plugin will not auto-derive one.
0.1.2
Added
- Deterministic
user_idresolver (_identity.sh/_identity.py) — reverted in 0.1.3, see above. - SessionStart-compact handler (
capture_compact_summary.py) that stores the post-compaction summary as a memory withmetadata.type=compact_summary. - Coding-taxonomy setup script (
setup_coding_categories.py) — one-shotproject.update(custom_categories=[...])forarchitecture_decisions,anti_patterns,task_learnings,tooling_setup,bug_fixes,coding_conventions,user_preferences. - Opt-in hook logging via
MEM0_DEBUG=1→~/.mem0/hooks.log. mem0-mcpskill replacing the Claude-Code-specificmem0-codexskill.
Fixed
session_idnow written to memory metadata (on_pre_compact.py).- SessionStart bootstrap exits silently when
MEM0_API_KEYis unset. block_memory_write.shregex tightened toMEMORY.md/.claude/memory/*— no longer blocksdocs/memory/*.md.- Removed duplicate PreCompact write path (kept agent-driven, dropped the parallel Python REST entry from
hooks.json/cursor-hooks.json). - Hook-side captures (
session_state,compact_summary) now setexpiration_date = today + 90 days.
0.1.1
- Cursor plugin fully functional (
#4547). - Codex plugin support and integration docs (
#4665). - Codex lifecycle hooks via opt-in installer (
#4917). - Removed invalid keys from Claude plugin config (
#4821).
0.1.0
- Initial release: Mem0 plugin for Claude Code and Cursor (
#4518).