A ~70 s film of the current design, cut from footage the repo makes itself: the Cycles renders in
hardware/*/renders/, the print-plate viewer, and the console with its digital twin running a plate the agent
designs. The music is the first minute and a bit of "1984 Mechanical Heart" (expected in ~/Downloads).
Everything in it is CAD and simulation. The rebuilt bench has not been filmed yet.
| Shot | Source |
|---|---|
| Title over a slow orbit of the bench | twin, full screen |
| Bench, tool head, tool rail, probe, phone stand | hardware/tool-head/renders, hardware/phone-stand/renders |
| Seven support-free print plates | hardware/print/viewer |
| "find the most orange mix of red and yellow": typed, the agent's tool calls, the plate it designs | console |
| The dry run of that plate | twin, the simulator's keyframes interpolated |
| Approve, the run starts | console (mock bridge) |
| The finished plate, end card | twin |
Needs Google Chrome and uv (ffmpeg comes from imageio-ffmpeg). Start the stack on a fresh store so the console's
experiment list is empty, with ANTHROPIC_API_KEY in cloud/.dev.vars (the rule-based agent works too, but it is
not the film):
cd cloud && npx wrangler d1 migrations apply labrat --local --persist-to /tmp/labrat-film \
&& npx wrangler dev --persist-to /tmp/labrat-film # terminal 1
cd bridge && uv run python -m labrat_bridge --server ws://127.0.0.1:8787 --token labrat --mock all # terminal 2
python hardware/print/viewer/serve.py # terminal 3 (viewer/build.py first)Then, from the repo root (LABRAT_TOKEN if it is not labrat):
uv run --with playwright --with pillow python video/capture.py ui # ~1 min: build/ui/ + the experiment id
uv run --with playwright --with pillow python video/capture.py viewer # build/viewer.png
uv run --with playwright --with pillow python video/capture.py twin # 750 frames, ~3 s each in software WebGL
uv run --with playwright --with pillow --with imageio-ffmpeg python video/edit.py # build/labrat.mp4 + labrat-poster.jpgtwin skips frames already on disk, so it can be stopped and resumed; delete build/twin/<shot>/ after changing
a shot in SHOTS. Captions, shot order and timing are in film() in edit.py.