The ICM video pipeline is a folder you open in a coding agent such as Claude Code, Codex, Cursor, Gemini CLI or Copilot. You ask for a video in plain words, and the agent works through numbered stages: brief, script, style, storyboard, build, render. It stops at each one for you to look and reply. What comes out is an MP4 with captions and music. No video generator is involved.
Why code, not generated footage
Each video is one HTML scene with a function, frame(t), that draws the exact picture for any moment t. Headless Chrome takes a screenshot of every frame and FFmpeg joins them into the video. Because the scene is a pure function of time, the same scene always renders the same frames.
That changes what you can rely on:
- The words are real text. Prices, dates and phone numbers are typed into the script, so they come out spelled right, in the font you picked.
- Every stage is a file you can edit. The brief, the script with its timings, the storyboard plan and the beat grid are plain files. Change one line and re-render.
- One scene, several shapes. Positions come from a layout function, so the same scene renders a 9:16 vertical version alongside the 16:9 one.
- It runs on your machine. Nothing is uploaded anywhere.
The idea follows ICM (Interpretable Context Methodology, by Jake Van Clief): numbered stage folders, a CONTEXT.md contract for each stage, and outputs a person can edit before the next stage reads them.
How a run goes
You answer four questions up front: what kind of video (ad, explainer, pitch, vertical short), how long, the look and feel, and the quality. Then the agent works stage by stage and stops for you, usually with a localhost link to a review page:
| Stop | You look at | You reply |
|---|---|---|
| Intake (only if you gave it files) | 2–3 angles your material could become, and any personal data it found | a letter, and a decision on each flag |
| Brief | brief.md |
edits, or “brief approved” |
| Script | every caption with its timing | edits, or “script approved” |
| Style | 3–4 looks, each using your own words | a letter, a mix (“A’s colours, B’s type”) or “none” |
| Storyboard | each shot’s still next to its plan | “approved”, or what to change |
| Audio | 2–3 music options under your video | a letter |
| Render | the MP4 and a contact sheet | “done”, or changes |
Between the storyboard and the render, the agent scores its own key frames 1–10 for readability, composition and motion. It fixes the three worst problems and repeats until every shot scores 8 or higher.
Run one: a 30-second ad from a price sheet
Mossgate Lawn & Garden is a fictional company made up for this demo. I gave the pipeline four files: a price spreadsheet, a spring flyer, a homepage screenshot and a business listing. I asked for a 30-second commercial to get more spring cleanups and weekly mowing bookings.
At the intake stop, the agent had read all four files, found 19 numbers worth quoting and flagged the contact details. It then checked which details could be mistaken for a real business. The 555 phone number and the .example domain can’t be real, but “Cedar Hollow” is a real place name in several states. So the address was blurred to “Cedar Hollow and nearby”.
The first set of styles came back looking like slides, and I said so: “very basic and PowerPoint-like”. The second round drafted three styles as short commercials, each in its own world: a 16-bit pixel yard, a cut-paper garden, and a top-down lawn where every line is mowed into the grass. I picked the lawn.

The critique loop found three problems on its first pass. The hook was mowed in too slowly, the stars left the reviews screen half empty, and grass clippings drifted over “20%”. All three were fixed, and the second pass scored every shot 8 or higher. It took eight messages to go from the files to the finished ad.

Run two: a 45-second pitch from one prompt
Midnight Crumb is a fictional business: late-night cookies delivered to students on campus. This run had no material at all, just one paragraph asking for a pixel-art pitch video for a class presentation. With nothing to read, the agent listed every fact it had to invent (opening hours, delivery time, a $12 “Study Pack”) in a table for me to confirm in the brief.
The style stop offered two new pixel styles built for that prompt, plus an earlier one for contrast. After the first render, a check for frozen stretches found six near-still seconds in the delivery shot, so the agent added movement there and re-rendered. When I asked for more upbeat, Game Boy-like music, it added a chiptune sound style that any future video can use. The picture didn’t change by a single frame. That’s five messages for the video, plus one to change the music.

Quality levels
A final render takes one word. These times were measured on the Mossgate ad (30 seconds at 1920×1080, rendered with 6 workers):
| Level | What it does | Render time |
|---|---|---|
| quick | no supersampling, no motion blur | 30 s |
| polished (default) | 2× supersampling for cleaner edges on text and lines | 114 s |
| cinematic | 1.5× supersampling plus motion blur on fast moves | 285 s |
What’s in the download
- The full pipeline: the stage folders and their contracts, the render, QA and critique tools, the style library, the effects kit and the sound synth.
- A gallery page that plays every style, effect and music option, with the words to ask for each one.
- The six worked examples from these runs: their run logs with every prompt and reply, screenshots of each stop, and the finished videos.
It needs Node 20+, Chrome (or Chromium or Edge), FFmpeg, and Python 3 with numpy for the soundtrack. The fonts are included. Setup takes about ten minutes, and the setup notes cover each operating system.
Where the technique comes from
- Chase AI’s video on making video with Claude Code and plain JavaScript is the source of the core idea:
frame(t), a headless browser and FFmpeg, with the storyboard first and a contact-sheet check before calling it done. - The movez course on a motion design studio with Claude is the source of the springs, the beat grid that drives both picture and sound, the review gates, and the critique loop.
- Jake Van Clief’s ICM is the source of the stage folders and the contracts between them.
If you want video from code without a staged workflow, look at Remotion, Motion Canvas, Revideo or HyperFrames. This pipeline is for when you want plain HTML scenes, a review at every stage, and a coding agent doing the work.
Mossgate Lawn & Garden and Midnight Crumb are fictional companies made up for these demos.