mem0-dream
Skill by maomao-2001
Mem0-dream consolidates stored mem0 memories by merging duplicates, resolving contradictions and pruning stale entries. It is for projects whose memory count is high or whose search results feel noisy. Changes are shown as a diff for approval first.
Install mem0-dream
Built from the published package, never by AI.
git clone --depth 1 https://github.com/maomao-2001/Whispera /tmp/Whispera && mkdir -p ~/.claude/skills && cp -r /tmp/Whispera/mem0/integrations/mem0-plugin/.opencode-plugin/opencode-skills/mem0-dream ~/.claude/skills/mem0-dreamRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/maomao-2001/Whispera /tmp/Whispera && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Whispera/mem0/integrations/mem0-plugin/.opencode-plugin/opencode-skills/mem0-dream ~/.gemini/antigravity-cli/skills/mem0-dreamAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Mem0 Dream is an agent skill that runs a memory consolidation pass over the project memories stored in mem0. It fetches all memories for the active user and project, groups them by metadata type, and looks for near-duplicate pairs, contradictions and prune candidates. Pinned memories are skipped for merges and prunes.
Before anything is changed, the skill prints a diff report and asks for approval. Contradictions need a manual choice of A, B or skip. An auto mode, run with --auto, applies merges and prunes without prompts and leaves contradictions for later review. The skill is aimed at developers who want to keep mem0 memory quality high as stored memories grow.
Written from the project's SKILL.md and checked against it.
What it can do
- Load retention policiesReads retention settings from .mem0.json or .mem0.md, with built-in defaults if none are found.
- Find near-duplicatesFlags memories of the same type that share most significant nouns and drafts a more complete merged version.
- Detect contradictionsPairs memories that assert opposing facts and suggests the more recent, higher-confidence one as the likely winner.
- Prune stale memoriesMarks memories older than their retention period, or with low confidence and no project-specific details, for removal.
- Diff reportPrints proposed merges, conflicts and prunes in a structured report before any change is made.
- Auto modeWith --auto, applies merges and prunes non-interactively, skips contradictions and stores a reminder for them.
What you need
- Access to mem0 memory tools: get_memories, add_memory, delete_memory and search_memories
- A mem0 memory store with memories for the active user and project
- OpenCode terminal interface, as the output formatting section describes
Try asking
- /mem0-dream
- /mem0-dream --auto
- Find duplicate and contradictory memories in this project and show me a diff
Good to know
- Nothing is changed until the user approves the diff, except in auto mode.
- Auto mode skips contradictions, which need manual review.
- Default retention applies only to session_state and compact_summary types; other types are not pruned unless configured.
- Output is plain text with no markdown.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: mem0/integrations/mem0-plugin/.opencode-plugin/opencode-skills/mem0-dream/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to mem0-dream
All alternatives →Set up and diagnose a local agentmemory installation. It covers MCP connections, environment variables, ports, auth and feature flags, and is for users getting started or checking a connection.
Analyzes a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit links and topic clusters. Built for people who maintain LLM-generated markdown wikis.
Saves and loads timestamped reports for AI assistants, with keyword routing for fast lookup. It also runs an Actionability Gate that checks report links before delivery. Intended for morning briefings, meeting digests and research reports.
Removes a personal fact, preference, relationship detail, topic or past event from Muse's active memory. It also stops existing copies and automations from bringing it back.
Git Context Controller (GCC) is a skill that stores agent memory as a versioned file system under .GCC/. It suits multi-step projects that need milestone tracking, branching and context recovery across sessions.
Guides an evidence-first reading of a book, article, PDF or document set. Built for readers who want claims, evidence and recall rather than a short summary.
Compare with agentmemory-config, understand-knowledge or reports
mem0-dream: common questions
Does mem0-dream delete memories without asking?
No. In interactive mode it prints a diff and waits for approval before applying changes. Auto mode, run with --auto, applies merges and prunes without prompting.
How does it decide which memory wins a contradiction?
The source says the more recent memory with higher confidence wins as the likely winner. The user still chooses A, B or skip in interactive mode.
Which memories are protected from pruning?
Memories with metadata.pinned set to true are always skipped for pruning, regardless of age or confidence.
How do I install mem0-dream?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is mem0-dream free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is mem0-dream safe to use?
It scores 62 of 100. Grades: maintenance C, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to mem0-dream?
Similar skills: agentmemory-config, understand-knowledge, reports, forget.
