memory-dream

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Long-term AI memory stores accumulate duplicates, stale facts, leaked credentials, and vague entries over time, degrading retrieval quality. This Skill runs a structured four-phase consolidation pass that cleans, merges, and rewrites memories into durable, well-categorized knowledge. ## Core Features & Use Cases - Duplicate Merging: Detects memories expressing the same fact and merges them atomically via memory_update, preserving edit history and temporal anchors. - Credential and Noise Removal: Deletes API keys, tokens, raw tool output, heartbeat records, and TTL-expired operational or project memories. - Quality Rewriting: Converts first-person entries to third person, adds temporal anchors, fixes miscategorized memories, and compresses entries to 15-50 words. - Use Case: After weeks of an agent storing observations, invoke this Skill to review all memories, merge five overlapping notes about a user's Python preference into one clean entry, and purge expired session data. ## Quick Start Ask the agent to run a memory consolidation pass to clean up, merge, 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 AI agent memories?

Run a memory consolidation pass that lists all stored memories, identifies entries expressing the same fact, updates the most complete version with missing details, and deletes the redundant copies. Merging via memory_update is atomic and preserves edit history.

How to remove credentials and secrets from stored 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. This runs as the first priority action in the consolidation phase.

What environment variables does memory consolidation require?

It requires MEM0_API_KEY, OPENAI_API_KEY, and ANTHROPIC_API_KEY to be set in the environment. These authenticate the memory platform and the underlying language model providers used during the consolidation pass.

When are old memories automatically deleted by TTL rules?

Operational memories older than 7 days and project memories older than 90 days are deleted during consolidation. Pure timestamps, heartbeat records, and generic acknowledgments are removed regardless of age.

What are the limitations of automated memory consolidation?

Consolidation depends on semantic search quality to find duplicates, so near-duplicates phrased very differently may be missed. Merged memories are capped at 50 words, which can force trade-offs when combining detail-rich entries.