Skip to content

About

A controllable workflow for making videos with code, open source: say one sentence, a coding agent (Claude Code, Codex) writes the code and renders the film, and you direct every step in a visual Studio. 用代码做视频的一套可控工作流:说一句话,agent 写代码出片;每一步看得见、改得动、能重做,你在 Studio 里当导演。

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

42 stars

Watchers

0 watching

Forks

Latest commit

 

History

248 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenVideoHarness

You direct. AI makes the film.

An open-source, controllable workflow for making videos with code. Say what you want in one sentence, and a coding agent such as Claude Code or Codex writes the code and renders the film. Every step shows up in Studio: point at a shot, say what to change, and compare the two cuts.

Plenty of tools can turn a sentence or two into a video. The hard part is doing it under control, repeatably and at volume, inside your own workflow. That is what this project is for.

Quick start · Studio demo, 17 s with sound · Showcase films

English · 中文 · Website · Wiki

License: MIT Agents Engines

Moments from twelve finished films, all moving: a black hole's jet, mirror-image molecules, a brake disc in thermal false colour, ink wash, shadow puppets, a city built from data

All made with it. A dozen films in a month, about 100 minutes in all; the longest runs 33 minutes in 4K.

11 video types · 43 styles · 5 engines · voice, music, sound effects and captions included · runs on your own computer · MIT

Quick start

You need macOS or Linux, Git, Node.js 22+, Chrome, FFmpeg, Python 3 with uv, and a signed-in Claude Code or Codex installation. Requirements and limits

curl -fsSL https://raw.githubusercontent.com/ZLHad/OpenVideoHarness/main/install.sh | bash

Choose where to start your film. Use whichever suits you: a film started anywhere shows up in Studio.

  • Studio. Open OVH Studio from Applications, or run bin/vh studio from the install folder. Select Claude Code or Codex in the agent column and choose Set it up if the adapter is missing. Send your request there.
  • Terminal. In the default install folder, run cd ~/OpenVideoHarness && codex or cd ~/OpenVideoHarness && claude, then send your request.
  • The Claude Code or Codex desktop app. Open the install folder (~/OpenVideoHarness by default) as the project and send your request.
  • From any other folder. The installer registers a skill named open-video-harness with Claude Code and with Codex. So whichever project is open, ask for a video and the agent finds the workbench and follows it. Films go under the workbench's projects/ unless you name another place. To install the skill alone, see install options.

For a first run, try this silent sample.

Quick draft: make a silent 15-second vertical explainer showing why doubling a square’s side length quadruples its area. Use a grid and on-screen text.

The agent keeps the source and exports together in the film's project folder. With quick it goes straight through to a checked video. Ask for standard or studio to review the direction and draft, with a separate storyboard review when the next step is costly.

Step-by-step guide · Install options and updates

The OVH Studio window on a film's cut stop: the galaxy picture in the middle, under it a timeline with thumbnails and seconds 5 to 8 selected; on the right a card waiting for your decision and two notes written on shots, with the Send to agent button below

Making a film in Studio. Along the top, where the film has got to. Point at a few seconds of the timeline, or at a shot, and write a note. On the right, what waits for your decision; hand it all to the agent together. The film on screen is this repo's own intro film.

What makes it different

A flash crossing a detector, with a timer counting microseconds
Time is the only input. This flash is counted in microseconds.
The film is code, so it stays under control.
Every frame depends on time alone, so the same moment always draws the same frame: it can be redone and spot-checked. A few seconds of a finished 4K film can be redrawn and put back without touching the rest. A render that stops picks up where it stopped. Every render is kept as a version, so the cut before and the cut after can be watched side by side.
Studio in 17 seconds: the window opens, the cursor drags the playhead through the film, pins second 0:05, a note is written, the picture changes to match, and the cut is approved
Studio in 17 seconds: look, point, say, decide. Click for the version with sound.
The whole process, in one window.
On top of the skills and the command line, we built Studio, a visual window that makes the whole production easier to keep in hand: where each film has got to and who it waits for, at a glance; in review, point at a second and write a line, then hand a few of them to the agent together; what you decide is a few cards, a click each. It comes down to four moves: look at where the film has got to, point at a second or a shot, say what to change, and decide on a card. Its look, its language, the default agent and the API keys of online services are all set on Studio's settings page, with no config file to touch.
A sea of films collapsing under the words What's missing?
Said at the concept stop: "glass, cosmos, a starry sky… dizzying".
You direct. It does the work.
It stops for you at the concept and the first draft; when the film is long, heavy to render or costs money, at the storyboard too. Want to decide the hook, the voice or the cover as well? Name them. Want none of it? Say "just make it".
A stock chart drawn as an ink-wash mountain range
A stock chart that is also a mountain range.
It settles what to say before it starts making.
Two or three concept cards come first, each with a frame and a hook. It says what every other film on your topic looks like, then goes somewhere else.
The agent reviewing a contact sheet of its own frames in a terminal
The agent going through its own frames.
It checks its own work before you see it.
An agent can't see video or hear sound, so it measures everything it can. It reads contact sheets against a 20-point checklist, measures the sound, and hands the draft to a reviewer with a fresh context, who scores it on 8 points. bin/vh check catches frozen frames, flashes, subtitles too short to read and wrong colour tags, and names a way out of each.
A neon arcade with a chat bubble and a glowing sign
A generated plate, with code on top, both on record.
Any material can go into the cut.
Pictures drawn in code, archive footage, generated images, 3D models, recorded sound, and your own photos and recordings (those two still experimental) can share one film. One ledger keeps where each file came from, its licence and what it cost. No budget, no paid call.
math-explainer.mp4

