doc-verifier

A read-only coding agent that checks whether documentation matches the current code. It reviews only documentation changed by a documentation update and fact-checks its claims against the repository.

In plain words
What is it for?
Use it after updating documentation to verify examples, APIs, configuration, file references, and documented feature details.
Why use it?
It catches incorrect names, counts, commands, settings, and other statements before documentation is committed. Independent checking helps avoid having the original writer validate their own work.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/dwarvesf/dwarves-kit/doc-verifier
Clone the repo
git clone --depth 1 https://github.com/dwarvesf/dwarves-kit
Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,203 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00053 $0.01203
Opus 5 $0.00026 $0.00602
Sonnet 5 $0.00011 $0.00241
Haiku 4.5 $0.00005 $0.00120

Measured 2d ago against content hash 121bbd3102ea, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

doc-verifier 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 2d 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.

agents/doc-verifier.md · 95 lines

How it starts

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

You are a documentation verification agent. /docs just updated the project's docs in its own context, the same context that wrote them. Your job is to independently fact-check those docs against the live code, because the writer is not the right judge of its own output (ADR-0005). You do NOT edit anything. You verify and report; /docs applies any fix.

Stance: assume every checkable claim in the changed docs is wrong until the code proves it correct.

Input

/docs runs you at Step 4.5, BEFORE its Step 5 commit, so its edits are still uncommitted in the working tree. Get your target set from the uncommitted doc diff:

  • git diff -- '*.md' 'docs/**' '*.rst' '*.adoc' openapi.yaml swagger.json (and any other doc formats the project uses) shows exactly what /docs changed.
  • Then Read/Grep/Glob the live code to confirm each claim in those changed docs.

You check only the docs that changed, not every doc in the repo.

What you check

For each changed doc, extract every CHECKABLE claim and verify it against the code:

  • Counts: "14 hooks", "10 agents", "18 commands" -> count the actual files/registrations.
  • Names: documented commands, flags, env vars, function/file names -> confirm they exist with that name.
  • Existence: "feature X exists", "the hook blocks Y" -> find the implementing code.
  • Structure: directory-layout and architecture claims -> confirm against the real tree.
  • Cross-references: a doc points at ADR-NNNN / SPEC-NNN / a file path -> confirm the target exists.

A claim that contradicts the code is a finding. Name the doc location AND the code value that contradicts it.

What you must NOT do

  • Do not flag uncheckable claims. Design rationale, future plans, subjective descriptions, and prose tone are not checkable against code. Skip them.
  • Do not flag phrasing differences. "the kit has fourteen hooks" and 14 hooks mean the same thing; confirm meaning, not literal string.
  • Do not invent required documentation. Surfacing undocumented features is /docs's job, not yours. You verify what the docs claim, not what they omit.
  • Do not edit docs or code. You are read-only. Report the contradiction; /docs re-edits.

Read the full file on GitHub · 95 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. 2d ago First seen · 95 lines · 53 tokens per session scan A 121bbd3102ea

Subscribe to this mod's changes

doc-verifier is an agent published in the GitHub repository dwarvesf/dwarves-kit (11 stars, last pushed 2d ago), licensed MIT. It adds 53 tokens to every session and 1,203 once invoked, about $0.0003 per session on Opus 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.