# zvec-ai/zvec-grep

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/zvec-ai-zvec-grep).**

_How this analysis was created: the description and tags below were written by an AI model that read this project's README and public documentation pages; stars, license and language come straight from the GitHub API. The model does not read the source code._

4,290 stars · 262 forks · Rust · Apache-2.0

## Links

- GitHub: https://github.com/zvec-ai/zvec-grep
- awesome-repositories: https://awesome-repositories.com/repository/zvec-ai-zvec-grep.md

## Topics

`ai-agents` `bm25` `cli` `code-search` `full-text-search` `local-first` `mcp` `ripgrep` `semantic-search` `vector-search`

## Description

zvec-grep is a command-line search tool that indexes a folder of code, documents, and structured data once and returns ranked, source-linked passages from the terminal. It runs on macOS, Linux, and Windows and is built for coding agents to pick up on their own, though people can also preview ranked passages directly. Each hit maps back to exact source line coordinates, with short or full previews and highlighted matches.

Search combines meaning-based and keyword matching: keyword ranking and vector similarity are fused into a single list, and each query can run in hybrid, full-text, or vector mode. Semantic findings can then be confirmed with exact text or regular-expression matching. Embeddings are computed by local models by default, so files and indexes stay on the machine. Remote embedding calls are blocked until a workspace-level permission is granted, and that permission can be revoked without a restart. API keys supplied at indexing time are encrypted inside the index manifest, with the decryption key stored beside the workspace.

The tool also exposes search and index operations to AI agents as an MCP server, showing freshness headers and diagnostics ahead of results. A background watcher and daemon keep the index in step with file changes, so queries can either wait for fresh results or return immediately with a freshness status. Scan rules cover ignore files, glob and type filters, depth and size limits, hidden files, and symlink handling, and are saved per workspace.

The repository additionally includes a benchmark harness. It compares retrieval quality across search modes, product versions, and commits, measures how search access changes agent answers and resource use, and can run in CI with local embeddings so no model API keys are needed.

## Tags

### Artificial Intelligence & ML

