← all repositories
zvec-ai/zvec-grep

Glue between ripgrep, BM25, and embeddings, kept strictly local

zg indexes your workspace so both terminal users and AI agents can query by meaning or exact text without sending code to the cloud.

3.4k stars TypeScript RAG · SearchCoding Assistants
zvec-grep
Velocity · 7d
+181
★ / day
star history

What it does zg is a local-first search layer—essentially well-engineered glue—that unifies ripgrep, BM25, and vector search behind a single interface. It indexes your workspace so both terminal users and AI agents can query with natural language, keywords, or regex and receive ranked, source-linked evidence that preserves file structure and exact locations.

The interesting bit Rather than treating semantic and lexical search as separate tools, zg orchestrates them in a retrieval loop: semantic discovery narrows the candidate space, then BM25 and ripgrep anchor exact identifiers. The README publishes paired A/B benchmarks suggesting this reduces agent tool calls, input tokens, and wall time compared to unassisted baselines.

Key highlights

  • Fully offline by default: indexes, files, and local embedding models stay on your machine; remote services receive data only with explicit permission.
  • One index serves both human CLI queries and agent tool calls via MCP integrations with OpenCode, Claude Code, Codex, Cursor, and others.
  • Returns compact, ranked evidence with source locations rather than dumping entire files into context.
  • Benchmarked across SWE-QA-Bench and BrowseComp-Plus, plus case studies on Pylint, Matplotlib, and Django repositories.
  • Requires Node.js 22 or newer.

Caveats

  • The provided case studies focus on Python repositories; broader language performance is claimed but not demonstrated in the sources.
  • The README admits agent outcomes vary by model and run, so your mileage depends on which agent framework and model you pair it with.
  • It leans heavily on upstream components (zvec, embedding models, ripgrep); the value is in the orchestration and local packaging.

Verdict Worth a look if you’re building agent workflows that grope around large codebases, or if you want semantic search without shipping your source to a SaaS. Skip it if you already have a tuned retrieval stack you trust, or if you need deep IDE integration rather than a CLI/agent tool.

Frequently asked

What is zvec-ai/zvec-grep?
zg indexes your workspace so both terminal users and AI agents can query by meaning or exact text without sending code to the cloud.
Is zvec-grep open source?
Yes — zvec-ai/zvec-grep is open source, released under the Apache-2.0 license.
What language is zvec-grep written in?
zvec-ai/zvec-grep is primarily written in TypeScript.
How popular is zvec-grep?
zvec-ai/zvec-grep has 3.4k stars on GitHub.
Where can I find zvec-grep?
zvec-ai/zvec-grep is on GitHub at https://github.com/zvec-ai/zvec-grep.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.