qmd is a local-first CLI search engine by Tobias Lütke that indexes your markdown notes, docs, and knowledge bases and searches them with a hybrid BM25 plus vector plus LLM-reranked pipeline, designed for humans and agents alike.
qmd is the argument that a single maintainer can ship production-grade local retrieval in one binary-plus-SQLite, and that most agent RAG does not need a framework, a server, or a cloud.
What it is #
A TypeScript CLI (@tobilu/qmd, Node 22+ or Bun) with three modes: search for BM25 keyword, vsearch for semantic vectors, and query for the full hybrid stack.
The stack is real retrieval engineering running entirely on-device: SQLite FTS5, sqlite-vec with a 300M embedding model, LLM query expansion with typed sub-queries, reciprocal rank fusion, and a 0.6B cross-encoder reranker, about 2 GB of GGUF models downloaded on first use.
Markdown-aware chunking around 900 tokens with optional tree-sitter chunking for code; storage is one SQLite file in your cache directory.
Agent surfaces include --json output, doc-id and line-range retrieval, an MCP server (stdio and HTTP), an SDK, and a Claude Code plugin.
MIT, by Tobias Lütke (Shopify CEO), who authored about three quarters of the commits and confirmed the design intent on Hacker News.
Status #
Young with unusual traction: 30,421 stars as of 2026-10-18, 1,977 forks and 268 open issues and PRs as of 2026-11-22, created 2025-12-08.
Release v2.9.0 (published 2026-11-18, dated 2026-11-17 in the notes) shipped the whole train that had accumulated since v2.8.3: document processors, metadata filtering with a shared recursive filter AST across every search surface, metadata discovery, a collection-partitioned vector index, remote model support (the OpenAI embeddings processor and the System One rerank integration from the 2026-11-15 contributions wave, with collection processors keeping processor approval in the config digest), a llama.cpp update, and a hardening pass over concurrent indexing and the MCP lifecycle (bounded MCP shutdown with a five-second grace period, streamed MCP event responses, serialized trust-record and YAML-config mutations with atomic publication, crash-recoverable sidecar locks, CJK shadow-rebuild reconciliation, and rename markers that fail closed), including a security fix making MCP stdio and HTTP startup enforce project-local config trust before model selection, ignoring unapproved model URIs and remote embedding credential environment variable names; main’s 2026-11-18 commits since the release are test-hardening fixes (daemon race fixtures, deterministic cross-process lock tests, a removed brittle Nix assertion), followed by the 2026-11-19 to 11-20 fix keeping pooled embedding input in a single evaluation batch (pull request #1129 merged 2026-11-20). The maintainer concentration is the story: one high-profile author shipping v1 through v2.8 in nine months, with community PRs around the edge.
Strengths #
- The hybrid pipeline is the same architecture pattern production search uses, running locally with small models instead of an API.
- Agent-first surface area: JSON output, precise line-range retrieval, MCP, and an SDK, so results drop straight into a context window.
- Disciplined maintenance: a
qmd benchcommand for measuring precision, recall, and MRR per backend, plus prompt-security fixes documented in the changelog. - Fully local, so notes and knowledge bases never leave the machine.
Cautions #
- The footprint is not light: Node 22+, roughly 2 GB of models, Homebrew SQLite on macOS, and documented Windows and Metal rough edges.
- The v2.8.3 security notes disclose three past vulnerabilities, including arbitrary command execution from a cloned repo’s index config and DNS rebinding against the HTTP MCP server, all fixed, all indicative of an agentic tool’s attack surface.
- Quality claims come from the project’s own fixtures, with no independent evaluation, and an open bug reports the reranker wedging the MCP daemon on large documents.
- Single-maintainer risk with repeated behavior changes across the v2 line.
Pricing #
Free and open source under MIT, fully local, no cloud component. The costs are disk and local compute.
Compared to #
- Plain grep and ripgrep: instant and exact when you know the tokens; qmd wins when the answer does not contain your query words and agents need ranked, scored snippets.
- LangChain and LlamaIndex: frameworks for building custom retrieval products; qmd is a finished zero-code product, and the right choice when local files are the whole corpus.
- Semantic code search: the workspace-index pattern for codebases; qmd targets prose and notes, and the two compose rather than compete.
Bottom line #
Recommended for engineers whose agents need to find things in personal docs, meeting notes, and knowledge bases without sending them anywhere, and who can afford 2 GB of models. Not for code-symbol search (use grep-class tools), constrained machines, or teams needing vendor support.
Changes #
- 2026-08-30 - Created as a context-engines note on Tobias Lütke’s local hybrid search, with the security-fix history recorded.
- 2026-09-18 - Refreshed the growth numbers (29,833 stars, 1,860 forks, 149 open issues and PRs); latest release remains v2.8.3, with no push since 2026-09-09.
- 2026-09-25 - Refreshed the growth numbers (30,010 stars, 1,873 forks, 163 open issues and PRs); latest release remains v2.8.3, with no push since 2026-09-09.
- 2026-09-27 - Refreshed the growth numbers (30,063 stars, 1,878 forks, 185 open issues and PRs); latest release remains v2.8.3, with no push since 2026-09-09.
- 2026-10-07 - Added the tobi/qmd star history chart to the Status section.
- 2026-10-20 - Full rotation re-verification: every cited URL re-fetched and intact; v2.8.3 remains the latest release with the unreleased train (metadata filtering and discovery, collection-partitioned vectors) recorded in Status.
- 2026-10-27 - Full rotation re-verification: every cited URL re-fetched and intact; v2.8.3 remains the latest release with the unreleased train on main unchanged and no push since 2026-10-15.
- 2026-11-06 - Full rotation re-verification: every cited URL re-fetched and intact (repository page and README, CHANGELOG, GitHub API, and the author’s HN thread); v2.8.3 remains the latest release with the unreleased train on main unchanged (metadata filtering and discovery, collection-partitioned vectors) and no push since 2026-10-15.
- 2026-11-13 - Full rotation re-verification: every cited URL re-fetched and intact (repository page and API, README, CHANGELOG, and the author’s HN thread); v2.8.3 remains the latest release, the unreleased train on main unchanged in substance (metadata filtering and discovery, collection-partitioned vectors, community fixes) with two more unreleased fixes since the last look, and no push since 2026-10-15.
- 2026-11-16 - Recorded the 2026-11-15 contributions wave joining the unreleased train (an OpenAI embeddings processor, a System One rerank integration, collection processors, and a fix keeping processor approval in the config digest) and refreshed the counts (1,953 forks, 258 open issues and PRs, pushed 2026-11-15); v2.8.3 remains the latest release.
- 2026-11-19 - Recorded release v2.9.0 (2026-11-18) shipping the accumulated unreleased train (document processors, metadata filtering, collection-partitioned vectors, remote model support, the concurrent-indexing and MCP-shutdown hardening pass, and the MCP startup config-trust security fix), with post-release main commits reading as test hardening; forks and open issues and PRs refreshed (1,967 and 263).
- 2026-11-22 - Recorded main’s post-release 2026-11-19 to 11-20 fix (pooled embedding input kept in a single evaluation batch, pull request #1129) and refreshed the counts (1,977 forks, 268 open issues and PRs, pushed 2026-11-20); v2.9.0 remains the latest release.
- 2026-12-03 - Full rotation re-verification: every cited URL re-fetched and intact (the star-history chart answered 403 in the batch and 200 image/svg+xml on a solo retry, the repository unmoved), the repository unchanged since the 2026-11-22 check (main at 8be0c42, 2026-11-20; v2.9.0 still the latest release); no figure moved.
See also #
- Context Engines Feature Matrix - the category comparison this note joins
- Retrieval Feature Matrix - where the RAG patterns sit
- Semantic code search - the codebase-side counterpart
- LlamaIndex - the framework alternative
References #
https://github.com/tobi/qmd - repository, description, license
https://raw.githubusercontent.com/tobi/qmd/HEAD/README.md - architecture, install, models, MCP and SDK surfaces
https://raw.githubusercontent.com/tobi/qmd/HEAD/CHANGELOG.md - release cadence, security fixes, platform issues
https://api.github.com/repos/tobi/qmd - exact stars, forks, and dates as of 2026-10-18
https://news.ycombinator.com/item?id=46689289 - the author on design intent and local-first trade-offs