AIToday
Large Language ModelsAI Coding AssistantsGIGAZINE AIPublished: Oct 25, 2026, 01:00 JST

zg launches local-first search layer on Alibaba's zvec

Send on LINE
zg launches local-first search layer on Alibaba's zvec

3 Key Points

  1. What happened

    zg (zvec-grep) combines ripgrep, BM25 keyword ranking and vector-based semantic search into one local index you can query from the CLI or hand to an AI agent, installed via npm on Node.js 22 or later.

  2. Why it matters

    A single index means agents and people search the same files, and the tool's own benchmarks on pylint, matplotlib and django report savings in input tokens, tool calls and wall-clock time, with answer quality improving notably on pylint.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

Context & Analysis

The tool's pitch rests on a split that has become familiar in agent work: the same corpus has to be readable by a person typing a question and by a model that would otherwise burn tokens reading and re-reading files. zg's answer is to build one index that supports keyword matching, ripgrep-style exact and regex checks, and semantic ranking, then let either caller query it. The benchmark graphs shown for pylint, matplotlib and django point in the same direction — fewer input tokens, fewer tool calls, less wall-clock time, and answer quality that improved markedly on pylint and slightly on the other libraries.

The walkthrough suggests how it behaves in practice. Indexing two public-domain texts and asking a riddle-like question about unseen marks returned three ranked blocks from the Sherlock Holmes file, tagged as matched by both keyword and vector search, with line ranges and a "fresh" status. The same question routed through OpenCode produced a specific answer naming the story and the animal, with line-number citations.

On privacy, the design keeps files, indexes and local models on the user's machine and only reaches a remote embedding model with permission, which may matter to teams weighing whether search indexes can leave a laptop. Whether the token and time savings hold at repository scale is not shown in the benchmarks presented.

FAQ
What do I need to install zg?
zg requires Node.js 22 or later and installs with the command npm install -g @zvec/zvec-grep. You then build an index with a command such as zg index --embedding local/potion-retrieval-32m.
Does zg send my files to the cloud?
Its design keeps files, indexes and local models on the user's machine, and data is sent to a remote embedding model only when the user permits it.
How did the agent-side search work in the test?
The test routed an agent query through OpenCode, which without a specified model used NVIDIA Nemotron 3 Ultra (free), and the agent identified the Sherlock Holmes story, the creature as a mongoose named Teddy, and cited line numbers from the local file.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleS&P 500 slips 0.5% on AI spending worries; Meta drops 9.4%