Install the plugin¶
How to install the agentic-retrieval plugin into Claude Code, plus a
brief note for other coding agents. This is a uv-only path — there is no
no-uv fallback.
Prerequisites¶
- A current Claude Code build with plugin support. Check with
claude --version; if the/plugincommand isn't recognized once inside Claude Code, see Troubleshooting. uv— the hard requirement for setting up and invoking the engine. Check withuv --version; if missing, install it withcurl -LsSf https://astral.sh/uv/install.sh | sh.- Optional: a Java 21 JDK on
PATH, only if you want thepyseriniextra (Pyserini/Anserini wraps a JVM) to actually work at index time. - Optional:
ffmpegand an ASR tool such as whisper.cpp, only if you want to index audio/video media — see Transcribe audio and video. - Network access, only for the optional
remote/local/turbovec/pyserini/mcpextras — the core install is fully offline.
Install path A (primary) — local marketplace¶
Use this when you have a local checkout of this repo (e.g. you cloned
retrieval-skill yourself, or a teammate handed you the folder).
- Add the local folder as a marketplace, from inside Claude Code:
/plugin marketplace add /path/to/retrieval-skill
A relative path also works if your Claude Code session is already working near it:
/plugin marketplace add ./retrieval-skill
- Install the plugin from that marketplace:
/plugin install agentic-retrieval@agentic-retrieval-marketplace
(agentic-retrieval-marketplace is the marketplace's name field in
.claude-plugin/marketplace.json; agentic-retrieval is the plugin's
name field in .claude-plugin/plugin.json — both must match exactly
for the install to resolve.)
Note
Local/dev marketplaces have auto-update off, so pulling new commits into
your checkout won't automatically update the installed plugin — re-run
/plugin marketplace add on the same path (or reinstall) to pick up
changes.
Install path B — from GitHub (once published)¶
/plugin marketplace add josix/agentic-retrieval
This only resolves once the repo is published on GitHub under exactly that
name — josix/agentic-retrieval — matching the repository field in
plugin.json and the source.repo field in marketplace.json. The local
working copy on disk is named retrieval-skill; that folder name doesn't
need to match anything, but the published GitHub repo does need to be
named agentic-retrieval under the josix account for this exact
command to work.
Scopes¶
/plugin marketplace add / /plugin install default to user scope
(available in every project you open in Claude Code). Install at project
or local scope instead if you only want the plugin active for one repo.
For a team, add the marketplace automatically for everyone via
extraKnownMarketplaces in a checked-in .claude/settings.json, so nobody
has to run the /plugin marketplace add step by hand.
Activate and verify¶
After installing:
/reload-plugins
Then check it landed:
/plugin
Under Installed, agentic-retrieval should show 1 command (/retrieval), 7
skills, 1 agent (retrieval-tracer) and 1 MCP server (retrieval).
Invoke it either namespaced...
/agentic-retrieval:retrieval
...or with the bare trigger the skill itself declares (trigger: /retrieval
in skills/retrieval/SKILL.md):
/retrieval
Both resolve to the same skill.
First-run bootstrap¶
The engine's uv-managed environment doesn't exist until you sync it — run
this once:
/retrieval setup
This runs uv sync --project "${CLAUDE_PLUGIN_ROOT}/engine" --extra all —
one command syncs the offline core plus every optional extra. uv sync is
idempotent, so re-running /retrieval setup later is always safe.
--extra all includes the mcp extra the MCP server needs.
Note
If the full sync fails on a heavy extra (most often pyserini, which
needs a Java 21 JDK on PATH), sync core only to confirm the base
engine works, then re-run the full sync — see
index-and-query how-to for the core-only
fallback commands.
When installed as a plugin, Claude Code runs the plugin from
~/.claude/plugins/cache, not from your working copy on disk — so
${CLAUDE_PLUGIN_ROOT}/engine points inside that cache directory. uv sync
pins the resulting environment via UV_PROJECT_ENVIRONMENT, defaulting to
$HOME/.cache/agentic-retrieval/uv-venv — no action needed on your part
either way. See environment variables
for the full list.
MCP server¶
The plugin registers an MCP server named retrieval through the mcpServers
entry in .claude-plugin/plugin.json — there is nothing to configure. Claude
Code launches scripts/retrieval-mcp.sh, which:
- needs
uvonPATH(it exits with an error otherwise); - uses the same
UV_PROJECT_ENVIRONMENTas/retrieval setup(default$HOME/.cache/agentic-retrieval/uv-venv); - adds the
mcpextra on launch (uv run ... --extra mcp retrieval mcp), so it works even before/retrieval setup; the first start can take longer whileuvsyncs.
It serves the project in CLAUDE_PROJECT_DIR (root order: --root, then
RETRIEVAL_ROOT, then CLAUDE_PROJECT_DIR, then cwd). Its tools appear in
Claude Code as mcp__plugin_agentic-retrieval_retrieval__*. See
MCP server for the tools and
MCP troubleshooting if it does
not start.
Uninstall / disable¶
/plugin uninstall agentic-retrieval@agentic-retrieval-marketplace
or, to keep it installed but turn it off:
/plugin disable agentic-retrieval@agentic-retrieval-marketplace