paper-trail-linkify

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

A command that replaces citations in a SOTA document with links to validated PDFs or source-status entries. A SOTA is a summary of existing research on a topic.

In plain words
What is it for?
Use it as a final linking pass after identifying, removing, and acquiring sources; it supports preview mode or applying the changes.
Why use it?
It makes citations point to the best available source and records unresolved sources in one status section.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

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

Good fit Use it as a final linking pass after identifying, removing, and acquiring sources; it supports preview mode or applying the changes.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/roomi-fields/paper-trail/paper-trail-linkify
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/roomi-fields/paper-trail

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/roomi-fields/paper-trail/paper-trail-linkify.svg)](https://agentmods.dev/commands/roomi-fields/paper-trail/paper-trail-linkify)
Your own site
<a href="https://agentmods.dev/commands/roomi-fields/paper-trail/paper-trail-linkify"><img src="https://agentmods.dev/badge/commands/roomi-fields/paper-trail/paper-trail-linkify.svg" alt="Measured on agentmods" height="20"></a>
Per session 70 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 620 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.00070 $0.00620
Opus 5 $0.00035 $0.00310
Sonnet 5 $0.00014 $0.00124
Haiku 4.5 $0.00007 $0.00062

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

Security

Grade A, and why

paper-trail-linkify 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 8d 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-linkify.md · 58 lines

What it actually says

Étape 4 du pipeline cible refondu. Insère les wikilinks finaux dans le SOTA et ajoute/régénère la section ## Statut des sources en bas.

Usage

/paper-trail:linkify <SOTA-path>           # dry-run (compte uniquement)
/paper-trail:linkify <SOTA-path> --apply   # applique + backup git

Ce que fait Claude

  1. Vérifie git initialisé dans le vault.

  2. Extrait les sections + sub-agent citation-parser (parallèle), comme pour identify, produisant /tmp/citations_<sota_stem>.json.

  3. Lance le linkify :

    python3 -m pipeline linkify <SOTA-path> \
        --citations-json /tmp/citations_<sota_stem>.json [--apply]
    

    Comportement par mention :

    • Si la ref est validée (state=page1_validated ou sota_cited_confirmed) AVEC un pdf_path → wikilink direct vers le PDF, par exemple : [[Sources/Knuth_1965_Translation.pdf|knuth_1965]] — Knuth 1965 (LR)
    • Sinon → wikilink vers une ancre #source-<lastname>-<year> dans une section ## Statut des sources régénérée en bas du SOTA. Exemple : [[#source-younger-1967|younger_1967]] — Younger 1967
  4. Régénère la section ## Statut des sources idempotemment, encadrée par :

    <!-- paper-trail:statut:begin -->
    ## Statut des sources
    ...
    <!-- paper-trail:statut:end -->
    

    5 sous-sections : validées / en cours / bloquées / rétractées / non créées. Chaque entrée a une ancre <a id="source-..."></a> ciblable.

  5. Présente le récap : N wikilinks PDF + N wikilinks ancre + N entrées dans la section Statut.

Style

  • Concis.
  • En cas d'erreur (backup git échoué, SOTA introuvable), explique et propose un retry.
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. 8d ago First seen · 58 lines · 70 tokens per session scan A 5a883014d5cb

Subscribe to this mod's changes

paper-trail-linkify is a command published in the GitHub repository roomi-fields/paper-trail (5 stars, last pushed 4d ago), licensed MIT. It adds 70 tokens to every session and 620 once invoked, about $0.0003 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.