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 · 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 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.5 $0.00018 $0.00212
Sonnet 5.5 $0.00009 $0.00106
Haiku 4.5 $0.00005 $0.00053

Measured 3mo ago against content hash a82b34c3fae9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

src/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. 3mo 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 (3,079 stars, last pushed 7d ago), licensed MIT. It adds 45 tokens to every session and 531 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-08-30.

Related

grok-cinematographer compared with agents from other repositories

grok-cinematographer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
grok-cinematographerHarleyCoops/Math-To-ManimAgent3.1k7d agoMITA45Claude Code
playwright-test-generatormicrosoft/playwrightAgent102ktodayApache-2.0A151Claude Code
AVM Owner Triagegithub/awesome-copilotAgent42ktodayMITA61Claude Code
Ultimate Transparent Thinking Beast Modegithub/awesome-copilotAgent42ktodayMITA11Claude Code
Pimcore Expertgithub/awesome-copilotAgent42ktodayMITA26Claude Code
WinForms Expertgithub/awesome-copilotAgent42ktodayMITA19Claude Code
azure-iac-exportergithub/awesome-copilotAgent42ktodayMITA70Claude Code