Alibaba Zvec team open-sources zg, a unified local search tool for developers and AI agents

Alibaba's Zvec team open-sourced zg (zvec-grep), a local-first search tool that combines semantic search, BM25, hybrid retrieval, and ripgrep exact matching into a single CLI/MCP entry point. It addresses the limitation where agents using natural language intents struggle with keyword-based tools like rg when function names differ from descriptions. The tool performs structure-aware extraction, splitting code by symbols and documents by sections into independently addressable units. All scanning, extraction, embedding, indexing, and retrieval runs locally with 11 built-in embedding models. Official benchmarks show over 50% reduction in tool calls and approximately 50% reduction in input tokens on SWE-QA-Bench, with a Judge score improvement of +1.50.