zvec-grep
БесплатноЗапускает вложенные скриптыНе проверенDrive zvec-grep (`zg`), zvec-ai's local-first workspace search CLI and MCP server, to index code and documents, run hybrid, vector, BM25, or exhaustive…
от akillness★ 63 звезды на GitHubОб этом скилле
zvec-grep - local-first workspace search for humans and agents
zvec-grep, invoked as zg, is a Node CLI and local MCP server. It combines
ranked lexical retrieval, vector retrieval, and managed ripgrep over one scoped
workspace. It is a search tool, not a general web search engine, a production
search backend, or a durable project-memory store.
When to use this skill
- The user wants to install, update, configure, or operate
@zvec/zvec-grep. - An agent needs local evidence from a repository or mixed workspace and the wording or location is unknown.
- The task needs a choice between indexed hybrid or semantic retrieval and
exhaustive exact or regex matching through
zg query --rg. - A workspace index, local MCP daemon, agent integration, refresh state, model choice, or Remote Embedding authorization needs diagnosis.
- The user asks about
zvec_grep_search, the optional full MCP toolset, or thezg installintegration targets.
When not to use this skill
- Exact symbol, quotation, filename, or regex lookup in a small local tree:
use native
rgor the repository's normal code-navigation workflow. - Token-efficient code-only search, remote git indexing, or
find-related: route tosemblewhen that is the installed and intended tool. - Graph construction, call-graph or relationship artifacts: route to
graphify. - Durable project memory or handoff notes: route to
opencontext. - Web pages, crawling, or current external facts: route to
scrapling, a browser, or the appropriate web source.zgonly searches local workspace evidence. - A hosted application search backend, faceting, or production serving layer:
route to
typesenseor the application's search owner.
For an explicit Jevgrep request, follow jevgrep for optional remote-agent discovery over scoped source documents and its separate content/cost gate. Native exact search and existing zvec retrieval remain defaults; zvec Remote Embedding authorization is not consent for Jevgrep provider calls.
Instructions
1. Verify the current runtime before copying commands
The published npm package @zvec/[email protected] uses subcommands.
Confirm version-specific details with the installed binary before copying commands:
node --version # published package requires Node.js >= 22
zg version
zg help
zg help query
zg help models
zg help file-types
Use zg query, zg index, zg status, zg install, and zg server.
Do not copy long action flags such as zg --index from the moving GitHub main
docs into a setup that installs npm 0.2.2. If the binary is absent, do not
silently install it; show the pinned package install command and wait for the
requested install action:
npm install -g @zvec/[email protected]
2. Classify the retrieval route before running it
Use one route for the first probe:
| Need | Route | Side effect |
|---|---|---|
| Known exact word, path, quote, key, filename, regex, or every occurrence | native rg or zg query --rg |
no index required |
| Unknown location, conceptual relation, chronology, causality, or cross-file synthesis | zg query <query>, zg query --fts, or zg query --vector |
may create or refresh an index |
| Known exact anchor plus surrounding meaning | indexed zg first, then native rg |
index plus focused exact read |
| Current external or web content | web source, not zg |
outside this skill |
For an indexed task, make at most one focused semantic probe, cap results with
--limit, and follow a promising hit with exact rg or a file read. Do not use
vector retrieval for exhaustive occurrence claims.
3. Scope the workspace before indexing
The normal index lives at <workspace>/.zvec-grep/. For a large or sensitive
repository, choose the root and file scope explicitly before the first index:
cd /absolute/path/to/repository
zg index \
--embedding local/potion-code-16m-v2 \
-g 'src/**' \
-g 'docs/**' \
-g '!dist/**' \
-t ts
zg status --check-ready
The scanner already excludes .git, .zvec-grep, common generated or binary
paths, and repository ignore rules. It can index code, Markdown, text, JSON,
YAML, TOML, CSV, XML, HTML, and selected images. PDFs, office files, archives,
executables, databases, and oversized or binary files are skipped. Use
--debug when skipped-file counts or extraction failures matter.
A positional query with no index can create one using a local embedding model.
That is convenient for an explicitly approved small workspace, but it is not a
permission to create persistent state silently in an agent workflow. Prefer an
explicit zg index step when the root, model, or file scope matters.
4. Reuse and maintain the index deliberately
zg status
zg status --check-ready
zg index # incremental update with stored schema
zg index --rebuild \
--embedding local/jina-embeddings-v2-base-code
zg index --drop --yes
Установить zvec-grep в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadWriteEditGlobGrepWebFetchВложенные файлы
FAQ
Что делает скилл zvec-grep?
Drive zvec-grep (`zg`), zvec-ai's local-first workspace search CLI and MCP server, to index code and documents, run hybrid, vector, BM25, or exhaustive managed ripgrep searches, configure agent integrations, and diagnose index or server freshness. Use when a task needs local workspace-grounded retrieval across code, Markdown, text, structured data, or images. Triggers on: zvec-grep, zvec grep, `zg`, @zvec/zvec-grep, local-first workspace search, hybrid workspace search, semantic repository search, zvec MCP, zvec_grep_search, managed ripgrep, `.zvec-grep`, or Remote Embedding authorization.
Как установить скилл zvec-grep?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл zvec-grep запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic