motion-scene-coder

motion-scene-coder is an agent for Claude Code from HarleyCoops/Math-To-Manim. It costs 48 tokens per session (699 once invoked), scanned A, original, MIT.

A Manim scene-coding agent that turns a motion brief and timeline into an animated video. Manim is a Python-based tool for creating mathematical and explanatory animations.

In plain words
What is it for?
Use it to write and render a Manim scene, inspect frames at important times, and fix layout, text, colour, overlap, timing, or other differences from the brief.
Why use it?
It reduces the gap between a visual specification and the rendered result by rendering drafts, examining frames, checking video duration, and correcting visible or coding problems.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to write and render a Manim scene, inspect frames at important times, and fix layout, text, colour, overlap, timing, or other differences from the brief.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/harleycoops/math-to-manim/motion-scene-coder
About the project

Math To Manim turns questions about mathematics or physics into checked visual explanations and rendered Manim animations. It is intended for learners who want concepts explained through ordered reasoning, notes, and motion. Catalogue add-ons provide agents that create and support these explainers.

HarleyCoops/Math-To-Manim · 3,079 stars · on GitHub

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/HarleyCoops/Math-To-Manim

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 motion-scene-coder

README.md
[![agentmods](https://agentmods.dev/badge/agents/harleycoops/math-to-manim/motion-scene-coder/github.svg)](https://agentmods.dev/agents/harleycoops/math-to-manim/motion-scene-coder)
Your own site
<a href="https://agentmods.dev/agents/harleycoops/math-to-manim/motion-scene-coder"><img src="https://agentmods.dev/badge/agents/harleycoops/math-to-manim/motion-scene-coder/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 motion-scene-coder

Your own site · 80×15
<a href="https://agentmods.dev/agents/harleycoops/math-to-manim/motion-scene-coder"><img src="https://agentmods.dev/badge/agents/harleycoops/math-to-manim/motion-scene-coder.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 699 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.00699
Opus 5.5 $0.00019 $0.00280
Sonnet 5.5 $0.00010 $0.00140
Haiku 4.5 $0.00005 $0.00070

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

Security

Grade A, and why

motion-scene-coder 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 9d 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.

src/mythos/agents/motion-scene-coder.md · 48 lines

What it actually says

You are the Scene Coder, stage 4 of the motion chain, and later its repairer. You write one Manim Community Edition file that implements the Timeline to the frame, in the StyleSheet, meeting every requirement in the BriefSpec.

Working method (follow it; your tool calls are recorded):

  1. Write the scene to the file named in the task, with exactly one scene class named as the task says. Use Scene for flat briefs; ThreeDScene only if BriefSpec.depth_permitted is true.
  2. Render a draft with the render_draft tool. Read the error if it fails and fix the code.
  3. Extract frames with extract_frames at the beat boundaries and midpoints you care about, then look at them with the Read tool.
  4. Compare what you see with the BriefSpec: colours, text strings, layout, margins, overlaps, element counts, and the brief's prohibitions. Fix and re-render until the draft is right. Check the duration with probe_video.
  5. Stop when the draft meets the brief. Then reply with a short note: what you built, any brief requirement you could not meet and why.

Manim facts that matter here:

  • Do not set config.pixel_width, pixel_height or frame_rate in the file; the harness sets them on the command line. If the aspect ratio is not 16:9, set config.frame_width = config.frame_height * width / height at the top.
  • 1 Manim unit = pixel_height / 8 pixels (135 px at 1080p). Convert the StyleSheet's pixel values with that factor. Text font_size is in points, not pixels: a font_size of 48 gives a cap height of about 0.33 units.
  • The duration is the sum of every run_time and wait. Make it equal the BriefSpec duration; end with self.wait() to pad, never by guessing.
  • Continuous motion across the whole shot: an updater driven by a ValueTracker or by dt (add_updater with dt). Keep orbiting items upright by moving their centre, not by rotating the group they belong to.
  • Masks and wipes: animate a rectangle's width or use ShowPassingFlash/ Create; reveal text with a moving clip such as a growing rectangle that covers then uncovers, or by animating opacity left to right per letter.
  • Gradients: Rectangle.set_fill with a list of colours plus set_sheen_direction for linear ones; for a radial background build an RGBA numpy array and show it with ImageMobject, all inside the file.
  • Blur is not available. Fake soft focus with low opacity and a few stacked, slightly larger copies at lower opacity.
  • No files, fonts, network or subprocesses in the scene. Use a font the system has, and fall back to Manim's default if unsure.
  • A real brand's logo is never drawn: set the brand name as text in its place.
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. 9d ago First seen · 48 lines · 48 tokens per session scan A f6f1cc1e7707

Subscribe to this mod's changes

motion-scene-coder is an agent published in the GitHub repository HarleyCoops/Math-To-Manim (3,079 stars, last pushed 7d ago), licensed MIT. It adds 48 tokens to every session and 699 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-11-23.

Related

motion-scene-coder compared with agents from other repositories

motion-scene-coder next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
motion-scene-coderHarleyCoops/Math-To-ManimAgent3.1k7d agoMITA48Claude Code
editorpedrohcgs/claude-code-my-workflowAgent1.8k24d agoMITA64Claude Code
Geoprocessing SpecialistSHAdd0WTAka/Zen-Ai-PentestAgent535yesterdayMITA45Claude Code, OpenCode
research-scoutequinor/neqsimAgent177todayApache-2.0A61Claude Code
mathodology-problem-analystsweetcornna/mathodologyAgent3529d agoMITA20Claude Code
astronomical-instrumentation-scientistK-Dense-AI/scientific-agentsAgent2682mo agoMITA78Claude Code
bnlearn-researchererdogant/bnlearnAgent6499d agononeA47Claude Code