paper-trail-new-sota

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

A command for creating a State-of-the-Art review, meaning a structured summary of current research on a topic, from verified papers.

In plain words
What is it for?
Use it to research a topic, build a paper registry, validate and take notes on PDFs, and produce a new literature review.
Why use it?
It researches papers, downloads and checks their PDFs, reads them, and writes the review in that order, so the document is not written from memory or invented citations.

Command for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: mentions subagents; mentions Claude Code.

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

Good fit Use it to research a topic, build a paper registry, validate and take notes on PDFs, and produce a new literature review.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/roomi-fields/paper-trail/paper-trail-new-sota"><img src="https://agentmods.dev/badge/commands/roomi-fields/paper-trail/paper-trail-new-sota.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 840 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.00037 $0.00840
Opus 5 $0.00018 $0.00420
Sonnet 5 $0.00007 $0.00168
Haiku 4.5 $0.00004 $0.00084

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

Security

Grade A, and why

paper-trail-new-sota 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-new-sota.md · 95 lines

How it starts

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

/paper-trail:new-sota — Create a SOTA on a topic

Invoke the sota-writer skill to produce a new SOTA / literature review on a given topic.

Usage

/paper-trail:new-sota <topic>
/paper-trail:new-sota <topic> --depth shallow|standard|exhaustive
/paper-trail:new-sota <topic> --max-candidates 30

What it does

  1. Pré-vol : invoke python3 -m pipeline preflight to verify the environment (vault path, Python deps, paper-search MCP registered). If pre-flight reports paper-search MCP non enregistré, halt and show the install recipe printed by preflight before going further. The user must install the MCP, restart Claude Code, then re-run.
  2. Phase A — Research : invokes researcher sub-agent for multi-source academic search (paper-search MCP across 22 platforms ; optionally NotebookLM + WebSearch)
  3. Phase B — Acquisition : pushes candidates into the registry with state candidate, then invokes pdf-cascade to download + page 1 validation
  4. Phase C — Reading : for each ref in page1_validated, opens the PDF and writes structured notes in the ref's markdown body
  5. Phase D — Writing : produces the SOTA at adapter.sota_output_path(<topic_slug>), citing only refs in page1_validated+, with a separate « Refs écartées » section listing rejected candidates and reasons

Safeguards

  • Refuses to write from memory : every claim must trace back to a page1_validated ref's notes body
  • >30% DROP refusal : if more than 30% of candidates fail to reach page1_validated, refuses to write the SOTA and reports the situation (user must refine topic, enable shadow libs, or intervene manually on specific refs)
  • PreToolUse hook : the plugin blocks the final SOTA write if any cited wikilink points to a non-page1_validated ref (see tools/precheck_sota_wikilinks.py)

Shadow libraries

To maximize acquisition success, activate shadow libs before running new-sota (see DISCLAIMER.md) :

Read the full file on GitHub · 95 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 · 95 lines · 37 tokens per session scan A 70447fff3a8a

Subscribe to this mod's changes

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