memory-dream

Consolidates stored memories by merging duplicates, deleting stale entries, and rewriting unclear facts.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Long-term memory stores accumulate duplicates, stale facts, vague entries, and accidentally captured credentials over time, degrading retrieval quality. This Skill runs a structured consolidation pass that cleans, merges, and rewrites memories into durable, well-formed knowledge. ## Core Features & Use Cases - Four-Phase Consolidation Protocol: Orients by listing all memories, gathers targets via semantic search, executes deletes/merges/rewrites, then reports a summary of every action taken. - Credential and Noise Removal: Deletes API keys, tokens, raw tool output, heartbeat records, and TTL-expired operational or project memories. - Atomic Merge and Rewrite: Uses memory_update to merge duplicate facts and rewrite vague, first-person, or miscategorized entries while preserving edit history. - Use Case: After weeks of agent activity, ask for a memory cleanup to collapse 200 fragmented entries into a concise set of categorized, temporally anchored facts with zero secrets. ## Quick Start Ask the agent to run a memory consolidation pass to clean up, deduplicate, and review all stored memories.

Frequently Asked Questions about memory-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 a consolidation pass that lists all stored memories, identifies duplicates expressing the same fact, updates the most complete version with missing details via memory_update, and deletes the redundant entries. Merged results stay under 50 words and remain self-contained.

How to remove credentials and secrets from stored agent memories?

The consolidation protocol scans memories for known credential prefixes and auth patterns, then deletes any entries containing API keys, tokens, passwords, or secrets using memory_delete. It also removes raw tool output, timestamps, and generic acknowledgments.

What API keys does the memory consolidation skill require?

It requires MEM0_API_KEY for the memory platform, plus OPENAI_API_KEY and ANTHROPIC_API_KEY as declared in the skill metadata environment requirements. No additional binaries are needed.

When are old memories automatically deleted during consolidation?

Operational memories older than 7 days and project memories older than 90 days are deleted as expired. Heartbeat records, cron execution logs, and pure timestamps without context are also removed regardless of age.

Why rewrite memories instead of deleting and re-adding them?

The protocol prefers memory_update because it is atomic and preserves edit history, avoiding data loss from a delete-then-store sequence. Rewrites fix first-person voice, missing temporal anchors, wrong categories, and entries over 50 words.