Help us improve
Share bugs, ideas, or general feedback.
From memory
Organizes auto-memory space: prunes stale files, condenses MEMORY.md, optionally migrates to khive recall. Use when MEMORY.md >150 lines or memory accumulates.
npx claudepluginhub ohdearquant/lionagi --plugin memoryHow this skill is triggered — by the user, by Claude, or both
Slash command
/memory:migrate-memoryThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Maintain the auto-memory space: prune stale files, condense MEMORY.md index,
Organizes, extracts, prunes, and verifies Claude Code persistent memory files: MEMORY.md index, topic extraction, staleness detection, accuracy checks. Use near 200-line limit, after insights, or project changes.
Reviews, consolidates, and prunes Claude Code memory files under ~/.claude/projects/*/memory/. Run after major refactors, every 5+ sessions, or when memory quality degrades.
Optimizes Claude Code memory files in 4 interactive steps: removes duplicates by cross-referencing CLAUDE.md/rules, migrates entries to persistent configs, compresses, and validates with cleanup. Run in main conversation to declutter memory.
Share bugs, ideas, or general feedback.
Maintain the auto-memory space: prune stale files, condense MEMORY.md index, and optionally migrate content to khive persistent memory.
MEMORY.md (index, <200 lines) ← loaded every session
└→ *.md files (detail) ← loaded on demand via links
└→ khive memory (semantic search) ← recalled via memory.recall()
All three layers coexist. MEMORY.md is the routing table — it tells Leo what exists and where to find detail. Individual files hold the content. khive memory is for cross-session semantic search.
MEMORY_DIR="$(find ~/.claude/projects -path '*/memory/MEMORY.md' -exec dirname {} \;)"
ls -lhS "$MEMORY_DIR"/*.md
wc -l "$MEMORY_DIR/MEMORY.md"
For each file (excluding MEMORY.md):
Use an Explore agent for bulk reading if >20 files.
Stale files: Delete + remove from MEMORY.md index. Consolidate: Merge related files → update MEMORY.md link. Dangling refs: Create missing files or remove broken links. Bloated MEMORY.md: Move detail into individual files, keep 1-line pointer. Outdated info: Update dates, day counts, completed milestones.
Target: <180 lines (safe margin under 200).
Techniques:
wc -l MEMORY.md < 200If khive memory is available and desired:
mcp__khive__memory(
action="remember",
content="[name]: [content]",
memory_type="semantic|episodic",
importance=0.70-0.85,
source="auto-memory-migration-YYYYMMDD"
)
Tag with consistent source for rollback via forget_batch.