memory-structural-dedupe

Detect and collapse structural duplicate blocks in MEMORY.md into one canonical version.

626|225|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/aaronjmars/aeon --skill memory-structural-dedupe
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: memory-structural-dedupe
Source: https://github.com/aaronjmars/aeon/tree/main/skills/memory-structural-dedupe
Command: npx skills add https://github.com/aaronjmars/aeon --skill memory-structural-dedupe

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and assets (resource) components.

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.

Frequently Asked Questions about memory-structural-dedupe

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

FAQPage Schema
How do I fix duplicate sections in a markdown memory file?▼

To fix duplicate sections in a markdown memory file, you need to detect and collapse structural duplicate rows by consolidating multi-block section content into a single canonical version. This prevents sections from drifting into multiple competing versions over repeated memory-flush cycles.

Why does my autonomous agent memory flush create duplicate content blocks?▼

Autonomous agent memory flush operations create duplicate content blocks due to unattended reflect and flush drift. This happens when the process prepends repeated blocks under headings like Recent Articles and Skills Built, causing structural duplicates to accumulate over repeated cycles without manual intervention.

How do I consolidate duplicate markdown headings without losing unique data?▼

To consolidate duplicate markdown headings without losing data, select a canonical block based on completeness rules, such as the most complete counts. Fold any unique information from non-canonical blocks into the canonical version before rewriting only the affected sections.

Can I automatically clean up structural memory duplicates in unattended agent workflows?▼

Yes, you can automatically clean up structural memory duplicates in unattended agent workflows. The process detects drifted single-canonical sections, rewrites them, runs scripts/memory-dedupe --fix to eliminate re-exposed pointer duplicates, and logs results while optionally notifying when drift is fixed.

What's the best way to merge multiple competing versions of a markdown section?▼

The best way to merge multiple competing versions of a markdown section is through intelligent merge and rewrite. This approach selects the most complete canonical block, folds in unique information from non-canonical blocks, and rewrites only the targeted drifted sections to maintain memory cleanup consistency.

Does running a memory deduplication script fix both structural blocks and pointer references?▼

Running a memory deduplication script fixes both structural blocks and pointer references. After structural rewrites consolidate the content blocks, the companion pointer dedupe runs scripts/memory-dedupe --fix afterward to eliminate any re-exposed pointer duplicates, keeping the memory cleanup consistent across the file.