The Qwen developer team has open-sourced zg (zvec-grep), a local-first search utility designed to optimize code retrieval for software engineers and autonomous coding agents. Released under an Apache 2.0 license, the tool combines semantic vector search, BM25 lexical ranking, and ripgrep exact matching under a single command-line and Model Context Protocol (MCP) interface.
The tool reduces context token usage and tool calls by returning tightly scoped file spans and avoiding unnecessary preflight checks. It includes native MCP integration out of the box, supporting popular AI coding environments including Claude Code, Cursor, Codex, and OpenCode over a local loopback server.
Developers can install zg via npm on macOS, Linux, or Windows without requiring a dedicated GPU. The search engine features incremental indexing, automatic ignore-rule compliance, and a selection of built-in local and remote embedding models.
Why it matters
Drastically cuts context token costs and latency for autonomous AI coding agents.
Standardizes hybrid local code search across popular IDEs and agent frameworks via MCP.
Offers a lightweight Apache 2.0 utility designed specifically for developer agent workflows.
Source: marktechpost.com



