resume

resume is a command for Claude Code from OpenRaiser/NanoResearch. It costs 0 tokens per session (722 once invoked), scanned A, original, MIT.

A command for continuing an interrupted or failed NanoResearch pipeline, a multi-stage workflow for producing research outputs. It finds the right workspace and normalizes old and new manifest formats before resuming.

In plain words
What is it for?
Resuming NanoResearch work from its saved checkpoint, including stages such as planning, coding, execution, analysis, figure creation, writing, and review.
Why use it?
It avoids restarting completed stages and handles differences between earlier and newer pipeline records.

Command for Claude Code

About the project

NanoResearch is an autonomous AI research system that turns research ideas into executable experiments and LaTeX papers supported by results from real training runs. It is for researchers validating prototypes, running GPU experiments, generating benchmarks, analyzing logs, and preparing paper drafts. The catalogue add-ons support its research pipeline and agent workflows.

OpenRaiser/NanoResearch · 1,363 stars · on GitHub

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.

agentmods
npx agentmods add commands/openraiser/nanoresearch/resume
Clone the repo
git clone --depth 1 https://github.com/OpenRaiser/NanoResearch

Made for: Claude Code.

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 resume

README.md
[![agentmods](https://agentmods.dev/badge/commands/openraiser/nanoresearch/resume.svg)](https://agentmods.dev/commands/openraiser/nanoresearch/resume)
Your own site
<a href="https://agentmods.dev/commands/openraiser/nanoresearch/resume"><img src="https://agentmods.dev/badge/commands/openraiser/nanoresearch/resume.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 722 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00722
Opus 5 $0.00000 $0.00361
Sonnet 5 $0.00000 $0.00144
Haiku 4.5 $0.00000 $0.00072

Measured 5d ago against content hash abc0c9780a58, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

resume 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 5d 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.

.claude/commands/resume.md · 68 lines

How it starts

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

Resume — Resume Pipeline from Last Checkpoint

Resume a NanoResearch pipeline that was interrupted or failed.

Input

$ARGUMENTS — workspace path (optional). If not provided, use the most recent workspace under ~/.nanoresearch/workspace/research/.

Schema Compatibility

Manifests come in two schemas — normalize before processing:

  1. Old schema (Python pipeline, schema_version: "1.1"):

    • Stage keys are UPPERCASE: IDEATION, PLANNING, SETUP, CODING, EXECUTION, ANALYSIS, FIGURE_GEN, WRITING, REVIEW
    • current_stage is UPPERCASE: DONE, FAILED, IDEATION, etc.
    • May contain extra stages (INIT, FORMAT_FIX) — ignore these
    • Stage objects have extra fields: retries, error_message, output_path
    • artifacts is an array of objects {name, path, stage, checksum}
  2. New schema (Claude Code commands):

    • Stage keys are lowercase: ideation, planning, etc.
    • current_stage is lowercase: done, failed, ideation, etc.
    • artifacts is a simple array of path strings

Normalization rules:

  • Convert all stage keys and current_stage to lowercase for comparison
  • The canonical stage order is: ideation, planning, setup, coding, execution, analysis, figure_gen, writing, review
  • Skip any stages not in the canonical list (e.g., INIT, FORMAT_FIX)
  • For artifacts, if an entry is an object, use its path field; if it's a string, use it directly

Process

  1. Read {workspace}/manifest.json

  2. Normalize the manifest (see Schema Compatibility above).

  3. Find the current state (use lowercase comparison):

    • If current_stage is "done": Tell the user the pipeline is already complete.
    • If current_stage is "failed": Find the failed stage, reset it to "pending", and continue from there. Check error_message field if present (old schema).
    • Otherwise: Continue from current_stage.
  4. Identify which stages are already completed by checking each stage's status (case-insensitive: "completed" or "COMPLETED" both count).

Read the full file on GitHub · 68 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. 5d ago First seen · 68 lines · 0 tokens per session scan A abc0c9780a58

Subscribe to this mod's changes

resume is a command published in the GitHub repository OpenRaiser/NanoResearch (1,363 stars, last pushed 10d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 722 tokens. 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-30.