Urgent.News

What's breaking now, across thousands of outlets.

Tech

zvec-grep (zg): A Local-First Hybrid Search Engine for Humans and AI Agents

The Evolution of Terminal Search: Meet zvec-grep (zg) For years, ripgrep has been the undisputed champion of developer code search—offering instant, multi-threaded regex matching across massive directory trees. Yet traditional grep tools share a fundamental limitation: they require the user to anticipate the exact string literal, variable name, or regex pattern. When developers or AI coding…

For years, ripgrep has been the go-to tool for developers seeking to search through massive codebases swiftly, offering instant multi-threaded regex matching. However, traditional grep tools suffer from a significant limitation—they necessitate users to know the exact string literals, variable names, or regex patterns ahead of time.

This requirement leads to cumbersome guessing processes when developers or AI coding agents explore unfamiliar codebases, attempting to locate components or understand system architecture. Enter zvec-grep (zg), an open-source search engine created by zvec-ai, harnessing Alibaba's high-performance zvec vector library. zg unifies the strengths of ripgrep, BM25, and local vector search into a single command-line tool, seamlessly integrating with AI agent environments. zg stands out as a local-first search layer, catering symmetrically to both human developers and autonomous AI coding agents.

It indexes source code, documents, and configuration files locally, facilitating queries that blend the exactness of keyword matching with the discovery capabilities of semantic embeddings. zg's key features include Hybrid Search (Semantic + BM25 + Ripgrep), Agent-Native Context Optimization, 100% Local & Privacy-Preserving capabilities, and Dual CLI and MCP Integration.

By delivering lightning-fast results while preserving user privacy, zg revolutionizes the way developers and AI agents navigate and interact with code repositories.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Stop Wasting LLM Tokens! I Built a Rust CLI to Prune JS/TS Codebases by 80% 🦀🚀

┌─────────────────────────────────────────────────────────────────────────────┐ │ THE "INFINITE CONTEXT" TRAP │ ├──────────────────────────────┬──────────────────────────────────────────────┤ │ 1. Attention Degradation │ Lost-in-the-Middle: critical interfaces get │ │ │ buried under repetitive DOM noise and loops.

  • Rust CLI tool 'urai-ecma' prunes JS/TS codebases by up to 82.7%
  • Tool retains only critical AST nodes for understanding application architecture
  • Achieves 209,757-token reduction to 36,000 tokens in milliseconds

More from Saturday 12 September →