Zvec Logo

Connect AI Agents

Connect a supported AI agent and understand when it uses Zvec-Grep.

zg install connects Codex, Claude Code, Qwen Code, Cursor, or OpenCode to Zvec-Grep. Agents receive compact, source-linked evidence from the same workspace index used by the CLI.

Install

Use the guided installer, or configure one or more targets directly:

zg install
zg install --target codex --yes
zg install --target claude --target cursor --yes

Supported targets are codex, claude, qwen, cursor, opencode, all, and auto. The installer preserves configuration outside Zvec-Grep-managed blocks. Restart the agent or open a new session afterward.

The default stdio connection manages the local service automatically; no Server setup is required.

Available MCP Tool

The default Agent integration exposes one Zvec-Grep tool:

ToolUse it for
zvec_grep_searchIndexed discovery when wording or location is unknown, or when the answer requires semantic or cross-file understanding

Exact words, filenames, paths, and regular expressions continue to use the Agent's native grep or rg tools. They are not additional Zvec-Grep MCP tools.

Retrieval Routing

Zvec-Grep adds semantic workspace discovery without replacing exact-search tools:

IntentRoute
Exact word, quotation, identifier, filename, path, or regex is sufficientNative grep or rg
Wording or location is unknown, or cross-file synthesis is requiredzvec_grep_search
Exact anchors are known but broader context is requiredzvec_grep_search, then focused grep or rg
Current external facts or unrelated open-world knowledgeAn external source, not Zvec-Grep

The default Agent toolset exposes indexed search only. Index creation, rebuilding, and deletion remain explicit CLI actions.

Remove

zg uninstall --target codex --yes
zg uninstall --target all --yes

This removes only Zvec-Grep-managed Agent configuration. It does not delete the npm package or workspace indexes. If installation or connection fails, see Troubleshooting.

On this page