Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

QMD

$ qmd Community Low Risk
Tobi Lütke · Agent Bridges & Meta · MIT · macos / linux / windows

QMD (@tobilu/qmd) indexes local Markdown knowledge bases, docs, and meeting notes on-device using SQLite FTS5 BM25, local GGUF embeddings, and LLM reranking. Offers qmd search (BM25), qmd vsearch (vector), qmd query (hybrid), qmd get, -c/--collection, -n, --json, and qmd mcp.

FCRS-1.0 Score
92 /100
Excellent
Medium Confidence
Zero-Friction Install
npm install -g @tobilu/qmd
CLI vs MCP Decision Hybrid (CLI + MCP)

qmd excels both as a fast CLI (qmd search/query/get --json) and as an embedded qmd mcp server with qmd skill instructions for coding agents.

Agent-Readiness Checklist

✓ JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
✓ Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 24 / 25

First-class --json, -c/--collection, -n result limits, --files/--full, qmd status, and built-in agent skill/MCP support.

  • --json, -c/--collection, -n, qmd get, qmd status, and qmd mcp
Trust & Safety 24 / 25

100% local on-device indexing and inference with zero external network calls after GGUF model download; clean split between search and index updates.

  • Local SQLite + node-llama-cpp GGUF execution with read-only search commands
Setup & Portability 13 / 15

Installable via npm install -g @tobilu/qmd or bun install -g, though local GGUF embedding/reranker models download ~2 GB on first vector/hybrid run.

  • Published on npm (@tobilu/qmd); uses local node-llama-cpp models
Utility & Efficiency 15 / 15

Combines sub-second BM25 (search), semantic (vsearch), and hybrid reranked (query) retrieval in one local tool.

  • Three retrieval tiers (search, vsearch, query) plus doc retrieval (get)
Maintenance & Lineage 8 / 10

Actively maintained MIT-licensed project (tobi/qmd) by Tobias Lütke.

  • Active tobi/qmd repo under MIT license
Docs & Verifiability 8 / 10

Detailed README documenting CLI commands, MCP server setup, collection management, and --intent queries.

  • GitHub README documents all subcommands, flags, and MCP tools

Security, Auth & Guardrails

Auth Modes
No Auth Config File
Credential Storage

Runs 100% locally using SQLite and cached GGUF models; no external API keys required.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free, local-first, and MIT open-source.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# QMD Agent Rules
- Always pass `--json` and `-n <limit>` on `qmd search`, `qmd vsearch`, and `qmd query`.
- Use `qmd search` first for exact symbols/terms before slower `qmd query` LLM reranking.

Agent-Ready Command Recipes

Safe Read-Only Queries

Run fast BM25 keyword search as JSON
qmd search "auth token refresh" -c docs -n 5 --json

Searches the docs collection with BM25 in milliseconds and returns top 5 scored results as JSON.

Run full hybrid + reranked query and fetch document
qmd query "deployment rollback" --json -n 3

Executes query expansion, BM25 + vector retrieval, and local reranking, returning JSON snippets.

Controlled Writes & Previews

Register and index a Markdown collection
qmd collection add ./docs --name docs && qmd update && qmd embed

Adds ./docs to QMD's local SQLite index and generates local vector embeddings.

Strengths for Agents

  • + Three-tier local search (search, vsearch, query) with --json and -n output limits.
  • + Completely private on-device retrieval without third-party vector DBs or API keys.
  • + Ships both a scriptable CLI and qmd mcp server.

Caveats & Pitfalls

  • ! qmd embed and qmd query download and run local GGUF models (~2 GB), requiring decent disk/RAM.
  • ! Requires qmd update / qmd embed to reflect newly added Markdown files.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI