paper-trail-review

paper-trail-review is a command for Claude Code from roomi-fields/paper-trail. It costs 39 tokens per session (1,039 once invoked), scanned A, original, MIT.

A command for reviewing references that an automated academic-citation pipeline could not resolve or process.

In plain words
What is it for?
It helps inspect problem categories, retract references that are not cited, handle paywalls, investigate possible author or title matches, and approve decisions in batches.
Why use it?
It brings unresolved, blocked, duplicate-looking, or scan-dependent references into one review so a person can decide what to do.

Command for Claude Code

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 tools/review_problems.py \.

Part of the paper-trail plugin — 6 skills, 22 commands, 6 agents, 3 hooks shipped together

Good fit It helps inspect problem categories, retract references that are not cited, handle paywalls, investigate possible author or title matches, and approve decisions in batches.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/roomi-fields/paper-trail
agentmods
npx agentmods add commands/roomi-fields/paper-trail/paper-trail-review

Made for: Claude Code.

Or install paper-trail, the plugin that ships this one along with the rest of its 6 skills, 22 commands, 6 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 paper-trail-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/roomi-fields/paper-trail/paper-trail-review/github.svg)](https://agentmods.dev/commands/roomi-fields/paper-trail/paper-trail-review)
Your own site
<a href="https://agentmods.dev/commands/roomi-fields/paper-trail/paper-trail-review"><img src="https://agentmods.dev/badge/commands/roomi-fields/paper-trail/paper-trail-review/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 paper-trail-review

Your own site · 80×15
<a href="https://agentmods.dev/commands/roomi-fields/paper-trail/paper-trail-review"><img src="https://agentmods.dev/badge/commands/roomi-fields/paper-trail/paper-trail-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 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,039 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.00039 $0.01039
Opus 5 $0.00019 $0.00519
Sonnet 5 $0.00008 $0.00208
Haiku 4.5 $0.00004 $0.00104

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

Security

Grade A, and why

paper-trail-review 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 10d 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.

commands/paper-trail-review.md · 97 lines

How it starts

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

/paper-trail:review — Arbitrate problematic refs

Pour traiter en une session toutes les refs qui ne peuvent pas progresser automatiquement et demandent une décision humaine.

Usage

/paper-trail:review                           # tous les cas
/paper-trail:review --auto-retract-uncited    # raccourci : retract en lot les non-citées
/paper-trail:review --only retract            # seulement les artefacts évidents
/paper-trail:review --only blocked            # seulement les paywalls
/paper-trail:review --only investigate        # seulement les homonymies
/paper-trail:review --batch                   # propose une décision par ref, l'utilisateur valide en lot

Raccourci --auto-retract-uncited

Empiriquement, 90 %+ des refs problématiques sont des refs non citées en dehors du registre. Pour les traiter en une commande :

python3 -m pipeline retract-uncited            # dry-run (montre la liste)
python3 -m pipeline retract-uncited --apply    # exécute les retract

Le pipeline scanne le vault, identifie les refs actives non citées hors _registry/INDEX.md, et propose de toutes les retract en bloc.

Ce que fait Claude pendant cette commande

  1. Régénère le rapport à jour :

    python3 tools/review_problems.py \
      --states candidate,uid_resolved,awaiting_rtfm_ocr \
      --output plans/review_<YYYY-MM-DD>.md
    
  2. Lit le rapport et compte par catégorie (RETRACT / BLOCKED_HUMAN / INVESTIGATE / WAIT / REVIEW). Présente le total à l'utilisateur.

  3. Traite par batch, dans cet ordre :

    • D'abord les RETRACT évidents (title vide ou "untitled", uid absent, citée nulle part ou seulement dans INDEX.md) → propose une liste en bloc, demande validation globale.
    • Ensuite les BLOCKED_HUMAN (auteur+titre OK, ≥8 sources tentées, toutes en échec) → propose une liste en bloc.
    • Enfin les INVESTIGATE : un par un, car nécessite une décision d'humain (homonymie ? typo dans frontmatter ?).

Read the full file on GitHub · 97 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. 10d ago First seen · 97 lines · 39 tokens per session scan A 84a056fe3b02

Subscribe to this mod's changes

paper-trail-review is a command published in the GitHub repository roomi-fields/paper-trail (5 stars, last pushed 7d ago), licensed MIT. It adds 39 tokens to every session and 1,039 once invoked, about $0.0002 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-08-31.