Let an agent write the video.
A Vawe film is one HTML page: CSS, Web Animations, SVG, canvas or three.js. An agent already writes all of that, so it learns no private format and guesses no schema. If something it would naturally write fails, that is a bug in the engine.
Copy this prompt into your agent
Paste it into Claude Code, Codex or Cursor. Fill in the parts in angle brackets. The agent installs vawe if it needs to and does the steps on this page.
Use vawe (https://github.com/vawe-hq/vawe), the open-source HTML-to-video tool, to make a short motion graphics video. What it is about: <topic, product or message>. Length: <seconds>. If vawe is not installed here, install it first: npm install @vawe/cli (it needs Node 22 or newer and ffmpeg; npx vawe new prints the install line for anything missing). Then follow each command’s next: line. Start with npx vawe new <name> --request "<my ask in one line>". Show me the draft video and wait for my OK before the final render.
What an agent does, step by step.
- Reads the rules. The agent reads
AGENTS.mdat the root of the checkout. Codex and Cursor read that file. Claude Code readsCLAUDE.md, which points to it. - Starts a film.
bin/vawe newasks for the facts the request lacks, then writespage.htmlandbrief.md. With--defaultsit guesses and marks each guess. - Plans the shots. The agent studies reference frames, fills the brief and builds one key frame for each beat with
bin/vawe frame. - Writes the page. The page is HTML, CSS, Web Animations, SVG, canvas or three.js. Time comes from the seek, so the page has no timers and no unseeded random.
- Renders a draft.
bin/vawe devrenders half size at 30 fps with the audio mixed. The agent can render only the hard 2 to 4 seconds. - Asks a fresh session to look.
bin/vawe critiquelays out the frames. A session that did not write the page reads them and names the seconds to fix. - Fixes only those seconds. The agent renders the named range again, not the whole film.
- Lets you change it by hand.
bin/vawe dev <page> --studioopens the page in the studio, a live timeline where you drag keys and change colours and text. Each edit is a text patch in the page. - Ships after approval. The owner types
/vawe-approvetwice: once for the plan, once for the draft. The agent never does.bin/vawe shipthen renders 60 fps with motion blur, andbin/vawe waitprints the result.
One command, one loop.
bin/vawe runs everything. new starts a film from a template, dev renders a half-size draft and checks it, critique lays out the frames to look at, and ship renders the final at 60fps with motion blur and audio. A wrong flag exits with the list of valid ones, so an agent corrects itself in one step instead of reading source.
bin/vawe new launch # page.html + brief.md bin/vawe dev films/launch/page.html bin/vawe critique films/launch/page.html bin/vawe ship films/launch/page.html
The commands an agent uses.
Ten verbs make up the loop. Run bin/vawe --help for them and bin/vawe --help --all for the rest. Every verb takes --help.
| command | an agent runs it when |
|---|---|
new | it starts a film, or recreates a reference mp4 |
see | it needs to read a film, page or reference as numbers: shots, motion, light, type, sound |
frame | it needs a picture: one frame, a sheet of frames, one frame per world or per cut |
dev | it wants a draft: half size, 30 fps, with sound |
critique | a draft is ready for fresh eyes: phone sheet, strip, loop seam, measured deltas |
check | it runs one named gate or report |
sound | it chooses, checks or cuts to sound |
refs | it studies references before it designs |
ship | the owner approved the draft: 60 fps, motion blur, audio mixed |
wait | a render or critique is running and the agent needs its result line, so it never sleeps |
What the agent writes.
A film is films/<name>/page.html and its own assets folder. One <meta name="duration"> tag sets the length. Each beat is one element with data-world. Time is the seek: CSS keyframes and element.animate() follow it, or the page defines window.seek(t) and paints frame t. A virtual clock owns Date, timers, requestAnimationFrame and Math.random, so a page that works in a draft gives the same frames in the final.
Audio is <audio> tags with a start time, mixed offline. Layout is CSS, and one page works at 16:9, 9:16, 1:1, 4:5 and 4:3. The full contract is in the page contract and the docs.
The writer never grades its own film.
A critique runs in a session that did not write the page, and bin/vawe critique --fresh starts a fresh session to score the draft. A pass is never self-recorded. The agent that wrote the film fixes only the seconds the critique named and renders those seconds again, not the whole film.
Skills teach the parts that are not defaults.
The repo ships skills an agent loads on demand: vawe-brief turns a request into a brief, vawe-page writes the page, vawe-critique looks at a render as a fresh session, and vawe-reference matches a reference video. AGENTS.md holds only what an agent would get wrong on its own: the page contract, the motion rules that are not its defaults, and the first-draft habits it should not ship.
Wire it into an agent.
Clone the repo, install, and let bin/vawe-dev doctor name any missing tool with the install line for your system. Then point the agent at AGENTS.md and ask for a film.
npm install bin/vawe-dev doctor # names each missing tool bin/vawe new hello
Limits to know first.
vawe is an npm package (@vawe/cli) that runs on your machine, not a hosted service. It renders on one machine. Output can differ between hosts that rasterize on a different GPU or Chrome version. It is a code-first renderer: if a person wants to edit a timeline by eye, an editor fits better.
site/content/agent-guide.mdWhat vawe measured about itself.
These numbers come from our own engineering posts, each with the commits behind it. They describe vawe only; none of them compares speed or quality with another tool.
- One blind A/B run on the same brief: a fresh agent finished the film in 5.9 minutes with one HTML page and in 10.75 minutes with our old custom JSON format. HTML vs a custom JSON video format
- Two renders of one SVG-filter page differed in 70 of 216 frames in a shared browser, and in 0 of 648 after a Chrome per lane and software compositing. Deterministic rendering in headless Chrome
- One headless Chrome per render lane cut frame capture for a 20 s film from 140 s to 47 s. Faster headless Chrome rendering
- The whole film format: one page.html, a duration meta and one data-world element per beat. Render HTML to video: the page contract
Questions people ask before they switch.
Which AI agents can make a video with vawe?
Any agent that reads files and runs shell commands. Claude Code, Codex and Cursor all read the repo rules, and each bin/vawe verb prints a next: line that names the following step.
Does the agent need to learn a video format?
No. The film is one HTML page. The agent writes the CSS, Web Animations, SVG, canvas or three.js it already writes. If something it would naturally write fails, that is a bug in the engine.
Who judges the film?
A session that did not write the page. The writer fixes the seconds the critique names. A pass is never recorded by the session that wrote the film.
Is there a hosted API?
No. vawe runs on your machine from the npm package @vawe/cli and needs no account. See install and the quickstart.
Can Claude make videos?
Yes, when the video is code. Claude writes the HTML page and vawe renders it. Can Claude make videos? gives the longer answer.
Where do the agent docs live?
Use with an agent in the docs covers setup for each tool. HTML to MP4 with Claude Code walks one film through.
What an agent writes: video components to copy.
Each video component is a clip and a markdown file with the snippet. An agent copies one into the page.