Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/modeled-information-format/mnemonic/qmd-setupnpx skills add modeled-information-format/mnemonic --skill qmd-setupgit clone --depth 1 https://github.com/modeled-information-format/mnemonicWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/modeled-information-format/mnemonic/qmd-setup)<a href="https://agentmods.dev/skills/modeled-information-format/mnemonic/qmd-setup"><img src="https://agentmods.dev/badge/skills/modeled-information-format/mnemonic/qmd-setup.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00035 | $0.00691 |
| Opus 5 | $0.00017 | $0.00345 |
| Sonnet 5 | $0.00007 | $0.00138 |
| Haiku 4.5 | $0.00003 | $0.00069 |
Grade A, and why
qmd-setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.
QMD Setup Skill
Bootstrap @tobilu/qmd for semantic search over mnemonic memories.
Prerequisites
- Node.js >= 22 —
node --version - qmd CLI —
npm i -g @tobilu/qmd
Automated Setup
Run the setup script:
bash tools/qmd-setup.sh
The script will:
- Check prerequisites (Node.js >= 22, qmd installed)
- Resolve
MNEMONIC_ROOTfrom~/.config/mnemonic/config.json - Discover memory roots dynamically:
{MNEMONIC_ROOT}/{org}/→ collectionmnemonic-{org}{MNEMONIC_ROOT}/default/→ collectionmnemonic-default.claude/mnemonic/→ collectionmnemonic-project
- Run
qmd update(index) +qmd embed(embeddings) - Validate with
qmd statusand a test search
Note: First
qmd embeddownloads ~2 GB of GGUF models.
Manual Setup
If you prefer to set up manually:
MNEMONIC_ROOT is resolved from ~/.config/mnemonic/config.json (defaults to
~/.local/share/mnemonic). Adjust the paths below to match your config:
# 1. Register collections (replace paths with your MNEMONIC_ROOT)
qmd collection add "${MNEMONIC_ROOT:-$HOME/.local/share/mnemonic}/zircote/" --name mnemonic-zircote
qmd collection add "${MNEMONIC_ROOT:-$HOME/.local/share/mnemonic}/default/" --name mnemonic-default
qmd collection add "$(git rev-parse --show-toplevel)/.claude/mnemonic/" --name mnemonic-project # if exists
# 2. Build index
qmd update
# 3. Generate embeddings (downloads models on first run)
qmd embed
# 4. Validate
qmd status
qmd search "test" -n 3
After Setup
Use search commands:
| Command | Type | Requires |
|---|---|---|
qmd search "query" |
BM25 keyword | qmd update |
qmd vsearch "query" |
Semantic vector | qmd embed |
qmd query "query" |
Hybrid (BM25 + vector) | Both |
Scope to a specific collection:
qmd search "auth" -c mnemonic-zircote # org memories only
qmd search "auth" -c mnemonic-project # this repo only
qmd search "auth" # all collections
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 91 lines · 35 tokens per session scan A a596b7e33c19
qmd-setup is a skill published in the GitHub repository modeled-information-format/mnemonic (23 stars, last pushed 1mo ago), licensed MIT. It adds 35 tokens to every session and 691 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
reflect
Deep reflection skill - read memory and context, decide whether there is something worth sending.
forgetful-remember
Remember knowledge worth keeping — a decision made, a solution found, a preference stated, a pattern confirmed. Use when work surfaces something future sessions will need, or the user asks to remember something. Routes content to the right store (memory, document, code artifact, entity, procedure, file) and enforces…
audhd-executive-function
AUDHD executive function accommodations. Apply to all output the founder will act on.
learn-from-correction
Propose a principle edit to a skill or persona file based on a (agentoutput, humanoutput) correction pair. Outputs a proposal markdown for human review - never auto-edits the target file.
research-mode
Anti-hallucination research mode. Toggle on to enforce citation requirements, source grounding, and "I don't know" behavior. Toggle off for creative work.
ori-memory
Persistent agent memory with learning retrieval. Knowledge graph on markdown files — capture insights, decisions, research, and learnings during work, then retrieve them weeks or months later. Use when knowledge is too valuable to lose but too much to inject into every prompt.