▶ Press play and turn the sound on: each harmonic sounds its own note.
Sound is part of the same process.
Voice, music, sound effects and captions are part of the process, so there is nothing to stitch on afterwards. The narration or the music goes down first, every word and beat gets a time, and the picture hangs on those times. The score can be written as code or be a track of your own, and sound effects land on the frame where things happen.
A glowing gold map of rivers and points of light
From a film of 33 minutes.
Long films hold up.
Shots, captions and chapters hang on the narration's words, so adding a pause moves the picture with it. Edit lists join pages and footage, renders resume, and the upload copy fits the platform's limit. The longest so far runs 33 minutes in 4K.

And it fits into your own workflow. The whole thing is docs written for an agent plus one command line, bin/vh. A film is a folder, and its source, storyboard and review record are text. Switch agents, script it, make a dozen films a month: it is the same process.

Nor is it one AI look. Left alone, AI video drifts toward one face: dark background, glow, glass cards. Here are 32 of its 43 styles, all rendering the same sentence:

All the styles moving at once, each rendering the same sentence: every frame is code

Studio

On top of the skills and the command line, we built Studio, a visual window that makes it easier to keep the whole making of a film in hand. Using it comes down to four things: see where a film has got to, point at the picture and say something, decide on cards, and talk to the agent.

Studio's space: a card for every film, the three waiting for you first, each saying what you have to decide Where each film has got to, at a glance.
The column on the left is the stops of making a film: concept, outline, storyboard, sound, cut, delivery, plus a record of assets and decisions. A line across the top marks the stop this film is at: amber is waiting for you, violet is the agent at work, green is done. Studio opens on every film, the ones waiting for you first, each card saying what you have to decide.
The storyboard stop: a page per segment, a keyframe per shot saying what is seen, the shot the agent is unsure of marked Reviewing is pointing and saying.
The storyboard is a page per segment and a keyframe per shot; the cut's timeline carries the shots, the sound, what the checks found and where the agent is unsure. Select a shot, a second or a span, write a line, and it becomes a note.
The cut stop: a few seconds selected on the timeline, and on the right a note written about those seconds Collect a few, hand them over at once.
Each note faces what you pointed at, and they gather in the right-hand column. Before anything goes, a summary lists what you chose for each decision and what each note says. Your words are copied into the project's REVIEW.md, and the agent carries on from them.
The concept stop: on the left the numbers and objects that belong to this topic alone, on the right three concept cards with a frame each, the recommended one already chosen A stop is decided right here.
At the concept, the storyboard and the draft, the right-hand column holds what this round needs from you, a few cards each, with the recommended one already chosen. Leave it and the recommendation stands; click to change it; submit once.

The right-hand column also talks straight to the agents on this machine (Claude Code, Codex, and DeepSeek Harness). Select a shot before you speak and it knows what you mean; what it read, what it ran and what it asks you to allow are laid out one by one. On the space, the same column starts a new film: write what you want and send it, and the conversation moves into the film as soon as the agent has made it. Before you first talk to an agent there, it needs an adapter: press “Set it up” in the column, and Studio installs it.

Which model to use and how hard it thinks are picked in the column, and Studio remembers your last choice. In the Codex column, Choose model and effort opens an empty chat and reads out the models your account offers before you send your request.

Click the OVH Studio icon, tell your agent "open Studio", or run bin/vh studio to open the same window. The studio level uses Studio for reviews by default. When Studio shows the agent is waiting, submission wakes it. Otherwise, return to the chat after submitting and say “I've sent it”. The standard level uses Studio while Studio is open, and a review page otherwise. You can also ask for either. Studio comes in English and Chinese, in three dark themes: Darkfield, Prism and Bridge. Open Studio · Studio file reference

Studio comparing two cuts at the same timecode. Only the original shows the formula yet. Review the same moment in both cuts.
Once the agent attaches both cuts to your note, open it in Cut → Revisions. The cuts share a playhead, and you can switch which soundtrack you hear. Accept the revision or send another note on that version. From the terminal, bin/vh desk revision attaches the two cuts to the saved feedback.

Open Studio

Click the OVH Studio icon, tell your agent "open Studio", or run bin/vh studio in a terminal (bin/vh studio <project> lands on that film): it's the same window each time, and asking again only brings it to the front. Closing the window leaves Studio running in the background, so an agent at work carries on; click the icon again and the window comes back where it was; quitting OVH Studio is what stops it. A film kept in another folder joins this same window when you open it with bin/vh studio <project>.

If the icon isn't there, bin/vh studio --install-icon adds it. Without OVH Studio, the window is your Chrome, Edge, Chromium or Brave; with none of those, a tab of your default browser.

What it makes

Moments from a dozen films the author made with it in about a month, about 100 minutes in all. Physics, chemistry, engineering, money, folklore, literature, essays: each in a world of its own. They're in Chinese, and silent here.

