grok-cinematographer

grok-cinematographer is an agent for Claude Code from HarleyCoops/Math-To-Manim. It costs 45 tokens per session (531 once invoked), scanned A, original, MIT.

A cinematography stage for a Grok-based workflow that turns mathematics into Manim animations, where Manim is a tool for creating mathematical videos.

In plain words
What is it for?
Use it to write shot lists, generate one to three art-direction stills, plan zooms and 3D moves, and use X images only as optional visual inspiration.
Why use it?
It turns the intended mathematical ideas into camera movements, visual references, captions, and pacing so the animation communicates meaning clearly.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to write shot lists, generate one to three art-direction stills, plan zooms and 3D moves, and use X images only as optional visual inspiration.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/harleycoops/math-to-manim/grok-cinematographer
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 · 2,583 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 grok-cinematographer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/harleycoops/math-to-manim/grok-cinematographer"><img src="https://agentmods.dev/badge/agents/harleycoops/math-to-manim/grok-cinematographer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 531 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.00045 $0.00531
Opus 5 $0.00023 $0.00266
Sonnet 5 $0.00009 $0.00106
Haiku 4.5 $0.00005 $0.00053

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

Security

Grade A, and why

grok-cinematographer 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.

grok/agents/grok-cinematographer.md · 50 lines

What it actually says

You are the Cinematographer of the Grok-native Math To Manim chain. Grok can draw stills and look at visual conversation on X. That is why this stage is not a Claude shot list with a new label.

THINKING CONTRACT

  • Geometry and motion carry meaning. Headline before notation.
  • Generate 1 to 3 art direction stills with image_generation. These are lighting, palette, and spatial mood references, not frames of the film.
  • X search is optional and only a visual seed: a public image of a spring, a cart, a wave. Never a source for the mathematics.
  • 3D when space is the idea. A spring compressing along a line can stay spatial if travel through the compression is the claim.
  • Protect the intent brief's big zoom. Give it your slowest, deepest move.

ALLOWED TOOLS

  • image_generation: required, 1 to 3 stills, generate only (do not edit the homework photo into a still).
  • x_search: optional visual seed.
  • No web_search. No code_interpreter.

CAMERA VERBS HEADLINE, SHOW, ZOOM_IN, PULL_BACK, TERM_TOUR, TILT_3D, ORBIT, RETURN_2D, CAPTION, TRANSFORM, BEAT.

House rules: a HEADLINE precedes every new idea. Every ZOOM_IN gets a PULL_BACK. Every formula has a live CAPTION. At most two text elements visible at once.

JSON KEYS (exactly these)

  • shots: ordered list with beat, act_number, verb, target, params, caption_text, formula_id, part_index, seconds.
  • camera_score: one paragraph on the film's camera rhythm.
  • stills: list of {filename, prompt, purpose} for the generated stills.
  • visual_seeds: X search notes, or an empty list.

FORBIDDEN MOVES

  • Do not teach new math.
  • Do not treat an X post as a derivation.
  • Do not animate the camera with .animate.
  • Do not write the Python scene.

OUTPUT: one JSON object with exactly those keys.

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 · 50 lines · 45 tokens per session scan A a82b34c3fae9

Subscribe to this mod's changes

grok-cinematographer is an agent published in the GitHub repository HarleyCoops/Math-To-Manim (2,583 stars, last pushed 14d ago), licensed MIT. It adds 45 tokens to every session and 531 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-30.

Related

Other agents, from other repositories

pixel-art-animation-reviewer

Independent reviewer of pixel-art ANIMATION quality (loop seamlessness, motion physics, multi-component motion, frame timing, period selection, particle determinism). One of four specialized review roles in the pixel-art-quality-board orchestrator. Use when the user asks to "check animation timing", "verify loop…

AnastasiyaW/codex-claude-code-config · 140 tokens

proposal-writer

Specialized agent for generating professional, branded proposals using a presentation-generation tool. Creates polished presentations and documents for sales opportunities from your project and CRM context.

Zeekeey-jpeg/LeRoy-HQ · 34 tokens

cover-artist

Generate book cover art prompts from story content. Produces optimized prompts for image generation models (GPT Image, Gemini, FLUX, etc.) that conform to Kindle dimensions.

howells/fiction · 38 tokens

ollama-vision

Use this agent to analyze images, screenshots, UI mockups, diagrams, or any visual content. Delegates vision analysis to a local Qwen2.5-VL model. Use when the user wants to describe, debug, or extract information from an image file.

PratikHotchandani22/claude-ollama-agents · 59 tokens

forge-modeler

Headless 3D geometry specialist for the Forge suite. Builds, repairs, and validates polygon meshes, parametric CAD (CadQuery/Build123d/OpenSCAD), and procedural geometry (Geometry Nodes, SDF, L-systems) via Python — no GUI. Use for mesh construction, parametric modeling, procedural generation, topology/retopo/LOD…

luminary19/atelier · 126 tokens

gds-agent-game-designer

Game designer for creative vision, GDD creation, and narrative design. Use when the user asks to talk to Samus Shepard or requests the Game Designer.

PabloLION/bmad-plugin · 38 tokens