paper-trail-ingest-all

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

A batch command for processing every SOTA document in a vault, a collection of stored files. It finds free-text citations and sends them through the paper-trail citation pipeline.

In plain words
What is it for?
Use it to convert an entire legacy collection of SOTA documents into the paper-trail format, optionally filtering by name.
Why use it?
It removes the need to process research documents one at a time and shows what will change before applying it.

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 to convert an entire legacy collection of SOTA documents into the paper-trail format, optionally filtering by name.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/roomi-fields/paper-trail/paper-trail-ingest-all"><img src="https://agentmods.dev/badge/commands/roomi-fields/paper-trail/paper-trail-ingest-all.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 711 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.00069 $0.00711
Opus 5 $0.00034 $0.00356
Sonnet 5 $0.00014 $0.00142
Haiku 4.5 $0.00007 $0.00071

Measured 11d ago against content hash a5d3d2dc239c, 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-ingest-all 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 11d 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-ingest-all.md · 73 lines

How it starts

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

/paper-trail:ingest-all — Batch INGEST on the whole vault

Variante batch de /paper-trail:ingest. Traite tous les SOTAs ayant des sections bibliographiques avec citations en texte libre, en une seule session.

Usage

/paper-trail:ingest-all                   # dry-run par défaut sur tout le vault
/paper-trail:ingest-all --apply           # applique sur tout
/paper-trail:ingest-all --pattern "*tempo*"   # filtre par nom de SOTA

Ce que fait Claude

  1. Vérifie git initialisé (sinon refuse).

  2. Scan global :

    python3 -m pipeline ingest --all
    

    Liste les SOTAs avec sections bibliographiques candidates et leur nombre. Présente le tableau à l'utilisateur.

  3. Demande confirmation avant de lancer le batch :

    • Combien de SOTAs vont être traités ?
    • Estimation : ~30s par SOTA (sub-agent parser + Crossref + DOI resolution + dédup + substitutions).
    • Le commit git auto sera fait avant chaque SOTA.
  4. Pour chaque SOTA (séquentiel, pour éviter conflit git) :

    • Lance /paper-trail:ingest <SOTA> ou directement la chaîne ingest --extract-only → sub-agent → ingest --citations-json --apply
    • Agrège le résultat (new_refs, reused_refs, substitutions, erreurs)
  5. Récap final : tableau par SOTA + totaux :

    SOTA                                   new  reused  subst  errors
    SOTA_Beat_Tracking                     3    0       3      0
    SOTA_Bernard_Bel_Temperaments          12   2       14     1
    ...
    Total                                  N    N       N      N
    
  6. Étape suivante : propose de lancer pipeline run --loop (cascade sur les nouvelles refs candidates), puis /paper-trail:audit-all (audit claim ↔ PDF).

Garde-fous

  • Interruption : si l'utilisateur dit stop pendant le batch, sauvegarder la progression (SOTAs déjà traités) dans plans/ingest_all_<date>.md. La reprise re-démarre au SOTA suivant.

  • Skip si déjà ingéré : si un SOTA n'a plus aucune section candidate (toutes les citations sont déjà en wikilinks), skip silencieusement.

Read the full file on GitHub · 73 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. 11d ago First seen · 73 lines · 69 tokens per session scan A a5d3d2dc239c

Subscribe to this mod's changes

paper-trail-ingest-all is a command published in the GitHub repository roomi-fields/paper-trail (5 stars, last pushed 7d ago), licensed MIT. It adds 69 tokens to every session and 711 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.