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 dream-nhatnguyen1122
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dream
Source: https://github.com/nhatnguyen1122/Agent-Memory-Eval/tree/main/mem0/integrations/pi-agent-plugin/skills/dream
Command: npx skills add https://github.com/nhatnguyen1122/Agent-Memory-Eval --skill dream-nhatnguyen1122

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Over time, a memory store accumulates duplicate facts, contradictory statements, and stale entries that degrade search quality and produce noisy results. This Skill performs a structured consolidation pass that cleans up the memory store while keeping the user in control of every change. ## Core Features & Use Cases - Duplicate Detection and Merging: Groups memories by category, finds near-duplicates using keyword overlap heuristics, and drafts merged versions that are more complete than either original. - Contradiction Resolution: Flags memories asserting opposing facts about the same topic and lets the user pick the winner, defaulting to the more recent entry. - Stale Entry Pruning: Identifies memories older than 180 days or too vague to be useful, while always protecting entries marked with [PINNED]. - Use Case: After months of an agent storing user preferences, search results feel repetitive. Run the consolidation pass to review a diff report of proposed merges, prunes, and conflicts, approve the changes, and restore memory quality. ## Quick Start Ask the agent to run the dream memory consolidation pass and review the proposed merges, conflicts, and prunes before approving them.

Frequently Asked Questions about dream

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

FAQPage Schema
How do I remove duplicate memories from a mem0 memory store?

Run the dream consolidation skill, which fetches all memories with get_all, groups them by category, and detects near-duplicates using keyword overlap heuristics. It drafts merged versions and applies them only after you approve the diff report.

How does memory consolidation handle contradictory facts?

Contradictory memories are flagged as conflict pairs, with the more recent entry suggested as the winner. You choose A, B, or skip for each pair before any deletion occurs, so no conflicting fact is removed without your decision.

Can I run memory consolidation automatically without prompts?

Yes, invoke it with the --auto flag to run non-interactively. Merges and prunes are applied automatically, while contradictions are skipped because they require human judgment, and a compact summary is printed.

Are pinned memories deleted during consolidation?

No. Any memory whose content starts with [PINNED] is always skipped during pruning and is excluded from merge candidates, regardless of age or content.

When should I run memory cleanup on an agent memory store?

Run it when memory count is high, search results feel noisy or repetitive, or as periodic maintenance. The skill targets entries older than 180 days, vague entries under five meaningful words, and duplicate facts.