Memory Dedupe

Detect and merge duplicate rows and H2 headings in MEMORY.md.

Updated Jun 17, 2026
One-click install
npx skills add https://github.com/aeoncity-demo/myaeon --skill memory-dedupe
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: Memory Dedupe
Source: https://github.com/aeoncity-demo/myaeon/tree/main/skills/memory-dedupe
Command: npx skills add https://github.com/aeoncity-demo/myaeon --skill memory-dedupe

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill addresses the issue of duplicate rows and H2 headings in MEMORY.md, which can accumulate over time due to the nature of the reflect and memory-flush processes. It prevents the need for manual cleanup by automatically identifying and merging duplicate entries.

Core Features & Use Cases

  • Detects Duplicate Rows: Identifies sections with multiple content blocks that should have only one.
  • Detects Duplicate Headings: Finds instances where the same heading appears multiple times in the document.
  • Automated Merge: Automatically merges the detected duplicates into a single canonical block.
  • Conditional Check: Allows checking for duplicates in a specific section by specifying an optional variable.
  • Post-Fix Topic-Pointer Dedupe: Runs the scripts/memory-dedupe --fix script after structural changes.

Quick Start

Run the skill to check for duplicates in MEMORY.md: ./aeon run memory-dedupe.

Frequently Asked Questions about Memory Dedupe

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically detect and merge duplicate rows in MEMORY.md?▼

To automatically detect and merge duplicate rows in MEMORY.md, you can run a scheduled memory dedupe process that identifies sections with multiple content blocks and collapses them into a single canonical entry. This preserves document structural integrity.

Why does my MEMORY.md document have duplicate H2 headings after memory flushes?▼

Duplicate H2 headings in MEMORY.md accumulate over time due to the nature of reflect and memory-flush processes. An automated memory dedupe skill addresses this by identifying repeated headings and merging them to prevent manual document cleanup.

How do I check for structural duplicates in a specific MEMORY.md section?▼

You can check for structural duplicates in a specific MEMORY.md section by specifying an optional variable when running the memory dedupe process. This conditional check targets only the defined area without scanning the entire document.

Can I run post-fix topic-pointer dedupe after structural changes to MEMORY.md?▼

Yes, you can run post-fix topic-pointer dedupe after structural changes by executing the scripts/memory-dedupe --fix script. This ensures that topic pointers remain accurate and prevents structural integrity issues in MEMORY.md.

Do I need local file access to automate MEMORY.md document cleanup?▼

Yes, automating MEMORY.md document cleanup requires local file access because the dedupe process handles local file operations directly. It needs read and write access to MEMORY.md and related scripts to merge duplicates successfully.