How this command is triggered — by the user, by Claude, or both
Slash command
/qmd:cleanupThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
Run `qmd cleanup`. This performs 4 steps sequentially: 1. Delete all LLM cache entries from the llm_cache table (cached query expansion and reranking results from previous searches). Reports count cleared 2. Remove orphaned vectors (embeddings with no corresponding document reference, vectors for deleted or changed documents). Reports count removed or "No orphaned embeddings to remove" 3. Delete inactive documents (records with active=0, soft-deleted during indexing when files are removed or modified). Reports count removed if > 0 4. Run SQLite VACUUM to reclaim disk space from deleted rec...
Run qmd cleanup. This performs 4 steps sequentially:
Each step shows a green checkmark on completion. Note that searches will be slower after cleanup until the LLM cache rebuilds through natural query usage.
npx claudepluginhub ramonclaudio/skills --plugin qmd/updateRuns intelligent maintenance on memory database and tool resource registry — scans for duplicates, stale items, and boosts relevance, then reindexes the registry.
/cleanup-contextRuns a cleanup script that permanently deletes old context files (file history, logs, sessions, projects, statsig, todos) to free disk space and improve performance.
/agent-brain-resetClears all indexed documents from the Agent Brain server, removing vector embeddings and BM25 index data. Requires confirmation unless --yes is passed.
/consolidate-memoryRuns maintenance on a persistent memory vault — merges duplicate logs, archives stale entries, fixes broken backlinks, and normalizes the index. Supports dry-run preview before applying changes.
/purgeWipes Anchored memory via soft-delete (recoverable for 30 days); supports --hard flag for full database reset with automatic backup.
/ygg-qualityAudits Yggdrasil memory quality by checking for duplicates, leakage, and truncated records, and recommends concrete fixes.