What problem does it solve?
It detects and collapses structural duplicate content blocks in MEMORY.md that accumulate over repeated memory-flush cycles, preventing sections like Recent Articles and Skills Built from drifting into multiple competing versions.
Core Features & Use Cases
- Structural duplicate detection: Flags sections that should contain a single canonical content block and determines when multiple blocks have accumulated.
- Intelligent merge & rewrite: Selects a canonical block (e.g., most complete counts for Recent Articles/Skills Built) and folds in any unique information from non-canonical blocks before rewriting only the affected section(s).
- Companion pointer dedupe: Runs scripts/memory-dedupe after structural rewrites to eliminate any re-exposed pointer duplicates, keeping memory cleanup consistent.
Quick Start
Run the memory-structural-dedupe skill to automatically inspect memory/MEMORY.md and rewrite only the drifted single-canonical sections.