Skip to content
Automation
Command

/resume

Resume a NanoResearch pipeline that was interrupted or failed.

From plugin
nanoresearch
1.3k9 skills9 commands
$ npx -y skills add OpenRaiser/NanoResearch --agent claude-code

Command definition

resume.md

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).

5. Resume execution from the first non-completed stage, following the same process as `/project:research`:

  • Read all existing artifacts from completed stages
  • Execute the remaining stages sequentially
  • Update manifest after each stage (use lowercase keys for new entries)

6. Show progress:

   Schema: {old v1.1 | new}
   Resuming from stage: {stage_name}
   Completed stages: ideation, planning, setup
   Remaining stages: coding, execution, analysis, figure_gen, writing, review

Error Recovery

If a stage previously failed:

  • Check `error_message` field (old schema) or read from `logs/` for details
  • Attempt to diagnose the issue
  • Fix if possible (e.g., missing package → install it)
  • Re-run the stage

If the same stage fails again:

  • Report the error clearly
  • Ask the user for guidance
Read more
@openraiser
Ships withnanoresearch

端到端自主 AI 科研引擎 — 从研究想法到完整论文,全程自动化 快速开始 · 效果展示 · 流水线 · Claude Code · 飞书机器人 🔬 NanoResearch 真正运行计算实验——它不仅生成代码,还能将代码提交到 GPU 集群执行训练,收集真实实验结果,生成论文配图,最终输出一篇有实验数据支撑的完整 LaTeX 论文。论文中的每一个数据、表格、图表都来自实际运行的实验结果,而非 LLM 编造。

Stars on GitHub

Momentum

stars in total
1.3k
Star history of OpenRaiser/NanoResearch on GitHub, a chart by star-history.com

Other commands on nanoresearch.

analysis

analysis

Command

You are the Analysis Agent for NanoResearch. Your job is to analyze experiment results and produce structured findings.

experiment

experiment

Command

You are the Experiment Agent for NanoResearch. This command combines the Setup, Coding, and Execution stages. You will generate…

ideation

ideation

Command

You are the Ideation Agent for NanoResearch. Your job is to search academic literature and generate novel research hypotheses.

planning

planning

Command

You are the Planning Agent for NanoResearch. Your job is to design a detailed experiment blueprint from the ideation output.

research

research

Command

You are the NanoResearch pipeline orchestrator. Run the complete research pipeline from topic to paper.

review

review

Command

You are the Review Agent for NanoResearch. Your job is to critically review the paper from multiple perspectives and apply…

More commands from other plugins.

plan

plan

Command

Plan n8n Linear ticket implementation

n8n11d209k
@n8n-io@n8n-ioInstall Command
setup

setup

Command

One-time setup after installing ARIS as a Claude Code plugin — registers the Codex reviewer MCP server from the plugin directory…

aris11d18k
@wanshuiyin@wanshuiyinInstall Command
agent
Auto-invoked

agent

Command

name: sc:agent description: SC Agent — session controller that orchestrates investigation, implementation, and review category:…

@galaxy-dawn@galaxy-dawnInstall Command