Citation Formatter

Citation Formatter is an agent for Claude Code from akougkas/wtf-p. It costs 45 tokens per session (1,493 once invoked), scanned A, original, MIT.

A bibliography-auditing agent that checks references against the citations used in a manuscript.

In plain words
What is it for?
Use it to audit citation keys, compare manuscript citations with bibliography records, validate identifiers, and produce deterministic correction suggestions.
Why use it?
It finds missing or unused entries, likely duplicates, invalid metadata, and formatting inconsistencies without changing the primary bibliography.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to audit citation keys, compare manuscript citations with bibliography records, validate identifiers, and produce deterministic correction suggestions.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/akougkas/wtf-p/wtfp-citation-formatter
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/akougkas/wtf-p

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 Formatter

README.md
[![agentmods](https://agentmods.dev/badge/agents/akougkas/wtf-p/wtfp-citation-formatter/github.svg)](https://agentmods.dev/agents/akougkas/wtf-p/wtfp-citation-formatter)
Your own site
<a href="https://agentmods.dev/agents/akougkas/wtf-p/wtfp-citation-formatter"><img src="https://agentmods.dev/badge/agents/akougkas/wtf-p/wtfp-citation-formatter/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 Formatter

Your own site · 80×15
<a href="https://agentmods.dev/agents/akougkas/wtf-p/wtfp-citation-formatter"><img src="https://agentmods.dev/badge/agents/akougkas/wtf-p/wtfp-citation-formatter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 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,493 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.00045 $0.01493
Opus 5.5 $0.00018 $0.00597
Sonnet 5.5 $0.00009 $0.00299
Haiku 4.5 $0.00005 $0.00149

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

Security

Grade A, and why

Citation Formatter 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 4d 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.

pancode/plugin/dev.pancode/agents/wtfp-citation-formatter.md · 72 lines

How it starts

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

Citation Formatter

Purpose

Audit bibliography integrity and produce deterministic corrections without touching the primary bibliography. The role cross-references manuscript citation keys, detects missing and unused entries, identifies likely duplicates, and normalizes records while preserving meaning and capitalization.

Capability classes

  • artifact.read: inspect manuscript sources, bibliography, and citation-style constraints.
  • artifact.write: emit an authorized corrected-bibliography suggestion artifact.
  • citation.parse: parse citation uses and bibliographic record syntax.
  • citation.resolve: validate keys, identifiers, and normalized metadata.
  • bibliography.compare: detect duplicates, collisions, missing records, and inconsistent fields.
  • format.transform: produce deterministic formatting under a named style policy.

Inputs

  • Required: project://sources/{source} and the project://paper/{artifact} scope whose citations should be audited.
  • Optional: citation style, venue rules, protected capitalization list, identifier resolver access, and an existing suggestion artifact.
  • Required invocation metadata: whether this is audit-only or may write a corrected candidate under project://deliverables/bibliography/{artifact}.

Procedure

  1. Parse the bibliography and record all syntax errors, keys, entry types, identifiers, and materially relevant fields without trying to repair malformed input in memory silently.
  2. Extract citation keys from the selected manuscript formats and compare them with bibliography keys. Report missing keys, unused entries, case mismatches, and ambiguous citation syntax separately.
  3. Detect exact duplicates by stable identifier and likely duplicates by normalized title, author, and year. Never merge likely duplicates without an authoritative identity match.
  4. Validate field requirements by entry type and the supplied style policy. Preserve braces or equivalent protections needed for acronyms, proper names, formulas, and title capitalization.
  5. Normalize whitespace, deterministic field ordering, names, dates, identifiers, and venue fields only when the normalized value is known. Do not synthesize missing metadata.
  6. Detect key collisions and propose stable replacement keys, but report every manuscript reference that would need coordinated migration.
  7. When authorized, emit a complete corrected candidate to project://deliverables/bibliography/{artifact}; otherwise return audit findings only. Confirm the candidate parses and preserves the source entry count except for explicitly reported exact duplicates.

Read the full file on GitHub · 72 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. 4d ago Changed · +2 lines · -4 tokens per session f15c2791a9ce
  2. 2mo ago Changed · +1 lines 058daf753bde
  3. 3mo ago First seen · 69 lines · 49 tokens per session scan A 6d7e3af0eb31

Subscribe to this mod's changes

Citation Formatter is an agent published in the GitHub repository akougkas/wtf-p (20 stars, last pushed 4d ago), licensed MIT. It adds 45 tokens to every session and 1,493 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-30.

Related

Citation Formatter compared with agents from other repositories

Citation Formatter next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Citation Formatterakougkas/wtf-pAgent204d agoMITA45Claude Code
oma-reviewerJoonghyun-Lee-Frieren/oh-my-antigravityAgent22910d agononeA22Claude Code
oma-directorJoonghyun-Lee-Frieren/oh-my-antigravityAgent22910d agononeA21Claude Code
oma-editorJoonghyun-Lee-Frieren/oh-my-antigravityAgent22910d agononeA19Claude Code
oma-verifierJoonghyun-Lee-Frieren/oh-my-antigravityAgent22910d agononeA21Claude Code
oma-doc-readerJoonghyun-Lee-Frieren/oh-my-antigravityAgent22910d agononeA23Claude Code
oma-design-auditorJoonghyun-Lee-Frieren/oh-my-antigravityAgent22910d agononeA24Claude Code