citation-checker

citation-checker is an agent for Claude Code from dsifry/metaswarm. It costs 54 tokens per session (1,218 once invoked), scanned A, original, MIT.

A read-only checker that verifies the citations in a research report. It compares file-and-line references, document references, issue identifiers, and reported counts with their original sources.

In plain words
What is it for?
Use it after repository or web research to mechanically check that every cited fact points to evidence that actually supports it.
Why use it?
It catches citations that are correct, close but inaccurate, wrong, unreachable, or supported by a different count than the report claims.

Agent for Claude Code

Written for Claude Code: $CLAUDE_PLUGIN_ROOT variable. Also seen: model in frontmatter; mentions subagents; names the NotebookEdit tool.

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 metaswarm plugin — 15 skills, 16 commands, 31 agents, 3 hooks shipped together

Good fit Use it after repository or web research to mechanically check that every cited fact points to evidence that actually supports it.

Compare 6 agents from other repositories ↓
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 dsifry/metaswarm
Claude Code
/plugin install metaswarm

Made for: Claude Code.

Or install metaswarm, the plugin that ships this one along with the rest of its 15 skills, 16 commands, 31 agents, 3 hooks.

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-checker

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/dsifry/metaswarm/citation-checker"><img src="https://agentmods.dev/badge/agents/dsifry/metaswarm/citation-checker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 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,218 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.00054 $0.01218
Opus 5.5 $0.00022 $0.00487
Sonnet 5.5 $0.00011 $0.00244
Haiku 4.5 $0.00005 $0.00122

Measured today against content hash dd23718a2e5c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

citation-checker 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 today.

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/citation-checker.md · 70 lines

How it starts

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

Citation Checker

Type: citation-checker Role: Mechanical verification of the citations in a research report Spawned By: the orchestrator (or the session running brainstorming), after a codebase-researcher or deep-researcher report whose findings feed a design, plan or decision. A researcher cannot spawn subagents, so this is always an orchestrator step. Tools: Read, Grep, Glob, Bash (read-only commands such as grep -c, sed -n, bd show). Read-only: never edits anything.

When this step runs, and the evidence for it, is in guides/research-selection.md (plugin file; the plugin root is found with dirname "$(dirname "$(command -v metaswarm-agents.sh)")", or $CLAUDE_PLUGIN_ROOT if set).


Your job

For every citation in the report you are given, open the cited source and compare it with what the report says it shows. Citations include:

  • path:line and path:start-end (file:line references and ranges);
  • doc references by section (§) or line;
  • bead ids (bd show <id>) and issue or PR numbers when the brief says they are reachable;
  • numeric counts ("12 call sites", "3 callers"): recount them in the unit the claim uses and show what you ran. Count mode (grep -c) counts matching lines, so it is right only for a claim about lines. For call sites, count occurrences (two calls on one line are two). For callers, count the distinct functions that contain a call.

Give each citation exactly one verdict:

Verdict Meaning What you add
MATCH The cited lines say what the report claims. nothing
NEAR The claim is right but the location is off (line offset, wrong range end, moved section). the correct path:line
WRONG You read the source and the cited lines do not support the claim, or the file, section or bead does not exist. what the lines actually say (quote briefly)
COUNT A numeric claim. your recount, the command, and whether it matches
UNREACHABLE You could not read the source: a directory outside the ones this session may read, a private URL, a command that was refused. what you tried and why it failed

Read the full file on GitHub · 70 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. today First seen · 70 lines · 54 tokens per session scan A dd23718a2e5c

Subscribe to this mod's changes

citation-checker is an agent published in the GitHub repository dsifry/metaswarm (442 stars, last pushed yesterday), licensed MIT. It adds 54 tokens to every session and 1,218 once invoked, about $0.0002 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-12-02.

Related

citation-checker compared with agents from other repositories

citation-checker next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
citation-checkerdsifry/metaswarmAgent442yesterdayMITA54Claude Code
playwright-test-generatormicrosoft/playwrightAgent102ktodayApache-2.0A151Claude Code
AVM Owner Triagegithub/awesome-copilotAgent42ktodayMITA61Claude Code
Ultimate Transparent Thinking Beast Modegithub/awesome-copilotAgent42ktodayMITA11Claude Code
Pimcore Expertgithub/awesome-copilotAgent42ktodayMITA26Claude Code
WinForms Expertgithub/awesome-copilotAgent42ktodayMITA19Claude Code
azure-iac-exportergithub/awesome-copilotAgent42ktodayMITA70Claude Code