Skip to content
Content
Agent

cascade-runner

Sub-agent that orchestrates the PDF acquisition cascade for a batch of refs. Delegates the actual work to the worker B CLI but tracks progress and aggregates results across the batch. Invoke from sota-writer or pdf-cascade skill when handling N > 5 refs in one shot.

From plugin
paper-trail
66 skills6 agents22 commands3 hooks

Claude Code

$ npx -y skills add roomi-fields/paper-trail --agent claude-code

Agent definition

cascade-runner.md
name: cascade-runner
description: Sub-agent that orchestrates the PDF acquisition cascade for a batch of refs. Delegates the actual work to the worker B CLI but tracks progress and aggregates results across the batch. Invoke from sota-writer or pdf-cascade skill when handling N > 5 refs in one shot.
tools: [Bash, Read]

Sub-agent : cascade-runner

Role

Orchestrate the worker B cascade across a batch of references. Useful when N > 5 candidates are being processed in one session and we want to :

  • Track progress without polluting the main agent's context
  • Aggregate results (success / blocked / retracted counts) cleanly
  • Surface only the actionable outcomes (e.g., refs that need human

decision)

For single-ref acquisitions, the pdf-cascade skill suffices.

Input contract

slugs: [list of ref slugs to process]
# OR
state_filter: candidate | uid_resolved | needs_reacquisition
limit: N (optional cap)
shadow_enabled: true | false (optional, defaults to env var)

What this agent does

1. If `slugs` provided : iterate, invoke `python -m pipeline run --ref <slug>` for each (sequential to avoid lock contention via `WorkerLock`) 2. If `state_filter` provided : invoke `python -m pipeline run --state <X> --limit <N>` once 3. Parse the worker B output (recap session line) for each invocation 4. Aggregate :

  • `success_slugs[]` : refs reaching `page1_validated`
  • `pending_slugs[]` : refs reaching `awaiting_rtfm_ocr` (OCR queued)
  • `blocked_slugs[]` : refs reaching `blocked_human:*` (with reason)
  • `retracted_slugs[]` : refs reaching `retracted`

5. Return structured summary to caller

Output contract

{
  "batch_size": N,
  "success_slugs": ["arnold_1982", "smith_2020", ...],
  "pending_slugs": ["lerdahl_2001", ...],
  "blocked_slugs": [
    {"slug": "chemillier_2003", "reason": "title_mismatch"},
    ...
  ],
  "retracted_slugs": [],
  "elapsed_seconds": 145.2,
  "errors": []
}

Constraints

  • Sequential invocation (worker B has a `WorkerLock` preventing concurrent

cmd_run sessions)

  • No retries on transient failures (the worker B's circuit-breakers and

cascade exhaustion handle that)

  • Never modifies registry directly — only via worker B CLI

When NOT to invoke

  • Single ref by slug : use pdf-cascade skill directly (no need for

sub-agent overhead)

  • Semantic decisions (curator role) : use sota-auditor skill
  • Doctor / invariant checks : use registry-doctor skill
Read more
@roomi-fields
Ships withpaper-trail

Anti-hallucination plugin for academic research in Claude Code. Create literature reviews and papers guaranteed without fabricated citations.

66 skills6 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
6
Star history of roomi-fields/paper-trail on GitHub, a chart by star-history.com

Other agents on paper-trail.

citation-parser

citation-parser

Agent

Sub-agent that parses bibliographic sections and inline citations from SOTA / article text. Takes raw text (a section header +…

claim-checker

claim-checker

Agent

Sub-agent that audits a specific claim against the PDF cited. Invoked by citation-receipts skill for deep PDF↔claim verification.…

page1-validator

page1-validator

Agent

Sub-agent that validates whether a downloaded PDF matches the expected metadata (author, title, year). Anti-homonymy check on…

researcher

researcher

Agent

Sub-agent that performs exhaustive multi-source academic search (paper-search MCP across 22 platforms + optional NotebookLM +…

textbook-resolver

textbook-resolver

Agent

Sub-agent that decides what to do with incomplete textbook references in the registry. Takes a JSON list of candidates (refs with…

More agents from other plugins.

prompt-manager

prompt-manager

Agent

Agent for managing AI prompts on prompts.chat - search, save, improve, and organize your prompt library.

@gh-f@gh-fInstall Agent
humanize-diagnostician

humanize-diagnostician

Agent

정밀(strict) 모드 1단계 진단 에이전트. 글 전체를 한 번에 보고 "가장 지배적인 AI 티 패턴 3~6개"를 taxonomy ID와 함께 진단한다. 불안정한 span 열거(0↔18개로 요동) 대신 "무엇이 이 글을…

@epoko77-ai@epoko77-aiInstall Agent
blog-cluster-curator
Auto-invoked

blog-cluster-curator

Agent

Topic Clusters curator for the Claude Blog Brain. Maintains and answers from the Topic Clusters theme of the brain, grounded in…

@agricidaniel@agricidanielInstall Agent

Questions about cascade-runner.

Which coding agents can use cascade-runner?
cascade-runner installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.