Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

2.8 KB
Raw Blame

Manim, as a Harness agent

Harness agent package for Manim Community: describe an explanation in the chat pane, watch it animate in the Video Viewer pane as the scenes render. Runs on Claude Code.

Inspect a moment with the frame controls and press S to keep its PNG. Give the saved path back to the agent with what should change. Each different image has its own path, so later renders preserve the frame you meant; C copies it, with the same saved-frame fallback when the clipboard is unavailable.

  • harness.json — engine, template, skill, toolchain, viewer.use: autonomous/video-viewer.
  • skills/manim/ — the Manim skill (ours): the library, the commands, the rules of a good scene.
  • toolchain/setup.sh makes one environment with the pinned Manim (MANIM_VERSION): conda-forge's Python, pycairo and manimpango, Manim from PyPI on top, no Homebrew and no ffmpeg binary (PyAV encodes); doctor.sh checks it and LaTeX; init-workspace.sh renders the starter; verdict.py judges the newest render.
  • toolchain/render.py is how the agent renders: manim render with --media_dir out --save_sections, plus .harness/render.json while it runs (scene, animation n of ~m, section, clips so far, the error and its line on failure) and .harness/renders/<video>.json when a scene lands (animations, sections, the clips before) — what the Video Viewer needs to play a render as it is made, show chapters, and mark what changed. It wraps a handful of Manim methods, each call through first, so a Manim it does not know still renders.
  • template/ — a fresh workspace with a starter scene.

Credit and stewardship

Manim is the Manim Community's — ManimCommunity/manim, MIT (LICENSE-manim), descended from Grant Sanderson's (3Blue1Brown) original. Nothing of it is changed here; it is installed from PyPI as they release it. This folder is the Harness wrapper — the manifest, a skill, the template, the toolchain and the verdict — written by Autonomous to bring Manim into Harness. We did that work on the project's behalf, to bootstrap the catalogue.

If you maintain Manim and want to own its Harness package, it is yours: open an issue on OpenHarness and we move this folder into a repository of yours and point the registry entry at it. Until then: bugs in Manim belong upstream, bugs in the wrapper belong here, and a newer Manim is a bump of MANIM_VERSION.

harness dsh check .                                # conformance
harness dsh install "$PWD" --link                  # this checkout as the installed agent
python3 -m unittest toolchain/test_verdict.py toolchain/test_render.py   # verdict and wrapper, without manim