A local video studio for your coding agent. Describe a video in one sentence: your agent directs, your machine renders. Claude Code, Codex, Cursor, Devin and more. No API keys, no uploads.
Python agent-skillsai-agentscaptionsclaude-codeclaude-code-pluginclaude-skillscodexcursorexplainer-videoffmpegheadless-chromekokoro-ttslocal-firstmanimmcp-servermotion-graphicstext-to-speechvideovideo-editingvideo-generation
Site: harness loops can be paused, and the film has captions
Favio Vázquez95bf716a1a86
diff --git a/site/content/harness.html b/site/content/harness.htmlindex e6b775b..fbe8a84 100644--- a/site/content/harness.html+++ b/site/content/harness.html@@ -379,7 +379,7 @@<figure class="loop"><video src="media/6-typed-judgments.mp4" poster="media/6-typed-judgments.jpg" width="960" height="540" muted loop playsinline preload="none" aria-label="Typed judgments sorted into bands, with receipts"></video><figcaption><b>Fig. 6 · Typed judgments</b>Cheap answers that suggest, with a receipt for every call. A human applies the label.</figcaption></figure><figure class="loop"><video src="media/7-measured-harness.mp4" poster="media/7-measured-harness.jpg" width="960" height="540" muted loop playsinline preload="none" aria-label="Eight files into one SQL layer"></video><figcaption><b>Fig. 7 · Measured</b>Eight files, one SQL layer (DuckDB), one yes/no question about release readiness. The answers shown are illustrative.</figcaption></figure></div>- <p class="loops-note">The loops play muted when they scroll into view.</p>+ <p class="loops-note">The loops play muted when they scroll into view. Click one, or its Pause button, to stop it.</p></section><section class="sec" id="starter" aria-labelledby="h-starter">@@ -477,7 +477,7 @@ done</code></pre><div><div class="sec-no">14 · Next</div><h2 id="h-next">Coming in 0.4.3: living diagrams</h2></div></div><div class="next">- <video src="media/enter-light.mp4" poster="media/enter-light.jpg" width="1280" height="720" controls playsinline preload="none" aria-label="What happens when you press Enter in Claude Code, 27 seconds"></video>+ <video src="media/enter-light.mp4" poster="media/enter-light.jpg" width="1280" height="720" controls playsinline preload="none" aria-label="What happens when you press Enter in Claude Code, 27 seconds"><track kind="captions" src="media/enter-light.vtt" srclang="en" label="English"></video><div><h3>What happens when you press Enter</h3><p>The first film made with living diagrams: one request to Claude Code, from the prompt to the permission check to the passing test, in 27 seconds. Sound on.</p>diff --git a/site/static/harness.css b/site/static/harness.cssindex 3aef965..d002fe2 100644--- a/site/static/harness.css+++ b/site/static/harness.css@@ -682,6 +682,9 @@}.harness .loops{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:18px}.harness .loop{margin:0;border:1px solid var(--line);background:var(--bg-1);min-width:0}+.harness .loop video{cursor:pointer}+.harness .loop-btn{float:right;margin:0 0 6px 12px;font:600 var(--s-xs)/1 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--text);background:var(--bg-1);border:1px solid var(--line-2);padding:7px 10px;cursor:pointer;opacity:.92}+.harness .loop-btn:hover{border-color:var(--amber);color:var(--amber);opacity:1}.harness .loop video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:var(--bg-2)}.harness .loop figcaption{padding:10px 14px 12px;font-size:var(--s-sm);color:var(--text-2);line-height:1.45}.harness .loop figcaption b{display:block;font:600 var(--s-xs)/1.3 var(--f-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--amber);margin-bottom:4px}diff --git a/site/static/harness.js b/site/static/harness.jsindex f95fbe9..431838e 100644--- a/site/static/harness.js+++ b/site/static/harness.js@@ -1228,15 +1228,33 @@ stepper("#caseStall", "Issue #24", [});});const rm = window.matchMedia("(prefers-reduced-motion: reduce)");- const loops = document.querySelectorAll("#drawn video");+ const loops = [...document.querySelectorAll("#drawn video")];const play = v => { const p = v.play(); if (p && p.catch) p.catch(() => {}); };- if ("IntersectionObserver" in window) {+ /* Every loop can be stopped (WCAG 2.2.2): a Pause/Play button on each loop, or a click on the loop, toggles it, and a+ loop the reader paused stays paused when it scrolls back into view. Reduced motion: native controls, no autoplay. */+ const held = new WeakSet(), btns = new Map();+ const label = v => { const b = btns.get(v); if (!b) return; const word = v.paused ? "Play" : "Pause";+ b.textContent = word; b.setAttribute("aria-label", word + ": " + v.getAttribute("aria-label")); };+ const toggle = v => { if (v.paused) { held.delete(v); play(v); } else { held.add(v); v.pause(); } };+ const native = () => loops.forEach(v => { v.pause(); v.controls = true; const b = btns.get(v); if (b) b.hidden = true; });+ loops.forEach(v => {+ const b = document.createElement("button");+ b.type = "button"; b.className = "loop-btn";+ b.addEventListener("click", () => toggle(v));+ v.addEventListener("click", () => { if (!v.controls) toggle(v); });+ v.addEventListener("play", () => label(v)); v.addEventListener("pause", () => label(v));+ const cap = v.parentElement.querySelector("figcaption"); /* in the caption, so it never covers the drawing */+ if (cap) cap.prepend(b); else v.after(b);+ btns.set(v, b); label(v);+ });+ if (rm.matches || !("IntersectionObserver" in window)) native();+ else {const io = new IntersectionObserver(es => es.forEach(e => {const v = e.target;- if (rm.matches) { v.controls = true; return; }- if (e.isIntersecting) play(v); else v.pause();+ if (rm.matches) return;+ if (e.isIntersecting) { if (!held.has(v)) play(v); } else v.pause();}), {rootMargin: "120px 0px"});loops.forEach(v => io.observe(v));- } else loops.forEach(v => { v.controls = true; });- rm.addEventListener("change", () => loops.forEach(v => { if (rm.matches) { v.pause(); v.controls = true; } }));+ }+ rm.addEventListener("change", () => { if (rm.matches) native(); });})();