reflect:consolidate

Merge orphaned worktree memory directories into a single .agents/MEMORY.md file.

2|1|Updated Jun 19, 2026
One-click install
npx skills add https://github.com/stevengonsalvez/ainb-reflect-memory --skill reflect-consolidate
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: reflect:consolidate
Source: https://github.com/stevengonsalvez/ainb-reflect-memory/tree/main/plugin/skills/consolidate
Command: npx skills add https://github.com/stevengonsalvez/ainb-reflect-memory --skill reflect-consolidate

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill consolidates project-level memory, merging orphaned worktree memory directories into a single .agents/MEMORY.md file, reducing duplicates and proposing cleanup, without indexing into the global knowledge base.

Core Features & Use Cases

  • Merge Orphaned Directories: Combine scattered memory directories into one, maintaining project-specific context.
  • Deduplication: Eliminate redundant entries to streamline the knowledge base.
  • Orphan Cleanup: Propose removal of orphaned directories to keep the project tidy.
  • Use Case: Ideal for post-worktree cleanup, ensuring .agents/MEMORY.md is up-to-date and free of duplicates before running a global index.

Quick Start

Run /reflect:consolidate to merge and clean up memory directories for the current project.

Frequently Asked Questions about reflect:consolidate

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

FAQPage Schema
How do I consolidate project memory from orphaned worktree directories?▼

Project memory consolidation merges scattered worktree memory directories into a single .agents/MEMORY.md file, eliminating duplicate entries and proposing cleanup for orphaned folders to maintain project-specific context.

What is the best way to deduplicate AI coding assistant memory files?▼

Deduplicating AI coding assistant memory files requires merging orphaned worktree directories into a unified .agents/MEMORY.md file, removing redundant project-specific entries to streamline the knowledge base.

When should I run memory consolidation for my AI coding assistant?▼

Run memory consolidation during post-worktree cleanup to ensure the .agents/MEMORY.md file is up-to-date and free of duplicates before executing a global index on the project knowledge base.

Does memory consolidation index entries into the global knowledge base?▼

Memory consolidation does not index entries into the global knowledge base; it strictly merges and deduplicates project-specific memory into a local .agents/MEMORY.md file and proposes orphan directory cleanup.

How do I clean up orphaned worktree directories after merging project memory?▼

After merging project memory, the consolidation process proposes removal of orphaned worktree directories to keep the project tidy and ensure the .agents/MEMORY.md file remains the single source of truth.