Skip to content

Animate a concept with ManimGX

Run xpd animate to inspect, render, and revise an editable ManimGX video from a built-in starter recipe or your own scene across Linux, macOS, and Windows. If you use the xpd agent plugin, ask the agent in plain language to animate any concept in your project.

Edit and run xpd animate reviseApprovedxpd animate doctor andsetupxpd animate catalog<family> and guidexpd animate inspect(storyboard and 2D layoutchecks)xpd animate start (1080p60preview)Render the next previewxpd animate approve(4K60)

Before writing scene code, inspect the bundled ManimGX 0.1.1 module catalog to compare sibling primitives deliberately instead of reaching for the first familiar class.

Terminal window
xpd animate catalog
xpd animate catalog motion --json
xpd animate catalog easing

xpd animate setup creates a managed uv virtual environment under ~/.local/share/xpd/animate/ with pinned manimgx==0.1.1 on Python 3.14. Text and LaTeX math use bundled Typst and Noto fonts, video encoding uses bundled x264, and Linux wheels bundle Mesa lavapipe for CPU fallback when no Vulkan GPU is present. Starter recipes and guides work offline.

Terminal window
xpd animate doctor
xpd animate setup
xpd animate doctor --json

Inspect a scene first without encoding video to check the timeline, annotated storyboard, and 2D layout diagnostics (clipped mobjects, overlapping text, lines or fills over text, and small labels).

Terminal window
xpd animate guide sequence > cache_miss.py
xpd animate inspect cache_miss.py CacheMiss --json
xpd animate start cache_miss.py CacheMiss --json

Use the returned run ID in place of RUN. Approve revision 1 if the first preview is ready. After editing, submit a new revision and inspect its preview before approving it.

Terminal window
xpd animate revise RUN --revision 1 --note "Hold the last frame longer" --json
xpd animate status RUN --json
xpd animate approve RUN --revision 2 --json

The project holds source bundles and render artifacts under .xpd-animate/. Duroxide stores review history in SQLite under $XDG_STATE_HOME/xpd/animate, defaulting to ~/.local/state/xpd/animate. Run commands from the same project directory so xpd can find its history.

Approval renders the saved revision even if the working files have changed. Use xpd animate resume RUN to recover an interrupted render. For a standalone render, use xpd animate render with one of the following profiles.

Profile Output Resolution
draft Fast MP4 and annotated storyboard 854 by 480 at 15 fps
preview MP4 and annotated storyboard 1920 by 1080 at 60 fps
final MP4 and annotated storyboard 3840 by 2160 at 60 fps
still PNG of the last frame 1280 by 720

Pass --asset <path> (relative to the project root) for any helper module, image, audio clip, or data file, and resolve assets inside Python via Path(__file__).parent.

Terminal window
xpd animate render scenes/chart.py SalesChart --profile draft \
--asset scenes/data/monthly.csv --json

Start xpd mcp --root . and call the three animate_ tools over stdio. Run xpd animate catalog, xpd animate guide, and xpd animate inspect in the shell.

MCP tool Purpose
animate_status Check managed ManimGX runtime readiness
animate_render Render a file path, inline source.files map, or from_job revision with draft, preview, final, or still
animate_artifact Retrieve contact_sheet (default), video, still, subtitles, source, manifest, or log by job_id

Clients without filesystem access can submit inline source text directly to animate_render.

{
"scene": "CircleDemo",
"profile": "preview",
"source": {
"entry": "circle.py",
"files": {
"circle.py": "import manimgx as m\n\nclass CircleDemo(m.Scene):\n def construct(self) -> None:\n self.play(m.Create(m.Circle()))\n"
}
}
}