- [Agent Code Search Tools](https://awesome-repositories.com/f/artificial-intelligence-ml/agent-code-search-tools.md) — Gives coding agents a fast local search tool returning ranked, source-linked passages from code and documents with fewer tool calls and tokens. ([source](https://github.com/zvec-ai/zvec-grep/blob/main/README.md))
- [Semantic Passage Search](https://awesome-repositories.com/f/artificial-intelligence-ml/semantic-passage-search.md) — Finds passages by semantic similarity instead of only keywords, then lets exact or regex matching confirm the hits. ([source](https://github.com/zvec-ai/zvec-grep#readme))
- [Agent Search Impact Evaluations](https://awesome-repositories.com/f/artificial-intelligence-ml/agent-search-impact-evaluations.md) — Compares agent answers and resource use with and without search access, using question sets over code or a fixed document corpus.
- [Local Embedding Pipelines](https://awesome-repositories.com/f/artificial-intelligence-ml/embeddings/local-embedding-pipelines.md) — Computes embeddings with local models on the user's machine by default, keeping files and indexes private unless a remote endpoint is approved.
- [Model Context Protocol Servers](https://awesome-repositories.com/f/artificial-intelligence-ml/model-context-protocol-servers.md) — Exposes search and index operations to AI agents as callable MCP tools, showing freshness headers and diagnostics ahead of results.
- [Search Tool Servers for Agents](https://awesome-repositories.com/f/artificial-intelligence-ml/search-tool-servers-for-agents.md) — Exposes search and index tools to AI agents over MCP, showing freshness headers and diagnostics before results and requiring consent before data leaves the machine. ([source](https://github.com/zvec-ai/zvec-grep/tree/main/rust))

### Development Tools & Productivity

- [Workspace Search CLIs](https://awesome-repositories.com/f/development-tools-productivity/workspace-search-clis.md) — Indexes a folder of code and documents once and returns ranked, source-linked passages from the terminal on macOS, Linux and Windows.
- [AI Agent Codebase Search](https://awesome-repositories.com/f/development-tools-productivity/project-search-tools/ai-agent-codebase-search.md) — Gives coding agents a search tool that returns ranked, source-linked passages across a project, reducing tool calls, token use and noise.
- [Workspace Access for External Agents](https://awesome-repositories.com/f/development-tools-productivity/ai-assistant-integrations/mcp-and-agent-skills/workspace-access-for-external-agents.md) — Lets coding agents and people index a workspace once and query it from the command line on macOS, Linux, and Windows. ([source](https://github.com/zvec-ai/zvec-grep#readme))
- [Structure-Aware Chunking](https://awesome-repositories.com/f/development-tools-productivity/codebase-indexing/structure-aware-chunking.md) — Splits code, documents, and structured data into passages that keep document structure and map each hit to exact source line coordinates.
- [Shared Code Index Daemons](https://awesome-repositories.com/f/development-tools-productivity/developer-utilities-libraries/developer-tools/version-control-ecosystems/github-integrations/automated-pull-request-reviewers/pull-request-analysis-agents/interactive-code-q-a/shared-code-index-daemons.md) — Runs a background watcher and daemon that apply file changes to the index, so queries can wait for fresh results or return with a freshness status.

### Data & Databases

- [Hybrid Search Engines](https://awesome-repositories.com/f/data-databases/hybrid-search-engines.md) — Fuses keyword ranking and vector similarity into one ranked list, with hybrid, full-text or vector mode selectable per query.
- [Hybrid Vector and Full-Text Search](https://awesome-repositories.com/f/data-databases/hybrid-vector-and-full-text-search.md) — Fuses keyword ranking and vector similarity into one ranked list, with hybrid, full-text, or vector mode selectable per query.
- [Semantic Code Search Engines](https://awesome-repositories.com/f/data-databases/semantic-search/semantic-code-search-engines.md) — Finds passages by meaning and keyword across code, documents and structured data from the command line, then confirms hits with exact or regex matching.
- [Freshness-Responsiveness Balancers](https://awesome-repositories.com/f/data-databases/change-detection-engines/freshness-monitoring/freshness-responsiveness-balancers.md) — Uses a watcher and daemon so queries can wait for fresh results or return immediately with a reported freshness status. ([source](https://github.com/zvec-ai/zvec-grep/tree/main/rust))
- [Mixed Content Search](https://awesome-repositories.com/f/data-databases/mixed-content-search.md) — Searches code, documents, and structured data in one workspace, keeping document structure and exact source locations in each hit. ([source](https://github.com/zvec-ai/zvec-grep/blob/main/README.md))
- [Private Search Indexing](https://awesome-repositories.com/f/data-databases/search-indexing-technologies/search-indexing/search-and-indexing/private-search-indexing.md) — Computes embeddings with local models and keeps files and indexes on the machine, allowing remote embedding only after explicit workspace permission.

### Part of an Awesome List

- [Private Document Search Engines](https://awesome-repositories.com/f/awesome-lists/data/vector-databases-and-search/private-document-search-engines.md) — Searches your own files with indexes and models kept on the machine, using remote embedding only after explicit permission.

### Security & Cryptography

- [Remote Call Consent Gates](https://awesome-repositories.com/f/security-cryptography/remote-call-consent-gates.md) — Blocks every outbound embedding request until a workspace-level permission is recorded, and lets that permission be revoked at runtime without a restart.
- [Remote Embedding Consent](https://awesome-repositories.com/f/security-cryptography/remote-embedding-consent.md) — Blocks remote embedding calls until a workspace-level grant is recorded, and the grant can be revoked without a restart. ([source](https://github.com/zvec-ai/zvec-grep/tree/main/rust))

### Testing & Quality Assurance

- [Benchmark Run Comparators](https://awesome-repositories.com/f/testing-quality-assurance/benchmark-run-comparators.md) — Compares retrieval quality across search modes, product versions, and commits using fixed datasets and automated runs in continuous integration. ([source](https://github.com/zvec-ai/zvec-grep/tree/main/benchmarks))
