zg unifies ripgrep, BM25, and vector search behind one local-first interface

AI-generated summary of reporting by GitHub Opensource Projects. Read the original for the full story.

Why it matters

Developers and AI agents can now search one indexed workspace three ways, exact, keyword-ranked, semantic, instead of maintaining ripgrep, BM25 and vector store setups separately.

Read this as

zg (short for zvec-grep) is a free search tool that combines three ways of searching into one program: matching exact words, ranking results by relevance, and finding similar meanings. Normally people install separate tools for each. It runs on your own computer, and the article notes it requires Node.js 22 or newer.

zg is an open-source search layer that merges ripgrep-style text matching, BM25 relevance ranking, and vector search behind one command, cutting the number of search tool calls an AI agent must make, and therefore tokens and API cost. It runs locally by default, sending nothing off-machine unless permitted, which matters for teams handling sensitive code. It is free on GitHub; no commercial pricing or adoption figures are given.

zg (zvec-grep) unifies three retrieval modes, ripgrep exact/regex matching, BM25 ranking, and vector similarity search, over a single workspace index built on zvec. It is TypeScript on Node.js 22+, with an independent Rust implementation in the rust/ directory, and ships a CLI plus an agent integration returning ranked, source-linked results. It preserves source locations across code, documents and structured data; no benchmark numbers are provided.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

zg zvec ripgrep Node.js Rust GitHub

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading

datasette-charts 0.5a0

Datasette Charts 0.5a0 adds calendar heatmaps, box plots and active-over-time charts, enabling richer data visualisation directly in the browser without extra libraries.