adapter

adapter is a command for Claude Code from nvk/llm-wiki. It costs 27 tokens per session (967 once invoked), scanned A, original, MIT.

A manager for trusted private adapters, which are local programs that connect the wiki to outside services or data sources. It routes requests, checks adapter setup, and can run an explicitly approved adapter.

In plain words
What is it for?
Use it to register, inspect, validate, route to, and run local private adapters.
Why use it?
It prevents the system from guessing which external connector to use or writing through an uncontrolled path. It also keeps adapter code and large private data outside the wiki.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the wiki plugin — 1 skill, 28 commands shipped together

Good fit Use it to register, inspect, validate, route to, and run local private adapters.

Compare 6 commands from other repositories ↓
About the project

LLM Wiki is a system that uses AI agents to research sources, compile knowledge bases, organize project briefs, and answer questions from the resulting wiki. It is used to turn rough ideas and investigations into structured, reusable knowledge for agents, including Claude Code, Codex, and OpenCode. The catalogue entries are commands, hooks, skills, instructions, and a plugin that implement its workflow.

nvk/llm-wiki · 1,576 stars · on GitHub · llm-wiki.net

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add nvk/llm-wiki
Claude Code
/plugin install wiki

Made for: Claude Code.

Or install wiki, the plugin that ships this one along with the rest of its 1 skill, 28 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for adapter

README.md
[![agentmods](https://agentmods.dev/badge/commands/nvk/llm-wiki/adapter/github.svg)](https://agentmods.dev/commands/nvk/llm-wiki/adapter)
Your own site
<a href="https://agentmods.dev/commands/nvk/llm-wiki/adapter"><img src="https://agentmods.dev/badge/commands/nvk/llm-wiki/adapter/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for adapter

Your own site · 80×15
<a href="https://agentmods.dev/commands/nvk/llm-wiki/adapter"><img src="https://agentmods.dev/badge/commands/nvk/llm-wiki/adapter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 967 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.00967
Opus 5.5 $0.00011 $0.00387
Sonnet 5.5 $0.00005 $0.00193
Haiku 4.5 $0.00003 $0.00097

Measured 3mo ago against content hash 7cee33f5250e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

adapter scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude-plugin/commands/adapter.md · 87 lines

How it starts

The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Your task

Manage or invoke a private llm-wiki adapter through the deterministic bundled CLI. Read skills/wiki-manager/references/adapters.md before acting.

Private-adapter management is wiki-neutral. Do not put executable registrations or absolute machine paths in wikis.json or a topic wiki. Resolve a topic wiki only when the user asks to promote a reviewed result after execution.

Declarative intent routing

Before treating an external URL as an ingestion source, normalize the requested effect to a lowercase intent token and run:

${CLAUDE_PLUGIN_ROOT}/bin/llm-wiki adapter route \
  --intent <effect> --resource '<external-url>' --json

On matched, read the returned adapter-owned guide, then run show and doctor for the returned adapter id before following that workflow. The private adapter owns all provider-specific authentication, transport, planning, recovery, and verification instructions. On no-match, continue with normal wiki routing. On ambiguous or unavailable, fail closed and repair the registration instead of guessing an adapter or falling back to an ungoverned write path. Route output does not echo the resource.

A URL by itself never authorizes invented edits. A bounded imperative approves only a faithful plan; generic remote-write plan hashes, revision locks, idempotency keys, private receipts, and read-back verification remain required.

Locate the CLI

For Claude Code, use:

"${CLAUDE_PLUGIN_ROOT}/bin/llm-wiki" adapter <subcommand>

In a source checkout, use scripts/llm-wiki. Other runtimes should use the bundled bin/llm-wiki relative to the installed plugin root described in the adapter reference. Do not assume the command is globally installed.

Management operations

  • add <path>: require an existing local checkout and explicit read/write roots. Add exact --remote-resource values only when the user authorized them. Never clone a repo or request credentials. Use --replace only when the user intends to trust a changed manifest.
  • list: show compact id, version, capability, network, and local-root data.
  • show <id>: show the machine-local registration; do not print environment variable values.
  • route --intent <effect> --resource <url>: match only registered declarative routes and return the adapter-owned guide without echoing the resource.
  • doctor <id>: verify manifest hash, executable, and handshake before a run.
  • remove <id> --yes: remove only the registration. Never delete adapter code, inputs, or outputs.

Read the full file on GitHub · 87 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 87 lines · 27 tokens per session scan A 7cee33f5250e

Subscribe to this mod's changes

adapter is a command published in the GitHub repository nvk/llm-wiki (1,576 stars, last pushed 1mo ago), licensed MIT. It adds 27 tokens to every session and 967 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

adapter compared with commands from other repositories

adapter next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
adapternvk/llm-wikiCommand1.6k1mo agoMITA27Claude Code
orchestrateruvnet/rufloCommand83ktodayMITA0Claude Code
projectmodu-ai/moai-adkCommand1.3ktodayApache-2.0A19Claude Code
performance-bottlenecksruvnet/rufloCommand83ktodayMITA0Claude Code
specifyqarium/gogaCommand468d agoBSD-3-ClauseA0Claude Code
test-featureLykhoyda/rn-dev-agentCommand201mo agoMITA30Claude Code
resolve-conflictlatestaiagents/agent-skillsCommand627d agoMITA8Claude Code