Prompt file imported from OthmanAdi/MDDesign (
.cursor/commands/memory.md). Copyright stays with the author.
/mddesign:memory
Three-tier memory operations.
Save
/mddesign:memory save <text> (default tier: scratch)
Appends to .agents/memory/scratch/<topic>.md where <topic> is the active phase id from task_plan.md, or general if no plan. Fast, low-stakes, session-scoped.
/mddesign:memory save --tier why <text>
Proposes a promotion to MemPalace WHY tier. HITL gate before write. On approval, invokes /memory-router with MemPalace save pattern.
/mddesign:memory save --tier where <text>
WHERE is populated by QMD automatically when it indexes project markdown. Explicit write is rarely needed; this sub-command exists for completeness and is rate-limited to one-line annotations.
Recall
/mddesign:memory recall <query>
Routes based on query prefix:
- "where", "which file", "find", "locate" → WHERE via
/memory-router - "why", "decision", "history", "what did we decide" → WHY via
/memory-router - Otherwise → peek at scratch first, fall back to WHERE
Always prints the source tier next to each result.
Boundaries
- Never edits
task_plan.md,findings.md, orprogress.md. - Scratch lives in
.agents/memory/scratch/. Never elsewhere. - MemPalace writes always HITL gated.
See skills/memory-layer/SKILL.md for full routing logic and conventions.