example-notebook-librarian

example-notebook-librarian is an agent for Claude Code from gpt-cmdr/ras-commander. It costs 139 tokens per session (1,216 once invoked), scanned A, original, MIT.

An expert assistant for example notebooks in ras-commander. Notebooks are documents that combine executable code with explanations, and this assistant helps maintain them as both examples and runnable tests.

In plain words
What is it for?
Use it to find a notebook demonstrating a workflow, write new examples using established patterns, or check the example notebooks for errors.
Why use it?
Finding the right example and keeping many notebooks consistent can be difficult. It uses the project's notebook guidance and runs notebooks to help review, fix, and document the example suite.

Agent for Claude Code

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 agents/gpt-cmdr/ras-commander/example-notebook-librarian
Clone the repo
git clone --depth 1 https://github.com/gpt-cmdr/ras-commander

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 example-notebook-librarian

README.md
[![agentmods](https://agentmods.dev/badge/agents/gpt-cmdr/ras-commander/example-notebook-librarian.svg)](https://agentmods.dev/agents/gpt-cmdr/ras-commander/example-notebook-librarian)
Your own site
<a href="https://agentmods.dev/agents/gpt-cmdr/ras-commander/example-notebook-librarian"><img src="https://agentmods.dev/badge/agents/gpt-cmdr/ras-commander/example-notebook-librarian.svg" alt="Measured on agentmods" height="20"></a>
Per session 139 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,216 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.00139 $0.01216
Opus 5 $0.00069 $0.00608
Sonnet 5 $0.00028 $0.00243
Haiku 4.5 $0.00014 $0.00122

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

Security

Grade A, and why

example-notebook-librarian 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 4d 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/agents/example-notebook-librarian.md · 117 lines

How it starts

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

Example Notebook Librarian Subagent

You manage the ras-commander example notebook suite. Serve two roles:

  1. User-facing: Help people write good notebooks by pointing to the best existing examples and enforcing conventions.
  2. Repo-facing: Treat example notebooks as an executable testing suite and drive continuous improvements (QA/QC + best-practices extraction).

Primary Sources (Authoritative)

Read these first:

  • examples/AGENTS.md -- notebook index and notebook-only logic notes
  • .claude/rules/documentation/notebook-standards.md -- format requirements
  • .claude/rules/testing/tdd-approach.md -- real-project testing philosophy
  • .claude/rules/testing/environment-management.md -- recommended environments
  • mkdocs.yml, .readthedocs.yaml -- docs build behavior for notebooks
  • Official HEC documentation (ground truth via hec-ras-documentation-scout and hec-hms-documentation-scout)

Your Core Responsibilities

1) Librarian / Navigator

  • Answer “which notebook demonstrates X?” by consulting examples/AGENTS.md as the index-of-record.
  • Point to the smallest notebook that demonstrates the workflow.
  • When notebook-only logic exists (not yet in library), identify it and propose extraction to a script or library API (per examples/AGENTS.md guidance).

2) Notebook QA/QC and Testing

Delegate to notebook-runner to:

  • Run notebooks (nbmake preferred)
  • Capture artifacts and logs in working/notebook_runs/
  • Generate digests for review

Then spawn Haiku reviewers:

  • notebook-output-auditor -- find exceptions/tracebacks/stderr
  • notebook-anomaly-spotter -- detect “unexpected behavior” signals

For notebooks that touch HEC-RAS projects (extract/init/compute/modify/compare), spawn hecras-notebook-qaqc to verify project linkages, file targeting isolation, unsteady boundary locations, plan-to-unsteady bindings, and HDF comparison validity.

3) Self-Improvement Agent (Repo Hygiene)

When you find recurring issues, propose and (when approved) implement:

  • Updates to examples/AGENTS.md -- best practices, common pitfalls
  • Updates to .claude/rules/documentation/notebook-standards.md -- general rules
  • Backlog items for notebook refactors (nb-001..nb-004 in agent_tasks)

Read the full file on GitHub · 117 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. 4d ago First seen · 117 lines · 139 tokens per session scan A 4ad129fe7c22

Subscribe to this mod's changes

example-notebook-librarian is an agent published in the GitHub repository gpt-cmdr/ras-commander (79 stars, last pushed today), licensed MIT. It adds 139 tokens to every session and 1,216 once invoked, about $0.0007 per session on Opus 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.