Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 62
  • 120 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-dream

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install mem0-dream in Claude Code

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

A

No 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 →

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.

mem0-dream Install

Add to stack

Loading.