qmd-setup

qmd-setup is a skill for Claude Code, Codex from modeled-information-format/mnemonic. It costs 35 tokens per session (691 once invoked), scanned A, original, MIT.

A one-time setup guide for QMD, a command-line tool that provides meaning-based search over mnemonic memories. It registers memory folders, builds a search index, creates embeddings, and checks that searching works.

In plain words
What is it for?
Use it to prepare organization-wide, default, and project memory collections for meaning-based searches. The first embedding run downloads about 2 GB of model files.
Why use it?
It removes the manual work of connecting memory folders to semantic search and verifying the setup.

Skill for Claude CodeCodex

Part of the mnemonic plugin — 10 skills, 14 commands, 4 agents, 1 hook, 1 plugin shipped together

Install

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.

agentmods
npx agentmods add skills/modeled-information-format/mnemonic/qmd-setup
Any agent
npx skills add modeled-information-format/mnemonic --skill qmd-setup
Clone the repo
git clone --depth 1 https://github.com/modeled-information-format/mnemonic

Made for: Claude Code, Codex.

Or install mnemonic, the plugin that ships this one along with the rest of its 10 skills, 14 commands, 4 agents, 1 hook, 1 plugin.

Wrote 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.

agentmods badge for qmd-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/modeled-information-format/mnemonic/qmd-setup.svg)](https://agentmods.dev/skills/modeled-information-format/mnemonic/qmd-setup)
Your own site
<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>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 691 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 4d ago against content hash a596b7e33c19, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

skills/qmd-setup/SKILL.md · 91 lines

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 >= 22node --version
  • qmd CLInpm i -g @tobilu/qmd

Automated Setup

Run the setup script:

bash tools/qmd-setup.sh

The script will:

  1. Check prerequisites (Node.js >= 22, qmd installed)
  2. Resolve MNEMONIC_ROOT from ~/.config/mnemonic/config.json
  3. Discover memory roots dynamically:
    • {MNEMONIC_ROOT}/{org}/ → collection mnemonic-{org}
    • {MNEMONIC_ROOT}/default/ → collection mnemonic-default
    • .claude/mnemonic/ → collection mnemonic-project
  4. Run qmd update (index) + qmd embed (embeddings)
  5. Validate with qmd status and a test search

Note: First qmd embed downloads ~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

Read the full file on GitHub · 91 lines

Changes

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.

  1. 4d ago First seen · 91 lines · 35 tokens per session scan A a596b7e33c19

Subscribe to this mod's changes

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.