Qwen Gifts ZG: Local-First Semantic grep for You and Your AI Agent

Qwen Gifts ZG: Local-First Semantic grep for You and Your AI Agent

More

Summary

Fahd Mirza demos ZG (zVecGrep), a local-first semantic search tool open-sourced by Qwen’s team that combines ripgrep, BM25 keyword ranking, and vector-based semantic search behind a single command-line interface. The tool addresses a core problem for AI engineers and agents: traditional grep fails completely when the searcher knows what code does but not what it’s called. ZG matches by intent rather than exact string, finding a function named `hydrate_preferences` from a query about “restoring theme preferences” even with zero keyword overlap.

Installed via npm and entirely on-device (nothing leaves the machine), ZG indexes a corpus in seconds—two full novels (Alice in Wonderland and Sherlock Holmes, 433 searchable entities) in under five seconds. Mirza’s live demo shows semantic queries successfully locating relevant Sherlock Holmes passages using plain English descriptions that share no vocabulary with the actual text.

The benchmark numbers from Qwen’s own evaluations are the headline: on coding tasks with SWE-QA Bench, ZG reduced agent tool calls by 58.6% and input tokens by 47.3% while improving answer quality. On real-world repositories like pylint and matplotlib, input tokens dropped by up to 82.7% and tool calls by 83.5% on pylint alone—with accuracy holding or improving across every tested repo. For teams running AI agents over large codebases, ZG offers a meaningful reduction in both cost and latency without sacrificing retrieval quality.


📺 Source: Fahd Mirza · Published September 09, 2026
🏷️ Format: Tutorial Demo

1 Item

Channels