zvec-grep
View on GitHubLocal-first search across your workspace, built for humans and AI agents.
zg is a local-first hybrid workspace search tool and MCP server that unifies ripgrep, BM25 and vector/semantic search over code and documents. It gives humans a CLI and agents a tool for ranked, source-linked results with fewer tokens and tool calls.
Use Cases
Let coding agents search a local repo for relevant code and docsHybrid keyword+semantic search over an indexed workspace from the CLIRetrieve ranked, source-linked evidence to reduce agent tokens and tool callsSearch non-code documents and structured data alongside source codePlug local search into Claude Code, Codex, or OpenCode via MCPIndex a project once and query it repeatedly in direct or daemon server modeAnswer repository-comprehension questions with exact file/line citationsRun local embedding models with no data leaving the machine unless permitted
Built With
- Language
- Rust
- Frameworks
- zvec · llama.cpp · Transformers.js · model2vec · Node.js · MCP · ripgrep
Tags
local-first · hybrid-search · bm25 · vector-search · semantic-search · code-search · ripgrep · full-text-search · cli · embeddings · mcp-server · workspace-indexing · agent-context · code-navigation · source-citation · multi-format-search