qmd
persistent project memory via qmd. use memory_* tools for durable facts, decisions, and progress. use qmd_* tools for repo/docs lookup.
qmd memory mode
use this whenever user asks about prior decisions, long-running tasks, or "remember this".
rule
do not load all memory. retrieve only relevant memory with memory_search.
workflow
- for fresh work: use normal repo tools (
read,edit,bash) +qmd_queryfor external indexed docs. - before major action, run
memory_searchwith task-specific query. - when user gives durable preference/decision, call
memory_save. - after confusion or contradiction, run
memory_searchagain with tighter query. - if memory stale/wrong, fix by
memory_forget+memory_savecorrected note.
what to save
save only high-value durable items:
- user preferences (style, tooling, constraints)
- architectural decisions
- recurring pitfalls + fixes
- project conventions
do not save:
- trivial temporary chatter
- data duplicated in source files unless it is a distilled decision
query patterns
- exact term known:
qmd_query(mode="search") - conceptual unknown term:
qmd_query(mode="query")orqmd_query(mode="vsearch") - personal/project memory recall:
memory_search
maintenance
- if user updates deps/docs, suggest
qmd_update(andqmd_embedif vector working) - if memory gets noisy, use
memory_forgeton bad chunks - use
memory_statuswhen behavior seems off