dream

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

1|Updated Jan 13, 2022
One-click install
npx skills add https://github.com/jayho-k/TIL --skill dream-jayho-k
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dream
Source: https://github.com/jayho-k/TIL/tree/main/AI/mem0/code/mem0_code_analize/mem0/integrations/pi-agent-plugin/skills/dream
Command: npx skills add https://github.com/jayho-k/TIL --skill dream-jayho-k

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 and identifies near-duplicates using keyword overlap heuristics, then drafts a merged version that is more complete than either original. - Contradiction Resolution: Flags memories that assert opposing facts about the same topic and lets the user pick the winner, with the more recent memory suggested as the default. - 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 accumulating memories, search results feel repetitive. Run the consolidation pass to review a diff report of proposed merges, conflicts, and prunes, approve the changes, and restore a clean memory store. An --auto mode handles merges and prunes non-interactively. ## Quick Start Ask the agent to run the dream memory consolidation to review and clean up duplicate, contradictory, and stale memories.

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 memory store?

Run the consolidation pass, which groups memories by category and detects near-duplicates using keyword overlap heuristics. It drafts a merged version of each duplicate pair and applies the merge only after you approve the diff report.

How are contradictory memories resolved during consolidation?

Contradictory pairs are flagged when two memories assert opposing facts about the same topic. The more recent memory is suggested as the winner, but you choose A, B, or skip for each conflict before any deletion occurs.

Can memory consolidation run automatically without confirmation?

Yes, invoking with --auto runs non-interactively: merges and prunes are applied automatically, while contradictions are skipped because they require human judgment. A compact summary of applied changes is printed at the end.

Are pinned memories deleted during cleanup?

No. Any memory whose content starts with [PINNED] is always skipped during pruning and merging, regardless of its age or how vague its content is.

What criteria make a memory a prune candidate?

A memory becomes a prune candidate if it is older than 180 days and has not been accessed recently, or if its content is extremely vague with fewer than five meaningful words. Pinned memories are exempt from pruning.