← ClaudeAtlas

reflectconsolidatelisted

Project-level memory consolidation. Merges orphaned worktree memory directories into a single .agents/MEMORY.md for the current project. Deduplicates, sections, and proposes cleanup of orphan dirs. Does NOT index into the global knowledge base — use reflect:ingest for that.
stevengonsalvez/agents-in-a-box · ★ 14 · AI & Automation · score 77
Install: claude install-skill stevengonsalvez/agents-in-a-box
# Reflect: Consolidate — Project Memory Cleanup Merge orphaned worktree memory directories for the current project into a single, tidy `.agents/MEMORY.md`. This is a **project-level** operation — it does not touch the global knowledge base. **For global indexing** (GraphRAG + QMD), use `/reflect:ingest` after consolidating. ## When to Use - After deleting git worktrees - When multiple worktree sessions left orphaned memory dirs - To keep `.agents/MEMORY.md` current and deduped - Before running `/reflect:ingest` (consolidate first, then index) ## What It Does 1. Discovers orphaned worktree memory dirs for the current project 2. Reads all MEMORY.md files from those dirs 3. Deduplicates entries (fuzzy — same concept = skip) 4. Routes skill-worthy content to existing skills 5. Writes consolidated `.agents/MEMORY.md` (200-line max) 6. Ensures agent config references it 7. Proposes cleanup of orphaned dirs ## What It Does NOT Do - Does NOT index into GraphRAG or QMD (that's `reflect:ingest`) - Does NOT scan other tools (Codex, Copilot, Gemini) — project-scoped only - Does NOT archive originals to `~/.learnings/` — that's ingest's job ## Pipeline ### Step 1: Discover Project Identity ```bash python3 {{HOME_TOOL_DIR}}/skills/reflect/scripts/memory_discovery.py project-id # -> e.g. "shotclubhouse" ``` ### Step 2: Find Orphaned Memory Dirs ```bash python3 {{HOME_TOOL_DIR}}/skills/reflect/scripts/memory_discovery.py discover --provider claude # Lists all worktree memory dir