vaweGitHub

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.

  1. Reads the rules. The agent reads AGENTS.md at the root of the checkout. Codex and Cursor read that file. Claude Code reads CLAUDE.md, which points to it.
  2. Starts a film. bin/vawe new asks for the facts the request lacks, then writes page.html and brief.md. With --defaults it guesses and marks each guess.
  3. Plans the shots. The agent studies reference frames, fills the brief and builds one key frame for each beat with bin/vawe frame.
  4. 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.
  5. Renders a draft. bin/vawe dev renders half size at 30 fps with the audio mixed. The agent can render only the hard 2 to 4 seconds.
  6. Asks a fresh session to look. bin/vawe critique lays out the frames. A session that did not write the page reads them and names the seconds to fix.
  7. Fixes only those seconds. The agent renders the named range again, not the whole film.
  8. Lets you change it by hand. bin/vawe dev <page> --studio opens 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.
  9. Ships after approval. The owner types /vawe-approve twice: once for the plan, once for the draft. The agent never does. bin/vawe ship then renders 60 fps with motion blur, and bin/vawe wait prints the result.
AGENTS.md · bin/vawe --help

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 --help · harness/cli/verbs.mjs
the loop
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.

commandan agent runs it when
newit starts a film, or recreates a reference mp4
seeit needs to read a film, page or reference as numbers: shots, motion, light, type, sound
frameit needs a picture: one frame, a sheet of frames, one frame per world or per cut
devit wants a draft: half size, 30 fps, with sound
critiquea draft is ready for fresh eyes: phone sheet, strip, loop seam, measured deltas
checkit runs one named gate or report
soundit chooses, checks or cuts to sound
refsit studies references before it designs
shipthe owner approved the draft: 60 fps, motion blur, audio mixed
waita 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.

AGENTS.md · site/content/agent-guide.md

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.

AGENTS.md · skills/vawe-critique

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.

skills/ · AGENTS.md

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.

README.md
install
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.md

What 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.

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.

Why the draft matches the final.

The page runs under a virtual clock, so a moment the agent approves in a draft is the same moment in the final.