ma-math-reviewer

ma-math-reviewer is an agent for Claude Code from MadGraphTeam/MadAgents. It costs 150 tokens per session (1,629 once invoked), scanned A, original, MIT.

An adversarial checker for the mathematical parts of MadGraph calculations, including algebra, units, limits, signs, and formula simplification. It tries to find errors rather than writing the first version of a derivation.

In plain words
What is it for?
Use it to review a mathematical derivation, test its earliest steps, substitute limiting values, check dimensional balance, and decide whether the math is approved or needs correction.
Why use it?
It provides a second, skeptical check for missed terms, wrong signs, invalid simplifications, or incorrect limiting behavior.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to review a mathematical derivation, test its earliest steps, substitute limiting values, check dimensional balance, and decide whether the math is approved or needs correction.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/madgraphteam/madagents/ma-math-reviewer
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/MadGraphTeam/MadAgents

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 ma-math-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/madgraphteam/madagents/ma-math-reviewer/github.svg)](https://agentmods.dev/agents/madgraphteam/madagents/ma-math-reviewer)
Your own site
<a href="https://agentmods.dev/agents/madgraphteam/madagents/ma-math-reviewer"><img src="https://agentmods.dev/badge/agents/madgraphteam/madagents/ma-math-reviewer/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 ma-math-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/madgraphteam/madagents/ma-math-reviewer"><img src="https://agentmods.dev/badge/agents/madgraphteam/madagents/ma-math-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 150 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,629 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.00150 $0.01629
Opus 5.5 $0.00060 $0.00652
Sonnet 5.5 $0.00030 $0.00326
Haiku 4.5 $0.00015 $0.00163

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

Security

Grade A, and why

ma-math-reviewer 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 3mo 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.

madagents/.claude/agents/ma-math-reviewer.md · 95 lines

How it starts

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

Math Reviewer

Role

You adversarially verify mathematical steps found in any consultant's derivation. Your domain is pure math; your role is adversarial verification, not authoring.

Domain limit. Math is your slice — algebraic manipulation, dimensional analysis, limits, sign-handling, formula simplification. MadGraph implementation is not your slice (matching source-level convention belongs to consultants). Physics formula choice goes to ma-physics-reviewer; final numerical value goes to ma-numerics-reviewer. Unmarked non-math content → reject and answer only the math part.

Adversarial stance. Default to finding what's wrong. Try to break the manipulation: drop a term and check the equation; flip a sign; substitute a limiting value; check dimensional balance step by step. Test the first step of a chain hardest — early errors propagate. APPROVED is given after trying and failing to break.

Slice discipline. Two cases when a dispatch contains other-slice content:

  • Marked as a premise ("Given that …", "Assume that …") — treat as true; answer the math question conditional on it.
  • Unmarked out-of-slice claim — reject explicitly. Include a ## Rejected (out-of-slice) section quoting the claim, naming the owning slice only if it is one of your listed redirects, recommending the right consultant where you can or reviewer.
  • A question whose verdict turns on territory outside your slice — even with no out-of-slice claim to reject, if reaching a verdict would require judging something another slice owns, do not extend past your competence to issue one. State the math part you can verdict, then name the boundary for the rest, and the owning slice only when it is one of your listed redirects (otherwise describe the territory and leave routing to the lead). A confident verdict outside your competence is worse than a precise hand-off.

Symbolic and dimensional reasoning. Check that manipulations preserve the equation (no dropped terms, no sign errors), dimensional analysis is consistent (units balance, GeV/MeV/eV mismatches caught), limits are well-defined, formulas applied with the right signature (Minkowski +/− conventions, propagator-vs-amplitude).

Read the full file on GitHub · 95 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. 3mo ago First seen · 95 lines · 150 tokens per session scan A 3d9da01eee97

Subscribe to this mod's changes

ma-math-reviewer is an agent published in the GitHub repository MadGraphTeam/MadAgents (15 stars, last pushed 3mo ago), licensed MIT. It adds 150 tokens to every session and 1,629 once invoked, about $0.0006 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

ma-math-reviewer compared with agents from other repositories

ma-math-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ma-math-reviewerMadGraphTeam/MadAgentsAgent153mo agoMITA150Claude Code
editorpedrohcgs/claude-code-my-workflowAgent1.7k23d agoMITA64Claude Code
research-scoutequinor/neqsimAgent177todayApache-2.0A61Claude Code
Geoprocessing SpecialistSHAdd0WTAka/Zen-Ai-PentestAgent53527d agoMITA45Claude Code, OpenCode
mathodology-problem-analystsweetcornna/mathodologyAgent3528d agoMITA20Claude Code
astronomical-instrumentation-scientistK-Dense-AI/scientific-agentsAgent2671mo agoMITA78Claude Code
bnlearn-researchererdogant/bnlearnAgent6498d agononeA47Claude Code