the-adversary: Agent for Claude Code

.claude/agents/citation-semantics.md

citation-semantics is an agent for Claude Code from tasumermaf/the-adversary. It costs 46 tokens per session (784 once invoked), scanned A, original, MPL-2.0.

A source-checking review step for documents that use quotations and citations. It re-fetches the original full text to compare quotations and verify that cited sources support the claims.

In plain words
What is it for?
Use it before release to verify every quotation and source-supported claim against the original publication or other primary source.
Why use it?
It catches invented or altered quotations and citations that point to sources saying something different. Checking full text avoids relying only on abstracts or citation links.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is tasumermaf/the-adversary's own configuration. It tells Claude Code how to work on the-adversary itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything the-adversary configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tasumermaf/the-adversary. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tasumermaf/the-adversary/master/.claude/agents/citation-semantics.md
Clone the repo
git clone --depth 1 https://github.com/tasumermaf/the-adversary

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/tasumermaf/the-adversary/citation-semantics"><img src="https://agentmods.dev/badge/agents/tasumermaf/the-adversary/citation-semantics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 784 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.00046 $0.00784
Opus 5.5 $0.00018 $0.00314
Sonnet 5.5 $0.00009 $0.00157
Haiku 4.5 $0.00005 $0.00078

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

Security

Grade A, and why

citation-semantics 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 2mo 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/agents/citation-semantics.md · 65 lines

How it starts

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

citation-semantics — the primary-source lens

You exist to refute one property: that the artifact's use of every external source is faithful. Not that the citation resolves (cross-refs owns that) — that the quotation is verbatim and the cited work actually supports the claim attributed to it. This lens exists because a fabricated verbatim quote once survived every other check and was caught only by re-fetching the source's full text on release day. You re-fetch. Abstracts are not enough.

Inputs are artifacts, never narrative

You receive the artifact and its bibliography. You do NOT receive the author's summary of what each source says. You fetch the source and read it yourself.

Stance: the quote is fabricated until the source proves it

For every quotation and every claim-level citation, go to the primary source full text and compare, verbatim for quotes and claim-level for paraphrase.

Method

  1. Grep every quotation (quoted strings, block quotes) and every "as X shows / X finds / following X" claim-level citation.
  2. Resolve each to its primary source; WebSearch to find it if the bib lacks a stable link; WebFetch the full text (arXiv HTML/PDF page, publisher page), not the abstract.
  3. Verbatim check: the quoted string appears character-for-character in the source. A near-quote is a fabrication-class finding.
  4. Claim-level check: the source actually says what it is cited for — and in the same direction (a source cited for the opposite of its finding is a terminology/semantic inversion; report it here with the source text).
  5. Record the fetch (URL, date, the located passage) as evidence.

Absence checks

  • A quotation whose source cannot be fetched/located at all → unverifiable.
  • A claim-level citation to a source that, on reading, does not address the claim.
  • A quote presented as verbatim with no locatable original.

Severity

  • Fabricated / non-verbatim quotation → blocker (release blocker).
  • Citation whose source contradicts or does not support the claim → major (release blocker if load-bearing).
  • Unverifiable citation (source not locatable) → major — a blocker, not polish.

Read the full file on GitHub · 65 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. 2mo ago First seen · 65 lines · 46 tokens per session scan A 4a4889651246

Subscribe to this mod's changes

citation-semantics is an agent published in the GitHub repository tasumermaf/the-adversary (2 stars, last pushed 2mo ago), licensed MPL-2.0. It adds 46 tokens to every session and 784 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-08-31.

Related

Other agents, from other repositories

integrity-verification-agent

Academic integrity gatekeeper for alterlab-research-pipeline (Stage 2.5 pre-review + Stage 4.5 post-revision). Performs 100% verification of references, citations, data, originality, and claim faithfulness. Resolves every reference's EXISTENCE and metadata deterministically via…

AlterLab-IEU/AlterLab-Academic-Skills · 192 tokens

citation-compliance-agent

Verifies all citations in the paper draft for format correctness, cross-references in-text citations against the reference list, checks DOIs and URLs, and auto-corrects detected errors for the selected citation style.

AlterLab-IEU/AlterLab-Academic-Skills · 47 tokens

draft-writer-agent

Writes the complete paper draft section-by-section, following the Structure Architect's outline and the Argument Builder's blueprint, weaving citations naturally into the narrative and handling revision rounds.

AlterLab-IEU/AlterLab-Academic-Skills · 38 tokens

meta-analysis-agent

Designs and executes meta-analyses when quantitative synthesis is feasible, computing effect sizes, assessing heterogeneity, generating forest-plot data, planning subgroup and sensitivity analyses, and applying the GRADE framework; otherwise produces a structured narrative synthesis framework.

AlterLab-IEU/AlterLab-Academic-Skills · 53 tokens

revision-coach-agent

Parses unstructured reviewer comments from any format into a structured Revision Roadmap, classifying, mapping, and prioritizing every comment; it works standalone and does not require the paper to have gone through the writing pipeline.

AlterLab-IEU/AlterLab-Academic-Skills · 49 tokens

structure-architect-agent

Selects the optimal paper structure, designs a detailed section-by-section outline, allocates word counts, and maps evidence to sections, producing the blueprint the draft writer follows.

AlterLab-IEU/AlterLab-Academic-Skills · 39 tokens