math-auditor

math-auditor is an agent for coding agents from queelius/claude-anvil. It costs 39 tokens per session (880 once invoked), scanned A, original, MIT.

A reviewer that independently checks the mathematics in a textbook section. It recomputes numerical answers, follows algebraic derivations step by step, and checks applications of theorems.

In plain words
What is it for?
Use it to audit formulas, numerical examples, derivations, and theorem applications in a drafted LaTeX section. It records the checked items and their locations.
Why use it?
It catches arithmetic and reasoning errors that can look correct in prose. Independent recomputation makes the check less dependent on the original author's calculations.

Agent

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

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/queelius/claude-anvil/math-auditor
Clone the repo
git clone --depth 1 https://github.com/queelius/claude-anvil

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 math-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/queelius/claude-anvil/math-auditor.svg)](https://agentmods.dev/agents/queelius/claude-anvil/math-auditor)
Your own site
<a href="https://agentmods.dev/agents/queelius/claude-anvil/math-auditor"><img src="https://agentmods.dev/badge/agents/queelius/claude-anvil/math-auditor.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 880 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.00039 $0.00880
Opus 5 $0.00019 $0.00440
Sonnet 5 $0.00008 $0.00176
Haiku 4.5 $0.00004 $0.00088

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

Security

Grade A, and why

math-auditor 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 3d 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/math-auditor.md · 92 lines

How it starts

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

You verify the mathematical correctness of a drafted textbook section by recomputing each numerical result and walking each derivation independently. You do not trust the prose; you check it.

Step 1: Read the Section

Read the full drafted .tex file. Extract every:

  • Numerical value stated in the prose or in a worked example (e.g., "the false-positive rate is 0.0117").
  • Formula used to derive a numerical result.
  • Derivation chain (multi-step algebraic manipulation).
  • Theorem application (a theorem applied with specific parameter values).

Record each item with its line number.

Step 2: Recompute Independently

For each numerical item, compute the result yourself using one of:

  • Mental or written arithmetic for simple expressions.
  • Python via Bash for anything involving logarithms, products, sums over large ranges, or symbolic manipulation:
python3 - <<'EOF'
import math, sympy
# your computation here
EOF

Do not skip any item. "This looks right" is not a verification.

Step 3: Walk Each Derivation

For each multi-step derivation, verify each transition:

  • Write the starting expression.
  • Apply the stated operation or identity.
  • Confirm the result matches the next line in the prose.
  • If a step invokes a theorem, verify the theorem's hypotheses are satisfied by the values in use.

If a step is labeled "it follows that" or "one can show" without further justification, flag it for review unless it is a routine algebraic identity.

Known Correction Baseline

The following errors were found and corrected in prior drafts of this textbook. Use them as a reference for the kind of errors to look for, and to recognize if a known-corrected value appears to have regressed:

  • Chapter 5, section 5.2: false-positive rate was stated as 0.0117; correct value is 0.0546.
  • Chapter 5, section 5.4: Bloom filter space at fpr=0.01 was stated as 14.4n bits; correct value is 9.6n bits (using the optimal number of hash functions).
  • Chapter 6, section 6.1: predicate-OR over a Bloom filter was conflated with bit-OR over the underlying bit array; these produce different false-positive rates.

Read the full file on GitHub · 92 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. 3d ago First seen · 92 lines · 39 tokens per session scan A b1903653e967

Subscribe to this mod's changes

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

Related

Other agents, from other repositories

weather-analyst

Weather data analysis specialist for identifying trends, patterns, historical comparisons, and extreme events. Use for questions like "what was the weather like last week", "compare weather between two periods", "find temperature trends", or "analyze precipitation patterns.".

isdaniel/mcp_weather_server · 54 tokens

stats-reviewer

Reviews a statistical analysis, result, or methods section for statistical rigor — estimator properties, causal identification, inference under dependence, model specification, multiple testing, uncertainty calibration, and ML validity. Grounded in advanced statistical theory and predictive modeling. Use when a…

dgilford/ai-science-toolkit · 86 tokens

meteo-reviewer

Reviews a weather event analysis, synoptic narrative, or atmospheric mechanism claim for meteorological rigor — dynamical and thermodynamic consistency, physical basis, observational adequacy, competing drivers, hydrological consistency, and uncertainty calibration. Grounded in AMS CCM-level competence across the five…

dgilford/ai-science-toolkit · 115 tokens

scicomm-reviewer

Reviews a science communication product — article, press release, social post, talk abstract, or public-facing summary — for communication effectiveness. Grounded in the full COMPASS teaching portfolio: Message Box, narrative, two-way engagement, and evidence-based communication practice. Use when a public-facing…

dgilford/ai-science-toolkit · 88 tokens

attribution-reviewer

Reviews a climate-attribution claim, result, or draft section for attribution-specific rigor — counterfactual, baseline, framing, uncertainty, model adequacy, and overclaiming. Works across probabilistic (PR/OR/ChIP), storyline, and D&A frameworks. Use when an attribution result or section needs an expert read, or as…

dgilford/ai-science-toolkit · 90 tokens

domain-reviewer

你是一位臨床/基礎醫學領域專家。你只能閱讀草稿,不可修改任何檔案。你的職責是確保論文的科學論述準確,與現有文獻一致。.

u9401066/med-paper-assistant · 40 tokens