Plugins¶
Every agent connects to CodeNavi over MCP; that alone gives it the tools. A plugin adds the parts that make the agent use them without being told: usage rules, commands, and hooks. The plugins are MIT-licensed, carry nothing secret, and your CodeNavi server hands them out itself.
This page is the overview. The install steps live on each agent's page, linked from the table below.
What a plugin adds¶
| Part | What it does |
|---|---|
| MCP connection | Wires the agent to the server, on the agents where the plugin can carry it (see the table below). |
using-codenavi skill |
Teaches the agent the search rules: CodeNavi before blind greps and file reads, one GPU search at a time, codebase= on every call. |
compliance-check skill |
The engine behind the compliance command, see Compliance gap analysis. |
| Commands | search, overview, review, status, codebases, reindex, compliance, doctor, setup, crawl, feedback (usage report you can send us), and a project-summary generator. |
| Session-start hook | Tells the agent at the start of every session that the index is up and, on a multi-codebase server, which codebase this repo is indexed as. When the licence has run out it says so, and names the way back. When your server serves a newer plugin than the one installed, it names the update step (see Updates). |
| Grep hook | When the agent greps an indexed tree, the hook answers from the index first. See Grep hook. |
| Statusline | A prompt badge: index coverage of the current repo (✦) and whether CodeNavi was used this turn. See Statusline. |
Which agents get one¶
Each agent name links to its setup guide.
| Agent | Plugin | What it ships |
|---|---|---|
| Claude Code (CLI and the Claude Desktop Code tab) | Yes | MCP connection, 12 /codenavi: commands, both skills, both hooks, statusline |
| OpenAI Codex: CLI, desktop app, IDE extension | Yes | 11 task skills ($codenavi:<name>), both skills, both hooks. No statusline: Codex cannot run an external one yet. The MCP connection is written by connect-codenavi.sh. |
Google Antigravity CLI (agy 1.3.2+; on Windows) |
Yes | 12 /codenavi: commands, both skills, both hooks, statusline. The MCP connection is written by connect-codenavi.sh. Older agy: the skill only. The 2.0 desktop app shows the CLI-installed plugin under Customizations → Installed (start a skill by typing its name); the Antigravity IDE gets the MCP connection only. All three read the same mcp_config.json. |
Cursor (editor and agent CLI) |
Yes | MCP connection, 11 /codenavi-<name> commands, both skills, both hooks. Cursor has no statusline. |
| GitHub Copilot CLI | The Claude Code plugin | Both skills, the session-start hook and the commands, as /codenavi:<name> in the interactive prompt. It does not connect the server, run copilot mcp add first. The grep hook is untested there. |
| Claude Desktop chat, OpenCode, Pi, VS Code, Zed, JetBrains, AnythingLLM, CI bots | No | MCP config only. Give the agent the usage rules by hand: Rules for your agent. For OpenCode and Pi, codenavi connect writes the config and the rules for you, and OpenCode also gets /codenavi/review, /codenavi/overview and /codenavi/search. All agents: Connect your agent. |
The same skill has a different name in each app, because each app adds the plugin prefix its own way. In Claude Code and the Antigravity CLI it is /codenavi:codebases, in Codex it is $codenavi:codebases, and in Cursor it is /codenavi-codebases. In the Antigravity 2.0 app you type codebases and choose the match.
Where to get them¶
Your server serves each plugin at two read-only URLs. They need no token:
http://<server>:8765/plugins/claude.git # also .zip
http://<server>:8765/plugins/codex.git # also .zip
http://<server>:8765/plugins/antigravity.git # also .zip
http://<server>:8765/plugins/cursor.git # also .zip
Use localhost when the agent runs on the server machine. No git on the client? The .zip unpacks to codenavi-plugin-<agent>/. Client that cannot reach the server at all? Every package ships the same plugins under plugins/<agent>/.
Updates¶
The served plugin is always the one your server version ships, so update the server first, then the plugin. You don't have to remember this: once the server serves a newer plugin, the plugin's session-start hook tells the agent, and the agent tells you the step for your agent (Claude Code 0.5.48, Codex 0.3.24, Antigravity 0.4.22 and Cursor 0.2.16 onwards, against a server that lists plugins in /health).
| Agent | After a server update |
|---|---|
| Claude Code | claude plugin marketplace update codenavi (Claude Code also does this in the background) |
| Codex | Git marketplace: codex plugin marketplace upgrade codenavi && codex plugin add codenavi@codenavi. Folder or .zip, which includes the usual desktop app install: remove and add it again. Then trust the hooks again with /hooks |
| Antigravity | git pull the bundle (or fetch the .zip again) and re-run connect-codenavi.sh, agy cannot follow a custom marketplace, and its statusline is a copy |
| Cursor | git -C ~/.cursor/plugins/local/codenavi pull (or fetch the .zip again), then restart Cursor |
Grep hook¶
When the agent runs grep or rg over an indexed tree, the hook can answer from the index first: the symbol's definition and callers, or the top semantic hits. It is off unless you turn it on: on real bug-fix tickets, agents found and fixed code as well with their own grep, and the hook only moved their greps to CodeNavi's grep_search. Set its mode with CODENAVI_HOOK_GREP:
| Value | Effect |
|---|---|
(unset), off or 0 |
The hook does nothing (the default since 1.3.73) |
hint or 1 |
The index answer is shown and the grep still runs |
block |
The grep is denied when the index has hits for it. The agent gets the ready-to-run grep_search call that replaces it (pattern translated to grep_search syntax, path_filter, case_sensitive and codebase= filled in), then the hits. Pair it with CODENAVI_TOOL_PROFILE=protected on the server so grep_search is in the agent's tool list: that pair is protected mode (config.md). grep_search returns its matches verbatim; only read_file and indexed results are redacted |
Where to set it:
- Claude Code: in the
envblock of~/.claude/settings.json.python3 <plugin>/statusline/install.py env CODENAVI_HOOK_GREP=blockwrites it for you and refuses unknown values. - Codex:
export CODENAVI_HOOK_GREP=blockin the shell that starts Codex. - Antigravity: in agy's environment.
- Cursor: in Cursor's environment. In hint mode the index answer is added to the grep's result; in block mode Cursor's own Grep tool is denied too.
In block mode, the prefix CODENAVI_HOOK_GREP=hint grep … runs one raw grep anyway, use it for files the index skips (dotfiles, lockfiles, vendored trees).
When the server does not answer (an SSH tunnel dropped, or the server stopped), the grep runs in every mode, and the first one in a session tells the agent why: CodeNavi is not answering at that address, so the user should restart the tunnel or the server and then run the CodeNavi doctor command.
The hook never intercepts a grep over named files, or a path held in a shell variable it cannot see. It only acts on an indexed tree: inside a git repo, the repo's name must match a codebase name exactly. Outside a repo, a folder named after the codebase counts, and so does name-something, unless a folder named exactly name sits next to it.1
Statusline¶
The badge shows the current repo's index coverage (✦), or "uncovered", or a server-down marker, and whether CodeNavi was used this turn. When this turn's CodeNavi calls read a different codebase than the current repo's, a yellow → <codebase> follows the badge (for example 🟢 ✦ shop → api), so an answer from another codebase is never mistaken for one about this repo. A trial licence near its end adds an expiry badge.
- Claude Code:
/codenavi:status-line enable(alsodisable,status). - Antigravity:
connect-codenavi.shinstalls it;--no-statuslineskips it,python3 statusline/install.py disablerestores your previous one. - Codex: not possible yet; see Codex → Statusline.
- Cursor: has no statusline.
Server on another machine¶
The plugin, the badge and the hooks find the server through CODENAVI_HOST, CODENAVI_PORT and CODENAVI_AUTH_TOKEN. On Claude Code, put them in the env block of ~/.claude/settings.json, /codenavi:doctor writes it for you. On Codex and Antigravity, pass --host <server-ip> to connect-codenavi.sh. Details: Remote access.
-
Vendor change reference CN-819. ↩