Math-to-Manim
Recorded: May 30, 2026, 4:03 a.m.
| Original | Summarized |
GitHub - HarleyCoops/Math-To-Manim: Create Epic Math and Physics Animations & Study Notes From Text and Images. · GitHub Skip to content Navigation Menu Toggle navigation
Sign in
Appearance settings PlatformAI CODE CREATIONGitHub CopilotWrite better code with AIGitHub SparkBuild and deploy intelligent appsGitHub ModelsManage and compare promptsMCP RegistryNewIntegrate external toolsDEVELOPER WORKFLOWSActionsAutomate any workflowCodespacesInstant dev environmentsIssuesPlan and track workCode ReviewManage code changesAPPLICATION SECURITYGitHub Advanced SecurityFind and fix vulnerabilitiesCode securitySecure your code as you buildSecret protectionStop leaks before they startEXPLOREWhy GitHubDocumentationBlogChangelogMarketplaceView all featuresSolutionsBY COMPANY SIZEEnterprisesSmall and medium teamsStartupsNonprofitsBY USE CASEApp ModernizationDevSecOpsDevOpsCI/CDView all use casesBY INDUSTRYHealthcareFinancial servicesManufacturingGovernmentView all industriesView all solutionsResourcesEXPLORE BY TOPICAISoftware DevelopmentDevOpsSecurityView all topicsEXPLORE BY TYPECustomer storiesEvents & webinarsEbooks & reportsBusiness insightsGitHub SkillsSUPPORT & SERVICESDocumentationCustomer supportCommunity forumTrust centerPartnersView all resourcesOpen SourceCOMMUNITYGitHub SponsorsFund open source developersPROGRAMSSecurity LabMaintainer CommunityAcceleratorGitHub StarsArchive ProgramREPOSITORIESTopicsTrendingCollectionsEnterpriseENTERPRISE SOLUTIONSEnterprise platformAI-powered developer platformAVAILABLE ADD-ONSGitHub Advanced SecurityEnterprise-grade security featuresCopilot for BusinessEnterprise-grade AI featuresPremium SupportEnterprise-grade 24/7 supportPricing Search or jump to... Search code, repositories, users, issues, pull requests...
Search Clear
Search syntax tips Provide feedback Include my email address so I can be contacted Cancel Submit feedback Saved searches
Name Query To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up
Appearance settings Resetting focus You signed in with another tab or window. Reload to refresh your session. Dismiss alert HarleyCoops Math-To-Manim Public
Notifications
Fork
Star Code Issues Pull requests Actions Projects Security and quality Insights
Additional navigation options
Code Issues Pull requests Actions Projects Security and quality Insights
mainBranchesTagsGo to fileCodeOpen more actions menuFolders and filesNameNameLast commit messageLast commit dateLatest commit History324 Commits324 Commits.github/workflows.github/workflows .hermes.hermes docsdocs environments/math_to_manimenvironments/math_to_manim evalsevals examplesexamples hermes/skills/hermes-learns-manimhermes/skills/hermes-learns-manim legacy/Math-To-Manimlegacy/Math-To-Manim math_to_manimmath_to_manim promptsprompts scriptsscripts tests/unittests/unit toolstools .gitignore.gitignore AGENTS.mdAGENTS.md Hero.jpgHero.jpg README.mdREADME.md disk-space-audit.ps1disk-space-audit.ps1 instructions.mdinstructions.md pyproject.tomlpyproject.toml requirements-system.txtrequirements-system.txt zzzz.mdzzzz.md View all filesRepository files navigationREADME Math to Manim Motion showcase · Architecture · Prime RL · Roadmap · Agent guide Math-To-Manim turns serious math and physics prompts into Manim explainer videos and the reusable artifacts that produced them: intent, prerequisite graphs, lesson plans, math packets, storyboards, scene specs, generated code, validation reports, render evidence, review notes, and stage traces. Code-grounded workflow: every run stays inspectable from prompt to artifacts to render. What this is Christian Today, that means a durable agent pipeline with: audience-aware request artifacts, from grade-school intuition to advanced notation; The design principle is simple: story before symbols, geometry before algebra, artifacts before side effects. Reverse reasoning pipeline Stage Intent Reverse prerequisites Curriculum Math packet Storyboard Scene spec Code, validation, render, review That gives every run a memory: JSON contracts, generated code, render results, review notes, and a manifest. The output is not just a video; it is an inspectable path from question to understanding to animation. Prime Intellect RL repair loop Run bundle as environment The current hub environment is harleycooper/math-to-manim. A repair task carries the original prompt, typed scene_spec, generated Manim Python, static-validation report, and render/recovery evidence when available. The model must return one strict GeneratedCode JSON block. The Verifiers reward checks whether the proposed code parses, defines the expected Manim scene, avoids unsafe imports and calls, preserves expected math terms, and reduces obvious text/layout crowding hazards. That keeps the fast RL loop text-and-AST based while the slower Manim renderer remains the audit gate. The intended result is a model that learns the house style of this repo: cinematic but readable scenes, sparse formulas, staged captions, safe Manim code, and scripts that are much more likely to render on the first recovery attempt. Clone and run Codex CLI codegen path What lands on disk After editing generated_scene.py inside a run bundle, rerun the recovery path: Hermes Agent Motion showcase Geometry as spectacle See the full gallery with descriptions: docs/showcase/README.md. ffmpeg -y -ss 95 -t 24 -i "$MP4" \ License About Create Epic Math and Physics Animations & Study Notes From Text and Images. Readme Uh oh! There was an error while loading. Please reload this page. Activity 2.1k 16 239 Report repository Releases v1.0.0 - Math-To-Manim Claude Code Plugin Latest Packages
Uh oh! There was an error while loading. Please reload this page. Uh oh! There was an error while loading. Please reload this page. Contributors Uh oh! There was an error while loading. Please reload this page. Languages Python Other
Footer © 2026 GitHub, Inc. Footer navigation Terms Privacy Security Status Community Docs Contact Manage cookies Do not share my personal information You can’t perform that action at this time. |
Math-To-Manim is a system designed to transform complex mathematics and physics prompts, derived from text and images, into detailed explainer videos and associated reusable artifacts. The core methodology involves establishing a code-grounded workflow where the reasoning process is made visible, allowing the relationship between the initial request and the final visual output to be fully inspectable. The system operates by reasoning backward from the final concept to determine necessary prerequisites, structuring a logical teaching sequence, selecting relevant mathematical content, planning visual scene beats, generating Manim code, and finally rendering the animation. The overall process is executed through a multi-stage pipeline involving several specialized agents. This pipeline begins by clarifying the user's intent, establishing the required knowledge graph of prerequisites, defining the teaching curriculum, selecting the necessary mathematical packets (definitions, equations, examples), determining the storyboard (screen beats), compiling scene specifications into Manim objects, and generating the actual code, followed by static review, rendering, and final review. This structured approach ensures that every generation results in a self-contained run bundle, which preserves all reasoning artifacts, including JSON contracts, generated code, validation reports, and render evidence, providing a traceable path from the initial question to the final animation. A key evolution of the system is the introduction of recursive editing, inspired by Recursive Language Models. This advanced capability treats the generated video and its run bundle as an environment that an intelligent agent can inspect and revise. For example, an agent can propose edits, such as adjusting camera angles to improve equation readability, which routes the request back through the scene plan and Manim code for recomputation, validation, and re-rendering. Furthermore, Math-To-Manim is integrated as a reinforcement learning environment known as the Prime Intellect repair loop. In this context, the system is used to train agents to correct flawed outcomes; when generated animation code fails to render, the agent attempts a repair by taking the scene plan, the faulty code, and validation evidence to propose corrected Manim Python. Verifiers assess this proposed code for parseability, adherence to mathematical terms, safety, and visual layout, feeding the results back to update the policy and facilitate recovery. This loop ensures that the resulting agents learn the desired style: cinematic yet readable scenes, sparse formulas, and safe, renderable code. The system is supported by an operator agent named Hermes, which functions as a developer interface around the repository. Hermes can inspect the code, documentation, and generated artifacts within every run bundle to verify that all components adhere to the defined artifact contracts. This capability allows Hermes to maintain the integrity of the reverse-reasoning pipeline without being a runtime dependency of the generation process. The structure of the repository supports this modularity, separating agents, schemas, tools, and the core pipeline orchestration, ensuring transparency and control over the complex generation and refinement process. |