mem0-dream
Installation
SKILL.md
Mem0 Dream — Memory Consolidation
This skill performs a memory consolidation pass: it fetches all project memories, identifies near-duplicates, flags contradictions, and prunes stale entries based on configured retention policies. All proposed changes are shown as a diff for user approval before anything is modified.
IMPORTANT: Execute steps strictly in order (1 → 2 → 3 → 4 → 5 → 6). Each step depends on the previous one. Do NOT run steps in parallel or skip ahead.
Step 1: Load Retention Policies
Check for a project config file in the project root (current working directory):
- Look for
.mem0.jsonfirst. If it exists, parse it as JSON and read theretentionfield (a dict ofcategory → days | null). - If
.mem0.jsonis not present, look for.mem0.md. If it exists, scan it for aretention:section or YAML front matter with retention settings and parse what you find. - If neither file exists, skip config loading entirely.