Michal Sutter writes that the Qwen Developer team has released zg (zvec-grep), an open-source local-first search layer designed to streamline how coding agents find information within a workspace. By unifying semantic search, BM25, and ripgrep under a single interface, it reduces tool calls and token usage for LLM agents that would otherwise struggle with manual context assembly or imprecise keyword matching.
- The package is available via npm as `@zvec/zvec-grep` under an Apache 2.0 license.
- It supports four retrieval routes: a hybrid default, BM25 (`--fts`), vector similarity (`--vector`), and literal/regex matching (`--rg`).
- An MCP (Model Context Protocol) integration allows seamless use with tools like Claude Code, Cursor, and Codex.
- Embeddings run locally by default using models such as `potion-code-16m-v2`, though remote Qwen endpoints are also supported via explicit authorization.
- Benchmarks suggest zg can cut tool calls and input tokens for coding agents by approximately 40% to 50%.