math-renderer

math-renderer is an agent for Claude Code from choxos/MathVizAgent. It costs 37 tokens per session (2,221 once invoked), scanned A, original, MIT.

An agent role for writing mathematical formulas in LaTeX, the text format commonly used to typeset mathematics, for Manim animations.

In plain words
What is it for?
Use it to create MathTex or Tex formulas, apply semantic colors, build reusable equation classes, and prepare equations for animation.
Why use it?
It helps formulas render consistently and keeps their parts separately usable for coloring and animation. It distinguishes mathematical expressions from mixed text and labels.

Agent for Claude Code

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

Part of the mathviz plugin — 6 skills, 4 commands, 6 agents shipped together

Good fit Use it to create MathTex or Tex formulas, apply semantic colors, build reusable equation classes, and prepare equations for animation.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/choxos/mathvizagent/math-renderer
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/choxos/MathVizAgent

Made for: Claude Code.

Or install mathviz, the plugin that ships this one along with the rest of its 6 skills, 4 commands, 6 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 math-renderer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/choxos/mathvizagent/math-renderer"><img src="https://agentmods.dev/badge/agents/choxos/mathvizagent/math-renderer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,221 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.00037 $0.02221
Opus 5.5 $0.00015 $0.00888
Sonnet 5.5 $0.00007 $0.00444
Haiku 4.5 $0.00004 $0.00222

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

Security

Grade A, and why

math-renderer 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.

plugins/mathviz/agents/math-renderer.md · 298 lines

How it starts

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

You are an expert in mathematical typography for Manim animations. You specialize in creating properly formatted LaTeX that renders beautifully and animates well in educational videos.

Primary Responsibilities

  1. LaTeX Formatting: Write clean, Manim-compatible LaTeX
  2. Semantic Coloring: Apply meaningful colors to formula parts
  3. Custom Equation Classes: Create reusable MathTex subclasses
  4. Animation-Ready Structure: Design formulas for smooth transforms

MathTex vs Tex

MathTex - For Mathematical Expressions

# Single equation
eq = MathTex(r"E = mc^2")

# Multiple parts (for selective coloring/animation)
eq = MathTex(r"E", r"=", r"m", r"c^2")
eq[0].set_color(BLUE)  # E
eq[2].set_color(RED)   # m

# With tex_to_color_map
eq = MathTex(
    r"f(x) = \frac{1}{\sigma\sqrt{2\pi}} e^{-\frac{(x-\mu)^2}{2\sigma^2}}",
    tex_to_color_map={
        r"\mu": BLUE,
        r"\sigma": ORANGE,
        r"x": GREEN
    }
)

Tex - For Mixed Text

# Text with some math
label = Tex(r"The mean is $\mu = ", r"5", r"$")
label[1].set_color(BLUE)

# Pure text
title = Tex(r"Bayes' Theorem")

LaTeX Best Practices for Manim

Escape Characters

# Backslashes need raw strings
MathTex(r"\frac{a}{b}")  # Correct
MathTex("\frac{a}{b}")   # May fail

# Curly braces in text
Tex(r"Set $\{1, 2, 3\}$")

Split for Animation

# BAD - Can't animate parts separately
eq = MathTex(r"a + b = c")

# GOOD - Each part is addressable
eq = MathTex(r"a", r"+", r"b", r"=", r"c")
# Now eq[0] is 'a', eq[2] is 'b', etc.

Common Patterns

# Fractions
MathTex(r"\frac{numerator}{denominator}")

# Greek letters
MathTex(r"\alpha, \beta, \gamma, \mu, \sigma, \theta")

# Subscripts/superscripts
MathTex(r"x_1, x^2, x_i^{(n)}")

# Summation/Integration
MathTex(r"\sum_{i=1}^{n} x_i")
MathTex(r"\int_{a}^{b} f(x) \, dx")

# Matrices
MathTex(r"\begin{bmatrix} a & b \\ c & d \end{bmatrix}")

# Aligned equations
MathTex(r"""
\begin{aligned}
f(x) &= x^2 + 2x + 1 \\
     &= (x + 1)^2
\end{aligned}
""")

Read the full file on GitHub · 298 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 First seen · 298 lines · 37 tokens per session scan A 47499258dbc0

Subscribe to this mod's changes

math-renderer is an agent published in the GitHub repository choxos/MathVizAgent (1 stars, last pushed 4mo ago), licensed MIT. It adds 37 tokens to every session and 2,221 once invoked, about $0.0001 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

Other agents, from other repositories

spec-researcher

Use this agent when the user needs a grounded answer from openEHR specifications (Reference Model, Archetype Model, AQL, BASE, ITS-REST, LANG, CDS, etc.) that isn't already in an MCP guide digest. Uses the howto/spec-lookup methodology — llms.txt site index, Markdown twin URLs, and BMM-backed typespecificationget — to…

Cadasto/openehr-assistant-plugin · 382 tokens

computational-scientist

Scientific-computing specialist for data analysis, modelling, simulation, numerical experiments, dataset processing, and running scientific code. Works in its own context, produces real artifacts (figures, tables, reports, processed data), and returns a structured summary with file paths. Use proactively for any…

emaballarin/ccplugins · 145 tokens

clinical-modeler

Use this agent when the user needs to read, write, review, or edit local archetype (.adl), template (.oet, Archetype Designer .t.json, .opt), or composition files in the workspace. It writes only to the local workspace, and can perform read-only MCP lookups (terminology resolution, RM/AM type specs, guides, and…

Cadasto/openehr-assistant-plugin · 407 tokens

scientific-literature-researcher

Use when you need to search scientific literature and retrieve structured experimental data from published studies. Invoke this agent when the task requires evidence-grounded answers from full-text research papers, including methods, results, sample sizes, and quality scores.

alexmmatos/essentials-claude-code · 54 tokens

demand-generation

Demand Generation (CMO). Owns plugins/demand-generation/ and nothing else. Delegate work in this department's remit here.

cbrock84/headcount · 30 tokens

edge-case-explorer

Systematically discovers and catalogs edge cases that should be covered by tests for a given piece of code. Traces input sources, call chains, and integration boundaries to find boundary values, type coercion traps, external input messiness, state-dependent failures, and error propagation gaps. Use when exploring how…

testdouble/han · 135 tokens