textbook-resolver

textbook-resolver is an agent for Claude Code from roomi-fields/paper-trail. It costs 91 tokens per session (1,212 once invoked), scanned A, original, MIT.

A helper agent for deciding how to handle incomplete textbook references, such as a missing title or a year recorded as 0000. It compares each candidate with other references by the same author and returns a decision.

In plain words
What is it for?
Use it to merge a reference into a matching textbook, complete its missing details, or mark it as blocked when the evidence is insufficient.
Why use it?
It helps resolve ambiguous or partial textbook entries consistently instead of leaving them for manual investigation.

Agent 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 merge a reference into a matching textbook, complete its missing details, or mark it as blocked when the evidence is insufficient.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/roomi-fields/paper-trail/textbook-resolver"><img src="https://agentmods.dev/badge/agents/roomi-fields/paper-trail/textbook-resolver.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 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,212 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.00091 $0.01212
Opus 5.5 $0.00036 $0.00485
Sonnet 5.5 $0.00018 $0.00242
Haiku 4.5 $0.00009 $0.00121

Measured 3mo ago against content hash 5f6afb91075a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

textbook-resolver 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 3mo 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.

agents/textbook-resolver.md · 137 lines

How it starts

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

Sub-agent : textbook-resolver

Role

Decide what to do with each incomplete textbook reference (slug pattern <lastname>_0000_untitled or similar, or any ref with year/title missing). Output structured JSON for the orchestrator to apply.

Input contract

A JSON array of candidates. Each candidate has :

{
  "slug": "hopcroft_0000_untitled",
  "author": "Hopcroft",
  "year": "0000",
  "title": "",
  "state": "candidate",
  "ingest_source": "10_SOURCES/.../SOTA_X.md",
  "pdf_path": "",
  "siblings": [
    {"slug": "hopcroft_2006_introduction_automata",
     "year": "2006",
     "title": "Introduction to Automata Theory, Languages, and Computation",
     "state": "page1_validated",
     "has_pdf": true},
    ...
  ]
}

Output contract

A JSON array of decisions, one per candidate, in the same order :

[
  {"slug": "hopcroft_0000_untitled",
   "action": "merge_into",
   "target_slug": "hopcroft_2006_introduction_automata",
   "rationale": "short_ref_of_same_textbook"},
  {"slug": "sipser_0000_untitled",
   "action": "complete",
   "year": "2012",
   "title": "Introduction to the Theory of Computation",
   "rationale": "canonical_textbook_known_by_author"},
  {"slug": "wolper_0000_untitled",
   "action": "blocked",
   "reason": "ambiguous_textbook_needs_human"}
]

Decision rules (in this order)

1. merge_into — siblings with PDF AND matching context

If ANY sibling :

  • has has_pdf: true
  • AND state ∈ {page1_validated, sota_cited_confirmed}
  • AND its title/year is consistent with the candidate (same general textbook, e.g. "Introduction to Automata Theory" for Hopcroft, or same paper for shorter mentions)

→ action: merge_into, target_slug: <that_sibling_slug>

If multiple siblings match :

  • Prefer the one with has_pdf: true and most recent year
  • If year ambiguous, prefer the one with the most complete title

2. merge_into — siblings with exact year match

If a sibling has year exactly matching the candidate's year (both non-empty), and the candidate has no title, the sibling likely refers to the same paper :

Read the full file on GitHub · 137 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. 3mo ago First seen · 137 lines · 91 tokens per session scan A 5f6afb91075a

Subscribe to this mod's changes

textbook-resolver is an agent published in the GitHub repository roomi-fields/paper-trail (8 stars, last pushed 3mo ago), licensed MIT. It adds 91 tokens to every session and 1,212 once invoked, about $0.0004 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-31.

Related

textbook-resolver compared with agents from other repositories

textbook-resolver next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
textbook-resolverroomi-fields/paper-trailAgent83mo agoMITA91Claude Code
perspective-generatorsynaptiai/synapti-marketplaceAgent9yesterdayApache-2.0A36Claude Code
claim-verifiersynaptiai/synapti-marketplaceAgent9yesterdayApache-2.0A36Claude Code
nci-analyzersynaptiai/synapti-marketplaceAgent9yesterdayApache-2.0A41Claude Code
error-handler-inspectorsynaptiai/synapti-marketplaceAgent9yesterdayApache-2.0A63Claude Code
dossier-doc-draftersynaptiai/synapti-marketplaceAgent9yesterdayApache-2.0A69Claude Code
pillar-researchersynaptiai/synapti-marketplaceAgent9yesterdayApache-2.0A39Claude Code