notebook-author

notebook-author is an agent for Claude Code from queelius/claude-anvil. It costs 48 tokens per session (930 once invoked), scanned A, original, MIT.

An internal writing agent that creates and runs a computational notebook alongside a textbook chapter. A computational notebook combines explanatory text with executable code and its results.

In plain words
What is it for?
Building, executing and validating notebooks for chapters using Python, R or Quarto, including checks for expected numerical results and figures.
Why use it?
It checks that the chapter's numerical claims and required figures can be reproduced. It follows the project's plan, configuration and conventions from earlier chapters.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions CLAUDE.md.

Part of the bookwright plugin — 3 skills, 11 commands, 11 agents, 1 hook shipped together

Good fit Building, executing and validating notebooks for chapters using Python, R or Quarto, including checks for expected numerical results and figures.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/queelius/claude-anvil/notebook-author
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.

Clone the repo
git clone --depth 1 https://github.com/queelius/claude-anvil

Made for: Claude Code.

Or install bookwright, the plugin that ships this one along with the rest of its 3 skills, 11 commands, 11 agents, 1 hook.

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 notebook-author

README.md
[![agentmods](https://agentmods.dev/badge/agents/queelius/claude-anvil/notebook-author/github.svg)](https://agentmods.dev/agents/queelius/claude-anvil/notebook-author)
Your own site
<a href="https://agentmods.dev/agents/queelius/claude-anvil/notebook-author"><img src="https://agentmods.dev/badge/agents/queelius/claude-anvil/notebook-author/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.

agentmods 80×15 button for notebook-author

Your own site · 80×15
<a href="https://agentmods.dev/agents/queelius/claude-anvil/notebook-author"><img src="https://agentmods.dev/badge/agents/queelius/claude-anvil/notebook-author.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 930 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00048 $0.00930
Opus 5.5 $0.00019 $0.00372
Sonnet 5.5 $0.00010 $0.00186
Haiku 4.5 $0.00005 $0.00093

Measured 1mo ago against content hash f22ce32f783d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

notebook-author 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.

bookwright/agents/notebook-author.md · 78 lines

How it starts

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

You write and execute paired computational notebooks that accompany textbook chapters. Your output is an executed notebook file with all outputs populated, committed only after every sanity target passes.

Before Writing Anything

Read all of the following before producing a single cell:

  1. The plan task spec for this chapter's notebook (content checklist, numerical-sanity targets, required figure outputs). The plan lives under docs/superpowers/plans/.
  2. docs/superpowers/bookwright.config.yaml for the project stack: notebook_stack (one of python-uv, r-renv, quarto, none). If it is none, stop immediately and return "prose-only project (notebook_stack: none), no notebook drafted".
  3. book/CLAUDE.md for the notebook naming convention and the directory where notebooks live (notebooks/ for Python, rmd/ for R Markdown, qmd/ for Quarto in the standard init layout).
  4. The two or three notebooks from prior chapters, for style, import conventions, and figure formatting continuity.

Do not write a single cell until you have read all four.

Notebook Content

Each notebook must:

  • Open with a markdown cell giving the chapter number, title, and a one-paragraph statement of what the notebook demonstrates.
  • Reproduce or validate every numerical result flagged in the plan's sanity-targets list. Do not skip targets even if they seem redundant with prose.
  • Include at least one figure per major concept. Use the project's established plotting style (read prior notebooks to find it).
  • Label every figure with a caption that matches or complements the caption used in the corresponding .tex file.
  • End with a markdown cell summarizing the key observed values and whether each sanity target passed or failed.

Stack-Specific Execution

This table is the single source for execution commands. Detect the stack from bookwright.config.yaml and run from the project root, always from a fresh kernel:

notebook_stack Command
python-uv cd notebooks && uv run jupyter nbconvert --to notebook --execute <name>.ipynb --output <name>.ipynb
r-renv cd rmd && Rscript -e 'rmarkdown::render("<name>.Rmd")'
quarto cd qmd && quarto render <name>.qmd

Read the full file on GitHub · 78 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. 1mo ago Changed · -9 lines f22ce32f783d
  2. 1mo ago Changed · +2 tokens per session eff42b2f6cb9
  3. 3mo ago First seen · 87 lines · 46 tokens per session scan A 6919cb096338

Subscribe to this mod's changes

notebook-author is an agent published in the GitHub repository queelius/claude-anvil (3 stars, last pushed 1mo ago), licensed MIT. It adds 48 tokens to every session and 930 once invoked, about $0.0002 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-31.

Related

notebook-author compared with agents from other repositories

notebook-author next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
notebook-authorqueelius/claude-anvilAgent31mo agoMITA48Claude Code
book-authorequinor/neqsimAgent177todayApache-2.0A66Claude Code
ia-best-practices-researcheriliaal/whetstoneAgent37yesterdayMITA34Claude Code
aquaculture-scientistK-Dense-AI/scientific-agentsAgent2692mo agoMITA43Claude Code
metadata-extractortrapoom555/claude-paperloomAgent957mo agoApache-2.0A63Claude Code
wiki-writerOshayr/LLM-WikiAgent517mo agoMITA28Claude Code
gpd-explainerpsi-oss/get-physics-doneAgent9854mo agononeA40Claude Code