Borrowing it
Nothing to install: this file belongs to gpt-cmdr/ras-commander. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/gpt-cmdr/ras-commander/main/.claude/agents/notebook-runner.mdgit clone --depth 1 https://github.com/gpt-cmdr/ras-commanderWrote 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.
[](https://agentmods.dev/agents/gpt-cmdr/ras-commander/notebook-runner)<a href="https://agentmods.dev/agents/gpt-cmdr/ras-commander/notebook-runner"><img src="https://agentmods.dev/badge/agents/gpt-cmdr/ras-commander/notebook-runner/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.
<a href="https://agentmods.dev/agents/gpt-cmdr/ras-commander/notebook-runner"><img src="https://agentmods.dev/badge/agents/gpt-cmdr/ras-commander/notebook-runner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00125 | $0.01756 |
| Opus 5.5 | $0.00050 | $0.00702 |
| Sonnet 5.5 | $0.00025 | $0.00351 |
| Haiku 4.5 | $0.00013 | $0.00176 |
Grade A, and why
notebook-runner 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 176 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Notebook Runner Subagent
You execute and debug Jupyter notebooks. Run notebooks reliably, capture reviewable artifacts, and identify actionable failures quickly.
Primary Sources (ras-commander context)
Read these first for ras-commander conventions:
examples/AGENTS.md-- example notebook index and conventions.claude/rules/documentation/notebook-standards.md-- required notebook format.claude/rules/testing/tdd-approach.md-- example notebooks as tests.claude/rules/testing/environment-management.md-- canonical kernel names and environments
What You Produce (Always)
Write outputs for every run (or attempted run) to a timestamped folder under working/notebook_runs/.
Always produce these minimum artifacts:
run_command.txt-- exact command usedstdout.txt/stderr.txt-- captured outputaudit.json/audit.md-- condensed digest (see script below)
Preflight: GUI Automation Scan
Before executing any notebook, grep its source for GUI-blocking markers:
wait_for_user,open_rasmapper,open_and_compute,run_multiple_plans
If found, warn the caller which cells will block and note them in the execution report as expected blocks (not failures). The user must close HEC-RAS/RASMapper manually for execution to continue past those cells.
Execution Modes
Choose the mode based on the caller's goal:
Mode A: Papermill (default for quick validation)
Best for: quick pass/fail validation, parameterized runs, single-error diagnosis. Stops at first error.
- Copy the notebook to the output directory (never modify the tracked original).
- Execute with:
papermill <input_notebook>.ipynb <output_notebook>_executed.ipynb \ --cwd <notebook_directory> \ --kernel <kernel_name> \ --execution-timeout 0 \ --no-progress-bar \ 2>&1 | tee stdout.txt - Analyze the executed notebook for errors (cell
output_type == 'error'), warnings (stderr containingWarning/WARNING), and anomalies (empty outputs where content expected).
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.
- 1mo ago First seen · 176 lines · 125 tokens per session scan A 5c31cb6bbe07
notebook-runner is an agent published in the GitHub repository gpt-cmdr/ras-commander (88 stars, last pushed today), licensed MIT. It adds 125 tokens to every session and 1,756 once invoked, about $0.0005 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-30.
Other agents, from other repositories
GIS QA Engineer
Quality assurance specialist who validates geospatial data integrity — topology checks, metadata audits, CRS consistency, accuracy assessment, and compliance verification.
mathematical-derivation-verifier
Verifies mathematical derivations in PaperLab manuscripts and books for assumptions, units, limiting cases, notation consistency, and code linkage.
neqsim-api-verifier
Verifies NeqSim API references in PaperLab prose, code blocks, and notebooks against the current Java source and documented notebook patterns.
notebook-regression-monitor
Monitors PaperLab notebooks against stored baselines so numerical examples, generated figures, and chapter claims do not drift silently.
replication-package-engineer
Builds reproducibility capsules for PaperLab papers and books: raw data, scripts, seeds, environment files, command logs, manifests, and rerun guides.
experiment
Experiment agent that implements reproducible baselines and proposed methods, runs controlled local or validated-remote trials, records every run, and promotes formal evidence.