citation-editor

citation-editor is an agent for Claude Code from jmagly/aiwg. It costs 27 tokens per session (330 once invoked), scanned A, original, MIT.

A citation-checking agent for civic content, such as information published by public institutions. It checks whether each important claim is actually supported by the cited source and records where that support appears.

In plain words
What is it for?
It helps review claim-to-source matches, source versions, quoted text, selectors such as page or section locations, freshness, uncertainty, and required corrections.
Why use it?
It prevents unsupported claims, stale sources, missing evidence, and misleading citation links from being treated as verified.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit It helps review claim-to-source matches, source versions, quoted text, selectors such as page or section locations, freshness, uncertainty, and required corrections.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/jmagly/aiwg/citation-editor
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/jmagly/aiwg

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/jmagly/aiwg/citation-editor.svg)](https://agentmods.dev/agents/jmagly/aiwg/citation-editor)
Your own site
<a href="https://agentmods.dev/agents/jmagly/aiwg/citation-editor"><img src="https://agentmods.dev/badge/agents/jmagly/aiwg/citation-editor.svg" alt="Measured on agentmods" 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 330 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.00330
Opus 5 $0.00014 $0.00165
Sonnet 5 $0.00005 $0.00066
Haiku 4.5 $0.00003 $0.00033

Measured 2d ago against content hash 9be32487ce35, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

citation-editor 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.

agentic/code/addons/civic-action/agents/citation-editor.md · 45 lines

What it actually says

Citation Editor

Inputs

  • Required: versioned draft, material-claim map, source/retrieval registry, and selectors.
  • Optional: freshness policy, transcript sidecars, contrary evidence, and prior correction records.

Outputs

  • Per-claim gate results, evidence pointers, remediation, uncertainty, and overall citation status.

Responsibilities

  • Check that each material claim is entailed by its cited source version.
  • Verify source/retrieval IDs, hashes, page/section/cue/record selectors, quoted text, freshness state, and claim epistemic status.
  • Reuse research-complete citation/provenance checks when installed.

Hard rules

Never invent or repair evidence by changing the claim silently. Do not equate official provenance with truth, recency with correctness, or a URL with claim-level support. Missing dependencies or sources block the claimed check.

Output contract

Return per-claim pass|warn|block results, evidence pointers, exact remediation, and an overall status. Preserve disputes for the human editor.

Recovery and scope

Inspect only sources relevant to each claim. Independent claims may be checked in parallel. If evidence is missing, ambiguous, stale, or unreadable, record the failure and escalate to the editor; never retry by inventing or broadening the source set without authorization.

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 · 45 lines · 27 tokens per session scan A 9be32487ce35

Subscribe to this mod's changes

citation-editor is an agent published in the GitHub repository jmagly/aiwg (209 stars, last pushed yesterday), licensed MIT. It adds 27 tokens to every session and 330 once invoked, about $0.0001 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-09-05.

Related

Other agents, from other repositories

healthcare-reviewer

Reviews healthcare application code for clinical safety, CDSS accuracy, PHI compliance, and medical data integrity. Specialized for EMR/EHR, clinical decision support, and health information systems.

affaan-m/ECC · 42 tokens

insurance-reviewer

Insurance / InsurTech specialist pre-implementation reviewer for insurance archetype. Specialises in NAIC Model Acts (50-state filing matrix), the NAIC AI Model Bulletin 2023 (AIS Program, unfair-discrimination testing, DOI market-conduct readiness), Colorado SB 21-169 + NY DFS AI circular (insurance-specific…

avelikiy/great_cto · 153 tokens

rcm-reviewer

Healthcare Revenue Cycle Management (RCM) / medical-billing specialist pre-implementation reviewer for the healthcare archetype. Outputs threat model TM-rcm-{slug}.md and signs off Critical/High mitigations before senior-dev claims tasks.

avelikiy/great_cto · 53 tokens

gov-reviewer

Government / public-sector specialist pre-implementation reviewer for gov-public archetype. Outputs threat model TM-{slug}.md and signs off Critical/High mitigations before senior-dev claims tasks.

avelikiy/great_cto · 41 tokens

gdpr-reviewer

GDPR + EU AI Act + NIS2 specialist pre-implementation reviewer. Auto-invoked when jurisdiction detection finds eu, uk, or br signals. Covers GDPR Art.5/6/9/25/32/35, DPIA, EU AI Act risk classification, and NIS2 Article 21 controls. Outputs threat model TM-{slug}.md and signs off Critical/High mitigations before…

avelikiy/great_cto · 93 tokens

us-privacy-reviewer

US privacy law specialist pre-implementation reviewer. Covers CCPA/CPRA, US state privacy matrix (VA CDPA · TX TDPSA · FL FDBR · CO CPA · CT CTDPA), FTC Act § 5, COPPA (under-13), and GLBA (financial). Auto-invoked on us / us-ca jurisdiction signals. Outputs threat model TM-{slug}.md and signs off Critical/High…

avelikiy/great_cto · 102 tokens