A black hole and its jet
A black hole's jet, all in Canvas 2D
7½-min physics explainer
Two mirror-image molecules
Mirror-image molecules in Three.js
2-min chemistry explainer
White strands of fluid spiralling on blue
A fluid winding itself up
3-min maths story
A brake cylinder cut open
A brake cylinder cut open, the camera following the fluid
14-min teardown in Three.js
A brake disc glowing in false colour
A disc under braking, in false colour
A drum brake swelling with heat
A drum brake swelling with heat
A red line running through a grey model city
2008 is a grey city
9½-min data film at 60 fps
A chart in neon, pink bars climbing
2015 is neon
A blue terrain crossed by a purple band
A conjecture as a landscape
Shadow puppets climbing a hill as geese pass
Shadow puppets, drawn in code
3-min folk history
An ink-wash garden with chrysanthemums
Ink wash, chrysanthemums opening
Blue-and-green mountains beside a Tang poem
Blue-and-green mountains, a Tang poem
People climbing a dim stairwell with a torch
The same film, reaching a stairwell today
A pen drawing a steam engine and a railway
A pen draws the machines as you watch
3-min history of technology
Silhouettes growing wings on red
Silhouettes growing wings
9-min portrait of a writer
A book unfolding out of a box
A book that opens like a box
A brain lit by a lantern in a dark library
A lamp, a brain, a library
33-min essay film
Light travelling up a tree of branching paths
A path of light through a tree
An app separated into glowing glass layers
Software taken apart in glass layers
4-min tech story in Three.js
Glowing capsules on a curved gold track
Findings lighting up along a track
A flat illustration of a boat linking to satellites
From a phone to a satellite, flat and calm
2½-min explainer

The 5 showcase films, with sound

Press play and turn the sound on (players start muted). Each has a folder in showcase/ with the request, the brief, the storyboard, the review notes and all the source: a ready starting point for a film like it. An agent made each one from this repo's docs alone.

