mem0-dream

Consolidates stored memories by merging duplicates, resolving contradictions, and pruning stale entries.

Updated Jun 29, 2026
One-click install
npx skills add https://github.com/nhatnguyen1122/Agent-Memory-Eval --skill mem0-dream-nhatnguyen1122
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mem0-dream
Source: https://github.com/nhatnguyen1122/Agent-Memory-Eval/tree/main/mem0/integrations/mem0-plugin/.opencode-plugin/opencode-skills/mem0-dream
Command: npx skills add https://github.com/nhatnguyen1122/Agent-Memory-Eval --skill mem0-dream-nhatnguyen1122

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Over time, a project's memory store accumulates duplicate facts, contradictory statements, and outdated entries, making search results noisy and unreliable. This Skill runs a structured consolidation pass that cleans up the memory store while keeping you in control of every change. ## Core Features & Use Cases - Duplicate Merging: Detects near-duplicate memories using similarity heuristics and drafts a merged version that is more complete than either original. - Contradiction Resolution: Flags conflicting memories (e.g., "Deploy to ECS" vs. "Deploy to Vercel") and lets you pick the winner interactively. - Retention-Based Pruning: Removes stale entries based on configurable retention policies from .mem0.json or .mem0.md, with built-in defaults and protection for pinned memories. - Auto Mode: Run with --auto for non-interactive cleanup that applies merges and prunes automatically, skips contradictions, and uses a lock file to prevent concurrent runs. - Use Case: After weeks of coding sessions, your project has hundreds of memories and search results feel repetitive. Run the consolidation pass, review the diff report of proposed merges and prunes, approve, and restore a clean memory store. ## Quick Start Ask the assistant to run a memory consolidation pass on this project and show me the proposed merges, conflicts, and prunes before applying anything.

Frequently Asked Questions about mem0-dream

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I clean up duplicate memories in mem0?

Run the mem0-dream consolidation pass, which fetches all project memories, detects near-duplicate pairs using similarity heuristics, and proposes merged versions. You review a diff report and confirm before any memories are deleted or replaced.

How does memory consolidation handle contradictory memories?

Contradictory memories, such as opposing deployment decisions, are flagged as conflicts in the diff report. You resolve each one interactively by choosing A, B, or skip; the loser's memory is deleted only after your confirmation.

Can I run memory consolidation automatically without prompts?

Yes, invoke it with the --auto flag. Auto mode applies merges and prunes silently, skips contradictions since they need human judgment, and stores a reminder memory if unresolved conflicts remain. A lock file prevents concurrent runs.

How do I configure retention policies for memory pruning?

Create a .mem0.json file in your project root with a retention field mapping memory types to days, or add retention settings to .mem0.md. Without config, session_state and compact_summary default to 90 days and other types are never pruned.

Are pinned memories deleted during consolidation?

No. Memories with metadata.pinned set to true are always skipped, regardless of age, confidence score, or duplication status. This protects critical facts from both pruning and merging.