---
name: memory-dream
description: Memory lint + consolidation analyzer for the ClaudeTools REPO memory store (.claude/memory/). Audits the index, backlinks, referenced file paths, duplicate/overlap clusters, stale dated facts, and drift against the machine-local harness profile memory store. Default run is read-only. --apply-safe performs the low-risk fixes (append missing index lines, copy any profile-only files into the repo for indexing). Cluster merges, dedup deletes, and stale-fact removal are surfaced as PROPOSED actions for a human to apply -- they're judgment calls, not automation candidates. (Repo is the source of truth as of 2026-06-02; sync-memory.sh mirrors repo to profile, so PROFILE-side cleanup is handled by that script, not here. See feedback_memory_sync_destructive_ok.md.) Invoke for: "memory dream", "consolidate memory", "memory lint", "clean up memory", "memory errors", "dedupe memory".
---

**Grok skill.** This maps to the shared skill in `.claude/skills/memory-dream/SKILL.md`.

Read `.claude/skills/memory-dream/SKILL.md` (GrepAI-first via MCP tools before read_file per rules) and follow it, adapting for Grok tools (run_terminal_command for the script, MCP grepai for searching memory files since they are indexed).

The memory lint/consolidation for .claude/memory/ (and bridging to Grok native memory) is in the source.

Use to clean/audit the shared memory history. See .grok/README.md for Grok memory layers.

See also: .claude/scripts/sync-memory.sh , .grok/skills/context/SKILL.md .