intro-1-opening.mp4
04 · Intro film
Blender + HyperFrames + Three.js · 103 s · studio level
A galaxy of 1.18 million stars, path-traced in Blender, collapses and flattens into a sea of films; one continuous 3D take then follows a request through the repo. The opening is here; the whole film is linked below.
Request, at gate ①: "玻璃、宇宙、星穹……令人瘫坐眩晕的感觉" (glass, cosmos, a starry sky… dizzying)
1080p MP4 (297 MB) · 4K (1.04 GB)
science-short-vertical.mp4
02 · Vertical science short
HyperFrames · 24.8 s · 1080×1920
Why a low-orbit satellite's signal changes pitch, readable with the sound off. Chinese voiceover, Chinese and English subtitles.
Request: "为什么低轨卫星的信号会'变调'?——多普勒频移" (why does a low-orbit satellite's signal change pitch? The Doppler shift)
math-explainer.mp4
03 · Math explainer in the 3Blue1Brown style
Manim · 25 s · 1920×1080
Sine waves stack into a square wave and land on the Gibbs overshoot. English narration; each harmonic sounds its own note.
Request: "Building a square wave from sine waves"
handdrawn-short.mp4
01 · Hand-drawn character short
p5.brush · 12 s · 1920×1080
A three-shot pantomime with no words and no voice; the score and foley follow every move.
Request: "Clawd tries to film a falling autumn leaf with a tiny hand-cranked movie camera; the wind keeps snatching the leaf just as Clawd frames it …"
launch-short.mp4
00 · Launch short
HyperFrames · 20 s · 1920×1080
Built from the repo's own terminal, routing table and contact sheets, with a sound for every move on screen.
Request: "Produce the README hero video — a short launch film for OpenVideoHarness itself …"
style-reel.mp4
The style reel
32 of the 43 styles · about 1.5 s each
The same content rendered in every style of the library, each with its own music.

The films live in the media release, outside git, so a clone doesn't download them. Films 00–03 were finished silent and their sound was fitted afterwards. Community films in the same vein, and how they were made, are in cases/; films you make with this repo are welcome in showcase/.

Why this exists

There are plenty of video tools now. Give an agent or a model a sentence or two and it will make a video.

Making one, and making this an everyday job, are different things. Changing a few seconds often means redoing the whole film. Ask again with the same sentence and the pacing and the look may both change. By the tenth film nobody can say which step went wrong. To have it under control, repeatable and done at volume, inside your own workflow, a sentence or two is not enough: it takes a controllable workflow.

So we built this project. The film is code, and any frame can be redrawn alone. The process is written down: the idea, the storyboard, the sound and the checks each have their way of being done. Where it stops for a person is yours to set. All of it is written so that an agent can follow it: a few rules never bend, and everything else is a default that a good idea can overrule.

It grew out of real films. Each time one went wrong, the lesson became a doc or a check, and the next film started from there.

How it works

Here a film is source. The agent writes a page (or a Manim scene, or a Blender script) in which every frame is a function of its time t; real footage, generated images, 3D models and sound are laid in by an edit list; a browser (or Manim, or Blender) draws each frame, and FFmpeg joins them with the soundtrack.

A one-line request goes through type routing, the human sign-offs, sound-first code rendering and self-review to a finished film; beside it, what the repo provides

Four layers, and an agent reads only what the film at hand needs:

Layer What's in it
The router CLAUDE.md: which of the 11 video types this is, how much review it gets, who decides what, and the rules that never bend
The craft Docs an agent follows: video types, the playbook, styles, recipes, components, case studies
The tools One CLI, bin/vh: from topic research to the upload copy (what's in the box)
The engines HyperFrames, canvas + Three.js, p5.brush, Manim and Blender, which it tells the agent how to use (engines)

A film then goes like this:

  1. Route. The routing table picks the type and its workflow; your request sets the effort level and what you want to decide yourself.
  2. Gate ①: direction and outline. Two or three concept cards, each with a frame and a hook. Picking one settles the idea, the look and the hook together, before any code is written.
  3. Storyboard. Every shot lists what the viewer must take in, in order and for how long, with one keyframe per shot. When the film runs past about 90 seconds, is a heavy 3D render or calls a paid service, the agent stops here for you (gate ②); a short film's storyboard comes to you with the first draft.
  4. Sound first. Voiceover or music comes first; every word and beat is timed, and the picture hangs on those times.
  5. Code, then check. After each scene the agent tiles frames into a contact sheet and fixes it against the checklist, and measures the sound. A reviewer with a fresh context then scores the whole draft.
  6. Gate ③: first draft. You see the draft, its contact sheet, the scores and what the agent likes least. If you can't say what's wrong, it makes two or three versions of one passage for you to pick from.
  7. Final. The final render goes through bin/vh check, and what went wrong goes into the project's LESSONS.md.

A few rules never relax: every frame depends only on t; when there is sound, it sets the timing; the storyboard comes before code; numbers, quotes and paper details are copied from the source, and anything uncertain stays out; API keys stay in environment variables.

We publish what we measure, including when it goes against us. In one small blind test (docs/research/06), the workflow's films had the fresher ideas, but the reviewer found the films made with only a few floor rules better made, and would have posted those. What it flagged became checks. The research notes have the rest.

Example prompts

Say what the film is about, who it's for and where it will be shown; a long brief isn't needed.

Kind Say
Math explainer "In the 3Blue1Brown style, how a Fourier series builds a square wave, 20 seconds, readable with the sound off."
Product film "A 30-second launch film for my app in the ink-wash style, real screenshots only, sound effects on the key moves."
Paper talk "Turn the core method of papers/main.tex into a 3-minute explainer; copy the paper's details exactly, English narration with Chinese subtitles."
Archive film "A 40-second countdown film cut from public-domain NASA launch footage, with every clip's licence on record."
Quick try "A quick 15-second draft to see whether a cyber-glitch look suits my game trailer; don't ask me anything."
Hands-on "A 90-second explainer on how satellites avoid collisions, at the studio level. I'll choose the hook, the main character, the theme tune, the title and the cover; you decide the rest."

What's in the box

The tools follow the work: think, gather, make, check and deliver. Each name below is a bin/vh command; bin/vh commands lists all 74 commands by pipeline stage, and any command takes -h.

Command What it does
Think know What the repo already knows about a few words (recipes, components, a style, a playbook section, a case) without reading the docs first
scout A topic on the platforms before you pick it (top videos and their outliers, hot lists), and your film's numbers after it goes out; public interfaces only, no login
ref A reference video, post, image or page on record: where it came from, its licence, why it matters; a long video read as a timed transcript, then looked at where it says
web Keep a rendered web page with its URL, date and HTTP status for fact checking; uses the installed Chrome/Chromium, with Obscura optional
breakdown A reference film taken apart: its cuts and transitions against its beats, keyframes, what to swap
concept Extras for the concept cards: a seeded "roulette" of frameworks and a six-then-three board
Gather footage Real footage from Internet Archive, Wikimedia Commons and NASA: only the seconds you need, each clip's licence on record
image Generated pictures from Gemini's Nano Banana or Codex's image_gen: an estimate first, each paid call held against the project's budget; transparent cutouts
sfx · bgm · sound Recorded effects and licensed music from your own sound library and Openverse, picked into the project with their credits
cast A project's characters, costumes, props and sets as settled reference pictures, which image gen --ref cast:<id> sends along
model3d · hdri A 3D model read before it goes in; a CC0 environment map from Poly Haven to light it
assets One ledger for every file a film uses: where it came from, its licence, what it cost; check and credits before delivery
Make new A project from the templates; for most types the engine comes set up too
style · recipes · components The style presets, the shot recipes and shot-grammar cards, the motion components
edit The film as an edit list: pages, images, footage, other films and sounds in a row
words The script read for the sentence shapes model drafts reach for (不是 A 而是 B, 排比 in threes, a colon that hands over the verdict): where they are and how often, for you to decide; it never edits
tts · music · captions · mix Voiceover, a score written as code, subtitles, the mix (Sound)
Check and deliver studio · gate · desk Brings up Studio's window; a stop for your sign-off in one command; desk is the console behind Studio, and can also open one film's review desk on its own
frames · sheet · determinism Lossless frames, contact sheets, and a check that each frame really is a function of t
check The rendered film against its brief: black, frozen or silent stretches, flashes, subtitles, colour tags, loudness
render An MP4 drawn in parallel, resumable chunks, each render kept as a version
patch · versions Redraw a few seconds of a finished film; compare renders or go back to one
deliver · clean The copy to upload; a finished project cleared of its intermediates
artifacts Every kind of file a project holds: what it is and who writes it; what this project has, lacks and has out of date
projects · cancel · history Every project and where it stands; a running command stopped, with its end on record; a way back for the text you and the agent write

bin/vh doctor says which of the 44 outside programs, packages, models and services this machine can use (tools/modules.json).

Engines, types and libraries

Engines

It isn't a rendering engine. It sits on top of these and tells the agent how to use them:

Engine Draws Used for
HyperFrames (HTML + GSAP) Pages with real type and layout; a registry of ready blocks (bin/vh hf) Science shorts, product films, data stories, meme edits, the style samples
canvas-film (canvas 2D), with an optional Three.js layer Long narrated films whose shots, captions and chapter bar hang on the narration's words; GLB models with their animation clips under the 2D Any type (--engine canvas-film; --three adds the 3D layer)
ClaudeAnimationBase (p5.js + p5.brush), bundled Hand-drawn lines, watercolour, characters Hand-drawn shorts, music videos
Manim CE, with ManimGX as an optional faster backend Math and mechanisms Math and science explainers, paper talks
Blender 5.2, optional Path-traced light, physics, real depth of field; or a 3D asset tidied for the Three.js layer The shots a web engine can't do

Remotion appears in a few type docs as an alternative; no showcase film uses it, and it is set up by hand (engines/README.md).

Video types

Type Good for Main engine Docs
01 Math and science explainers 3Blue1Brown-style animations of how something works Manim 01
02 Science shorts TikTok/Douyin, Bilibili, Xiaohongshu, YouTube Shorts HyperFrames 02
03 Product and launch films Apps, SaaS, open-source projects, feature demos HyperFrames 03
04 Lyric and music videos Animation cut to a song p5.brush or HyperFrames 04
05 Data stories Animated charts and numbers HyperFrames + SVG 05
06 Paper explainers Conference videos, research talks Manim or HyperFrames 06
07 Hand-drawn shorts Watercolour, whiteboard, paper cut-out, character shorts; Chinese characters written stroke by stroke p5.brush (bundled) 07
08 Meme edits Brutalist, tech-Twitter quick cuts HyperFrames 08
09 Edits of your own footage (experimental) Talking heads and interviews: cut filler, add captions and graphics, make a vertical version HyperFrames 09
10 Long explainers Landscape explainers of 10 minutes or more canvas-film 10
11 Photo recaps (experimental) Your own photos and clips: a wedding, a trip, a year in review canvas-film + edit list 11

For realistic people or physics, generated video with code on top (playbook/05); for a story with an arc or anything over three minutes, playbook/09; for hooks, titles and covers, playbook/10.

Styles

Left alone, AI video drifts toward one look: dark background, glow, glass cards. styles/ holds 43 styles, most of them distilled from well-known work, among them Saul Bass title sequences, the Swiss grid, 3Blue1Brown, New York Times graphics, the halftone of Spider-Verse, Wes Anderson's symmetry, ink wash, Dunhuang murals, shadow puppetry and guochao. Each describes its colours, type, composition, motion, transitions and sound, and each comes with a rendered sample (the first 33 are 5 seconds of the same content):

The style samples, all with the same content

A style is a reference, not a template: borrow one, mix several, or ignore them all. What's borrowed is the visual grammar, never the original's characters, logos or shots. bin/vh style list lists them; bin/vh new promo launch-film --style cutout-jazz attaches one to a project.

Recipes, shot-grammar cards, components

  • Recipes: 75 shot recipes (how one shot or one seam moves: its phases, frame counts, the parameters that mustn't drop, where it goes wrong) and 11 whole-film skeletons (an energy arc and a hold budget for a whole film). bin/vh recipes list --intent … --energy … filters them; each recipe with a code sketch comes with its rendered sample sheet.
  • Shot-grammar cards: 24 shot-grammar cards in recipes/shot/ for shot sizes, angles, the axis and camera moves, each saying what it does to the viewer and when to take it or not. A shot's choice goes into its camera field, and bin/vh storyboard prints it under the shot.
  • Components: 6 motion components (a spring scene, a page turn, paper transitions, a chapter bar, a build-up of pieces, a film finish for pictures that come out too clean), each a state computed from t with thin painters for canvas, the DOM or Three.js. bin/vh components add copies one into a project.

All of these are defaults to start from, not rules: a concept that needs something else simply does it.

Sound

An agent can't hear, so the sound is built to be computed and measured.

  • Voiceover (bin/vh tts): local, open-source Qwen3-TTS by default (offline and free on Apple Silicon; five Chinese voices, two English). Cloud voices from Gemini, MiniMax, ElevenLabs and Alibaba Cloud Model Studio, Edge's online voices, and macOS's own say for drafts. Word timing comes with --align, so captions and picture can hang on single words.
  • Subtitles (bin/vh captions): write the script as 中文 || English to get Chinese, English or two-line subtitles, burned in or as switchable tracks.
  • Music (bin/vh music): composed as code, so the same score always renders the same audio, with the time of every beat for the picture to hit; it has Chinese instruments such as a bianzhong-like bell, guzheng and dizi. bin/vh beats finds the beats of your own track; bin/vh bgm finds a CC-licensed one on Openverse and cuts it on a downbeat; bin/vh music --provider lyria generates one with Google's Lyria (paid per track, held against the budget, on record as AI-generated).
  • Sound effects (bin/vh sfx): 21 sound effects synthesized in code, placed on the frame where the action happens; each film walks its own variants, so repeats don't sound identical. Recorded ones too, from your own library and Openverse's CC0 and CC BY effects, with licence and credit on record.
  • Mix and checks (bin/vh mix, bin/vh qa): the music ducks under the voice and the mix lands at −14 LUFS; qa finds silence, dropouts, pumping, clicks and cues more than a frame off. What only a person can judge, qa --listen 5 cuts out for headphones.

More in playbook/04-audio.md (in Chinese).

3D

Some shots are beyond a web page: refracting glass, volumetric light, real depth of field, a million particles. For those the agent writes Python that drives Blender; the intro film's opening is 1.18 million stars computed with numpy and path-traced in Cycles, 475 frames in 1 h 28 min at 1080p on an M3 Max.

Moments from the intro film's opening, all rendered in Blender: the Earth in a glass card, the pull-back to a galaxy, the burst, the flattened sea of films

  • In a narrated film, 3D goes in canvas-film's Three.js layer (--three): GLB models drawn under the 2D, their clips set to the narration's words, every frame a function of t.
  • Before a model goes in, bin/vh model3d check reads it: triangles, textures, joints, clip names and lengths, its size in metres; --blender adds checks run in Blender (faces fighting each other, parts inside out).
  • Light: bin/vh hdri takes a CC0 environment map from Poly Haven to light the scene and stand behind it.
  • Blender only for the asset: when a shot needs no path tracing, Blender just tidies, rigs and exports the model, and the Three.js layer films it.
  • Safely: the Blender scripts run with none of your environment variables, so no API keys, and on macOS in a sandbox with no network. When Blender is worth it and how it joins a film: engines/blender.md (in Chinese, partly verified).

Edit lists

A film doesn't have to be one page. edit.json lays it out as a row of entries, each drawn its own way: a page (one engine per chapter, if you like), an image with a push, a colour, a grey slate still to be made, a clip of footage, another project's film, and tracks of sound. bin/vh edit init turns the shot table into one, every shot a slate timed as planned, which is gate ②'s full-length animatic; the slates are then replaced one by one.

bin/vh render builds the edit list, puts a keyframe at every cut and keeps each finished chunk, so a render after a change draws only the entries that changed. bin/vh patch, check and deliver read the same list, and a film with a slate left can't be delivered. Any page, in an edit list or alone, can render with --motion-blur N (N sub-frames averaged into each frame, a cut still a cut) or --alpha (a transparent film to lay over footage). The format: engines/EDIT.md (in Chinese).

Effort, and who decides

The level sets how closely the agent checks its own work and how many review rounds it runs, not how good the film is: all three deliver a full-quality film. How often it stops for you goes by the film, not the level: it stops where the next step is expensive (a long render, money), and says at its first stop where it plans to stop on this film. To set it yourself, three phrases are enough: just make it (no stops), show me the direction and the draft, or show me every step. Say "quick", "just make it, I won't look" or "studio quality" in the request, or pass --effort when you create a project.

quick standard (default) studio
For one line in, a finished film out real videos where you want to decide at the gates launches and flagship pieces, polished over rounds
Stops for you none the concept and the first draft; the storyboard too for a long, 3D-heavy or paid film as standard, with a 10–20 s sketch for each concept, and a full-length animatic when it stops at the storyboard
Fresh-context review none one round, up to the three most important problems fixed three to ten rounds; the five craft scores at 7 or above
A 30-second film takes about 10–30 min 1–2 h 3 h or more

At every level: no invented facts, no sudden silence in a film with sound, no rapid flashing, type no smaller than the floor for the target screen, licences on record, and no paid call without a budget.

For finer control, name what you want to decide yourself: the hook, the look, the main character, the theme tune, the voice, the script, the storyboard, the title and the cover. For those it offers options and waits; the rest it decides, writes down why in the project's DECISIONS.md, and you can overrule it at any time. Each stop is one command (bin/vh gate). At standard it builds a local review page by default, with the picture first: the decisions are cards to click, and the places the agent is least sure of sit on the ruler under the player, a click away. While Studio is open, a standard stop opens there instead. At studio the stop is in Studio by default, opened at the stop that waits for you, and the agent carries on as soon as you submit. Both come in English or Chinese, following your first request.

Requirements, cost and limits

Needs For
macOS or Linux, git everything (Windows is untested)
Node.js 22+, Google Chrome drawing frames in the browser
FFmpeg encoding, mixing, checks
Python 3 + uv the sound tools, contact sheets, Manim; their packages install into uv's cache on first use
Apple Silicon the local Qwen3-TTS voice and local word timing (not needed with a cloud voice)
LaTeX formulas in Manim
Blender 5.2 only for path-traced shots and preparing 3D models; its sandbox is macOS-only for now
  • Cost. Rendering, music and sound effects run locally and cost nothing. What costs money is the agent itself (a Claude Code or Codex subscription, or API usage), plus any cloud voice, generated picture, generated music or generated video you choose, billed by that provider. A paid call needs a budget (the brief's Budget:, or a default in LOCAL.md) and is held against it before it's made. API keys come from the environment or from Studio's settings (API Key).
  • Time. A 30-second film at the standard level takes about 1–2 hours, most of it checking and fixing.
  • Limits. The agent can't watch or listen, only read frames and audio measurements, so the last look and listen are yours. The full workflow has only been run on macOS (Apple Silicon); on Linux, a silent film has been made on Ubuntu 24.04 (arm64, in Docker), and the three things it needed first are in engines/README.md. Realistic people need generated video. Type 09 (editing your own footage) is experimental and hasn't been tried on real footage yet.

API Key

Voices are made on this computer by default and need no API Key. An online service (Gemini, MiniMax, ElevenLabs, Alibaba Cloud Model Studio) needs the API Key from its own site. Paste it into Studio's settings (Settings → Services): it's kept in the computer's Keychain (on Linux, the Secret Service), never written into a file, and every command finds it, in the terminal and in Studio's chat.

Where there is no such store, put the key in the file your terminal reads each time it starts (~/.zshrc on macOS, ~/.bashrc on most Linux), then open a new terminal and start Studio from it:

echo 'export GEMINI_API_KEY=paste-your-key-here' >> ~/.zshrc

The settings page lists the other services' names. A key set this way is used before one saved in Studio, name by name. An API Key isn't a budget: pictures, Lyria music and voices billed per use (MiniMax pay-as-you-go, ElevenLabs, Alibaba Cloud Model Studio) are not made without a budget, while this computer's own voices, Gemini (word timing and auditions too, its free tier first) and MiniMax's Token Plan key are used as before.

Install options and updates

By default the installer registers the skills for both agents and uses about 400 MB on disk. The 37 read-only reference repos agents can read are not fetched then: an agent fetches the one a doc points to when it first needs it, saying its size first; --refs fetches them all now (about 300 MB more). The Studio app uses about 380 MB more, including its cached installer.

bash install.sh --dir ~/code/OpenVideoHarness   # install somewhere else
bash install.sh --refs                           # fetch all 37 reference repos now (about 300 MB)
bash install.sh --mirror cn                      # use the mainland-China mirrors (--mirror off: never; without it the official sources come first)
bash install.sh --no-skill                       # don't register the global skill
bash install.sh --no-icon                        # leave OVH Studio out of your applications (bin/vh studio --install-icon adds it later)
  • Nothing asks a question. On macOS and on a Linux desktop the installer puts OVH Studio, Studio's own window, in your applications (Electron: about 130 MB downloaded once, 260 MB on disk); when a step fails it says what to do next in one sentence. It ends with a few lines: ready for a first film or not, what it still needs and how to get it, how a voice comes on this machine, and the two ways to start: click OVH Studio, or open Claude Code or Codex in the folder and say what film you want (bin/vh doctor has the full report).
  • The installer fetches only the newest commit: the repo itself is about 95 MB to download and 200 MB on disk, before its packages and the reference repos. To contribute or browse the history, git clone normally and run bin/vh setup.
  • To update, run the installer again with the same options (or git pull); LOCAL.md and projects/ are left alone, and it stops before overwriting files you changed. The installed skills are short stubs that read skills/ in the clone, so they follow the update; bin/vh doctor says in the rare case one needs bin/vh install-skill again.
  • The showcase videos aren't in git; to rebuild a showcase locally, tools/fetch_media.sh downloads them from the release to where its scripts expect them.
  • The first render and the first use of the sound tools download more into ~/.cache: Chrome about 200 MB, the sound tools' Python packages about 0.7 GB, and the default local voice about 2.6 GB (its packages 0.8 GB, its model 1.8 GB), which bin/vh tts says before it starts and shows the progress of (--provider edge needs only a small package). The local Whisper behind --align local is about 3.6 GB more, said the same way (measured 2026-11; where each goes is on the wiki's Getting Started). Where the official sources are blocked: the installer tries the official npm registry, Hugging Face and Google's storage first (twice each), and when one does not answer and its mainland-China mirror does, it switches to the mirrors (npmmirror, Tsinghua's TUNA, hf-mirror, listed in tools/mirrors.txt) and says which and why. From then on the downloads bin/vh starts follow: npm, Python packages, the local voice's model, Electron, the Chrome renders use, and an agent's own npm or uv in a session Studio started. A registry you set yourself (an .npmrc, a uv.toml, the variable) stays yours. bin/vh settings mirror off turns it off; installed before this, bin/vh settings mirror cn turns it on. Not covered: GitHub (the clone itself, references/fetch.sh, --obscura), bin/vh hf add, bin/vh hdri (Poly Haven) and the Google Fonts the hand-drawn engine's studio page loads. More on the wiki's China network page.

Skill only, as a plugin of the agent's (two shell commands each; --sparse fetches the plugin's own folders, about 2 MB, not the whole repo):

claude plugin marketplace add ZLHad/OpenVideoHarness --sparse .claude-plugin plugins/open-video-harness
claude plugin install open-video-harness@open-video-harness
codex plugin marketplace add ZLHad/OpenVideoHarness --sparse .agents/plugins --sparse plugins/open-video-harness
codex plugin add open-video-harness@open-video-harness

Or npx skills add https://github.com/ZLHad/OpenVideoHarness --skill open-video-harness. Each is a pointer: on first use it asks before installing the workbench itself (the clone above).

  • Updates. The plugin changes only when its version does, and that happens when the skills change. Claude Code takes a new one after claude plugin marketplace update open-video-harness and claude plugin update open-video-harness@open-video-harness. Codex takes it after codex plugin marketplace upgrade, then codex plugin add open-video-harness@open-video-harness again.
  • The npx skills add copy stays as it was. Once the workbench is installed, bin/vh install-skill writes stubs that follow the clone, and bin/vh doctor says the copy is there.
  • With both the plugin and the installer's stubs, an agent lists the skill twice (open-video-harness and open-video-harness:open-video-harness). Both reach the same workbench. To keep one, remove the plugin (claude plugin uninstall open-video-harness@open-video-harness, codex plugin remove open-video-harness@open-video-harness), or install with --no-skill.

Where things are

Looking for Go to
The agent's entry point: routing, effort levels, who decides, hard rules CLAUDE.md (AGENTS.md is the same)
The workflow for each type of video video-types/
General know-how: process, checks, motion, sound, effects, story, hooks, composition, ideas playbook/
Styles, recipes and shot-grammar cards, components styles/, recipes/, components/
Engines, the page contract, edit lists engines/, CONTRACT.md, EDIT.md
15 case studies of community work, and the repo's own films with every step on record cases/, showcase/
What we measured, and what changed because of it docs/research/
Studio: how to open it, what each module reads and writes tools/desk/README.md
The CLI bin/vh commands, bin/vh help, any command with -h
Tutorials, troubleshooting, FAQ the wiki

Most of the workflow docs are in Chinese; the READMEs, the wiki and the research notes have English versions, and agents read either language.

Related projects

Project What it is How this differs
Code2Video A research pipeline for teaching videos in Manim Takes "code as video" to many kinds of video, run by general-purpose coding agents
The official HyperFrames and Remotion skills How to use one engine Sits above the engines: choosing one, the process, the look, the checks
OpenMontage A full agent video production system Lighter: mostly markdown, templates and one CLI that any coding agent can read and change
Guizang's product-video skill Release films for software products More types, human sign-offs, a style library, sound in Chinese and English
OpenMotion A library of reference-film templates with a timeline editor, built on HyperFrames Starts from an idea, not from a template; sound and checks are part of the process, there is more than one engine, and you talk to the agent inside Studio
Claude Motion The motion feature in the Claude apps: it writes animation code and exports an MP4 Open source, runs on your own computer with the Claude Code or Codex you already have; it looks after the whole film: the idea, the sound, long films, the checks

Contributing

Pull requests are welcome: new video types, styles with their samples, recipes, components, case studies, lessons from your projects, and films you made with this repo, with everything that went into them. Branches, checks and where video files go: CONTRIBUTING.md.

Thanks

To the libraries and tools the films are made with:

  • HyperFrames and GSAP: the HTML engine of short, promo, data and meme films;
  • Manim Community: math, physics and paper explainers; Remotion: an alternative React route;
  • ClaudeAnimationBase, with p5.js and p5.brush: the bundled hand-drawn engine;
  • Three.js: 3D in the canvas engine; Blender: path-traced shots;
  • Chrome and Puppeteer: drawing pages into frames; FFmpeg: encoding, probing and mixing;
  • Qwen3-TTS through mlx-audio: the default local voice; mlx-whisper: word timing;
  • NumPy, SciPy and librosa: code-composed music, sound effects and beat maps; Pillow: contact sheets;
  • yt-dlp: reading video sites for scouting and reference; uv: running the Python tools;
  • Inter Tight and JetBrains Mono: the homepage's two fonts.

The works we learned from, the papers, and the licences of code adapted into this repo are in ACKNOWLEDGMENTS.md.

This is an independent project, not affiliated with Anthropic, HeyGen, Remotion, Show Lab or Alibaba Cloud.

License

Original content is MIT. The bundled ClaudeAnimationBase is MIT too (© John Heibel). Parts of recipes/ and components/ adapted from other projects keep their licences, Apache-2.0 or MIT (recipes/NOTICE.md, components/NOTICE.md). Files that call Blender's Python API (import bpy) are GPL-3.0-or-later, each with an SPDX header (engines/blender.md); the GPL's text is in LICENSES/GPL-3.0-or-later.txt. three.js and fflate, carried by the canvas engine's Three.js layer, keep their MIT licences (engines/canvas-film/three/NOTICE.md); the Blender checks of bin/vh model3d adapt MIT code from blender-skills (tools/model3d/NOTICE.md). The homepage's two fonts, Inter Tight and JetBrains Mono, are under the SIL Open Font License (docs/site/fonts/). The reference repos keep their own licenses and aren't part of this repo.

Citation

@misc{openvideoharness2026,
  title        = {OpenVideoHarness: A Code-to-Video Harness for Coding Agents},
  author       = {ZLHad and contributors},
  year         = {2026},
  howpublished = {\url{https://github.com/ZLHad/OpenVideoHarness}}
}

Support

If this project helped you make a film or saved you some time, you're welcome to buy the author a coffee ☕

WeChat tip code

About

A controllable workflow for making videos with code, open source: say one sentence, a coding agent (Claude Code, Codex) writes the code and renders the film, and you direct every step in a visual Studio. 用代码做视频的一套可控工作流:说一句话,agent 写代码出片;每一步看得见、改得动、能重做,你在 Studio 里当导演。

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

42 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages