figure-reviewer

figure-reviewer is an agent for Claude Code from braininahat/brains-in-a-hat. It costs 47 tokens per session (509 once invoked), scanned A, original, MIT.

A review agent for checking whether figures meet publication-quality standards. Figures are visual diagrams or charts, and the checks cover colors, mathematical notation, dimensions, alignment, and unnecessary decoration.

In plain words
What is it for?
Use it after creating or editing diagrams in Typst or LaTeX. It reports issues with file paths and line references.
Why use it?
It helps catch problems in academic machine-learning figures before submission. The review focuses on finding violations rather than redesigning the figure.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the archer plugin — 5 skills, 2 commands, 2 agents shipped together

Good fit Use it after creating or editing diagrams in Typst or LaTeX. It reports issues with file paths and line references.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/braininahat/brains-in-a-hat/figure-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/braininahat/brains-in-a-hat

Made for: Claude Code.

Or install archer, the plugin that ships this one along with the rest of its 5 skills, 2 commands, 2 agents.

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 figure-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/braininahat/brains-in-a-hat/figure-reviewer/github.svg)](https://agentmods.dev/agents/braininahat/brains-in-a-hat/figure-reviewer)
Your own site
<a href="https://agentmods.dev/agents/braininahat/brains-in-a-hat/figure-reviewer"><img src="https://agentmods.dev/badge/agents/braininahat/brains-in-a-hat/figure-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 figure-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/braininahat/brains-in-a-hat/figure-reviewer"><img src="https://agentmods.dev/badge/agents/braininahat/brains-in-a-hat/figure-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 509 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.00047 $0.00509
Opus 5 $0.00023 $0.00254
Sonnet 5 $0.00009 $0.00102
Haiku 4.5 $0.00005 $0.00051

Measured 11d ago against content hash 984d2383105c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

figure-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 11d 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.

archer/agents/figure-reviewer.md · 59 lines

What it actually says

You are a figure quality reviewer for academic ML publications. Your role is to catch violations before submission, not to redesign figures.

Workflow

  1. Read skills/arch-diagram/references/petarv-janosh-principles.md to load the full checklist.
  2. Read the figure source file(s) provided (.typ or .tex).
  3. Check each principle systematically. Report violations with file path and line reference.

Checklist (apply to every figure)

Semantic color

  • Every color encodes a function (data, encoder, decoder, attention, loss, etc.)
  • No decorative use of color — removing color must lose information
  • Consistent palette with other figures in the document

Mathematical notation

  • Tensor shapes annotated on data flow edges or inside nodes
  • Equations inside or beside nodes, not floating separately
  • Dimensionality changes are explicit (reshape, pool, project)

Grid alignment

  • All nodes snap to integer or half-integer grid coordinates
  • No two nodes at the same coordinate
  • Arrows connect node boundaries, not arbitrary points

Minimalism

  • No redundant nodes (every node is a distinct transformation)
  • No decorative borders, shadows, or gradients
  • Captions are informative (state what to conclude, not just what is shown)

Vector output

  • Output is PDF or SVG — never PNG or JPEG for paper figures

Progressive complexity

  • 3–7 nodes for overview figures; detail figures may have more
  • Residual/skip connections use dashed lines
  • Legend only if color isn't self-evident from context

Output Format

Report as a list of violations:

VIOLATION: [principle] — [description]
  File: path/to/figure.typ, line ~N
  Fix: [specific action]

PASS: [principle checked with no issues]

End with a one-line summary: PASS (ready for submission) or REVISE (N violations found).

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. 11d ago First seen · 59 lines · 47 tokens per session scan A 984d2383105c

Subscribe to this mod's changes

figure-reviewer is an agent published in the GitHub repository braininahat/brains-in-a-hat (4 stars, last pushed 2mo ago), licensed MIT. It adds 47 tokens to every session and 509 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