Awwab.md

activeApr 2026 – present

MAGNL

AI-powered mathematical animation generator

MAGNL agent pipelineA prompt goes to a math understanding agent that plans three to six beats, then a skill loader that picks Manim rules and examples from a skill pack, then a code writer, then a sandbox executor that renders the scene. If rendering fails, the error is fed back to the code writer to retry. On success, a narration agent voices the script with Deepgram and an assembler merges audio and video with ffmpeg. The pipeline runs as a FastAPI job that uploads to Cloudinary and calls a webhook when done.“Explain the chain rule visually”Math understandingplan of 3–6 beatsSkill loaderpicks the skillsCode writerrunnable ManimSandbox executorrenders, or failsSkill packrules · examplesfail: error fed backsuccessNarrationDeepgram voiceAssemblerffmpeg: sync A/VNarrated videorendered + voicedserved as a job: FastAPI · background run · upload to Cloudinary · webhook backmain pathretry and lookups
fig. 1MAGNL's pipeline. Six focused agents take a prompt to a narrated animation; when a render fails, the error goes back to the code writer for another attempt.

MAGNL is one of my most ambitious AI engineering projects to date. It transforms natural language prompts into fully animated mathematical visualizations using a multi-agent architecture. The system uses LangGraph to orchestrate specialized agents responsible for planning, code generation, validation, rendering, and refinement, ultimately producing high-quality Manim animations.

The project combines large language models with workflow orchestration, retrieval techniques, and animation pipelines, allowing users to generate educational mathematical content through simple natural language instructions.