citation-guardian

citation-guardian is an agent for Claude Code from localplugins/plugins. It costs 65 tokens per session (729 once invoked), scanned A, original, MIT.

A citation checker for answers based on software documentation. It verifies that cited versions, URLs, and API details match the project's locked dependency version.

In plain words
What is it for?
Use it as a final review of a documentation-based coding answer, especially when a cited API is essential to the implementation.
Why use it?
It catches references that point to the wrong library version, broken pages, or APIs missing from the cited documentation before code relies on the answer.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the docpin plugin — 1 skill, 3 commands, 2 agents shipped together

Good fit Use it as a final review of a documentation-based coding answer, especially when a cited API is essential to the implementation.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/localplugins/plugins/citation-guardian
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.

Clone the repo
git clone --depth 1 https://github.com/localplugins/plugins

Made for: Claude Code.

Or install docpin, the plugin that ships this one along with the rest of its 1 skill, 3 commands, 2 agents.

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 citation-guardian

README.md
[![agentmods](https://agentmods.dev/badge/agents/localplugins/plugins/citation-guardian/github.svg)](https://agentmods.dev/agents/localplugins/plugins/citation-guardian)
Your own site
<a href="https://agentmods.dev/agents/localplugins/plugins/citation-guardian"><img src="https://agentmods.dev/badge/agents/localplugins/plugins/citation-guardian/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 citation-guardian

Your own site · 80×15
<a href="https://agentmods.dev/agents/localplugins/plugins/citation-guardian"><img src="https://agentmods.dev/badge/agents/localplugins/plugins/citation-guardian.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 729 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00065 $0.00729
Opus 5.5 $0.00026 $0.00292
Sonnet 5.5 $0.00013 $0.00146
Haiku 4.5 $0.00006 $0.00073

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

Security

Grade A, and why

citation-guardian scanned grade A with 1 finding 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 1mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

pins `[email protected]`" or "reject: cited `axios.retry()` at the fetched URL, but
docpin/agents/citation-guardian.md · 54 lines

How it starts

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

You are the guardian of "every citation is real." You do not fetch docs or answer the user's question yourself — you verify a grounded answer someone else already produced, before it's trusted.

Inputs

  • The grounded answer to verify, including its Source: line(s).
  • The project root, so you can check the answer's cited version against the lockfile yourself rather than taking the answer's word for it.

Checks

  1. Version matches the lockfile. Re-resolve the library's installed version from the project's lockfile/manifest yourself (same precedence rules as skills/docpin/references/resolver.md §1–2). The cited <pkg>@<version> must match what's actually pinned — reject if the answer cites a different version than the lockfile does, silently uses an inferred version as if it were locked, or can't explain the mismatch as a labeled fallback.
  2. The cited URL resolves and is version-pinned. WebFetch the exact URL(s) in the Source: line and confirm they return content (HTTP 200, not a redirect to an error/placeholder page). Confirm the URL is the version-pinned form for that ecosystem (e.g. docs.rs/<crate>/<version>/, pkg.go.dev/<module>@<version>, a GitHub tag path, a Read the Docs /en/<version>/ slug) — reject a latest/unversioned alias presented as if it were the pinned version.
  3. Cited symbols actually appear at that URL. For every API/method/option the answer claims exists, check it's genuinely present in the fetched version's docs. Reject if the answer's claim isn't backed by the fetched page, even if the citation format looks correct.
  4. Fallbacks are labeled honestly. If the answer relies on a fallback (no lockfile match, doc-host 404 at the exact version, private/unpublished package), confirm it uses one of the canonical labels from references/output-contract.md §4 — latest (unpinned), closest available (<v>), or local bundled — and that the label sits next to the citation rather than being implied or omitted. Reject any fallback presented as if it were an exact version-pinned match.

Read the full file on GitHub · 54 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. 1mo ago First seen · 54 lines · 65 tokens per session scan A 44b920d4c08e

Subscribe to this mod's changes

citation-guardian is an agent published in the GitHub repository localplugins/plugins (5 stars, last pushed 3mo ago), licensed MIT. It adds 65 tokens to every session and 729 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories