vidmake was designed for language-model agents first. An agent can't watch a preview window, so every
question it might ask about a video ("does it compile?", "when does the logo appear?", "is the title
clipped?", "does the bounce overshoot?") has a command that answers it in text, in JSON, or as a PNG the
agent can open. This page is the long version of vidmake's AGENTS.md.
#The loop
- Learn the format once:
vidmake docsprints the complete reference;vidmake docs <topic>prints one section. - Check the assets:
vidmake probe file.mp4 music.mp3gives durations and sizes. Before syncing to music,vidmake analyze music.mp3gives beat times and theamp/basscurves expressions will see. - Write
project.json: give every layer anid. Numbers are frames unless written as"2s"; animation times are relative to the layer's own start. - Validate:
vidmake validate project.jsonmust print ✓ with no warnings you didn't intend. - Check timing:
vidmake timeline project.json. - Look:
vidmake storyboard project.json -o sb.png -n 12, then open the image. - Measure:
vidmake inspect project.json -t <time>for positions and boxes,vidmake trace project.json -l <id>for an animation curve. - Fix and repeat from step 4, with direct edits or
vidmake set. - Render:
vidmake render project.json -o out/video.mp4 --jsonand report thedoneevent.
Steps 4 to 8 are cheap: none of them encodes video, and storyboard renders only the frames it shows.
Run them after every meaningful change rather than once at the end.
For agents
Set
VIDMAKE_NO_UPDATE_CHECK=1in your environment. vidmake never blocks a non-interactive run to ask about updates, but the variable keeps stderr free of the once-a-day update note (Installation).
#1. Learn the format
vidmake docs prints the full format reference (about 500 lines, the same text as the
reference page). Read it once at the start of a task. Later, pull single sections by
heading; the topic matches any heading that contains the word, case-insensitively:
$ vidmake docs time
## Time values
Numbers are **frames**. Strings may be `"1.5s"`, `"500ms"`, `"45f"`, or `"1:02.5"` (m:ss).
Used by `start`, `duration`, `end`, keyframe times, tween `start`/`end`/`duration`, presets, and CLI flags.
All animation times inside a layer are **local to that layer** (0 = the layer's own start).
A layer inside a group is timed relative to the group.vidmake docs presets, vidmake docs stagger, vidmake docs theme, vidmake docs series and
vidmake docs expressions are the sections agents reach for most. An unknown topic lists every section name. For editor-style
validation, vidmake schema prints a JSON Schema of the project format (JSON Schema).
#2. Check the assets
Never guess a clip's length or an image's size. probe reads them with ffprobe and prints JSON:
$ vidmake probe assets/clip.mp4 assets/music.mp3
[
{
"path": "assets/clip.mp4",
"kind": "video",
"duration": 6.0,
"width": 1280,
"height": 720,
"fps": 30.0,
"hasVideo": true,
"hasAudio": true,
"videoCodec": "h264",
"audioCodec": "aac",
"sampleRate": 48000
},
{
"path": "assets/music.mp3",
"kind": "audio",
"duration": 12.0,
"width": null,
"height": null,
"fps": null,
"hasVideo": false,
"hasAudio": true,
"videoCodec": null,
"audioCodec": "mp3",
"sampleRate": 48000
}
]Media layers default to their media length, so a video layer with trimStart: "2s" on this 6-second
clip lasts 4 seconds unless you set duration. Paths in a project are relative to the project file.
vidmake fonts lists installed font families; a font that isn't installed must be declared in the
project's fonts list.
If the video should move with the music, analyze the track before writing any
audio-reactive expression. analyze prints the beat times and tempo, and how loud amp and
bass get, exactly as the expressions will see them:
$ vidmake analyze assets/music.mp3 --every 1s
12.00s at 30.0 fps (360 frames)
beats: 18, tempo ≈120 BPM
0.00 1.00 1.50 2.00 3.00 3.50 4.00 5.00 5.50 6.00 7.00 7.50 8.00 9.00 9.50 10.00 11.00 11.50s
onsets: 25 (TIME RISE PEAK BAND)
0.499s +12.3 dB -8.9 dBFS mid
1.008s +12.5 dB -8.8 dBFS mid
1.507s +12.4 dB -8.7 dBFS mid
2.005s +12.8 dB -8.4 dBFS mid
2.504s +12.4 dB -8.8 dBFS mid
3.003s +12.5 dB -8.7 dBFS mid
3.502s +12.4 dB -8.6 dBFS mid
4.001s +12.7 dB -8.3 dBFS mid
4.500s +12.6 dB -8.6 dBFS mid
4.590s +10.6 dB -10.6 dBFS mid
5.009s +12.5 dB -8.8 dBFS mid
5.507s +12.5 dB -8.7 dBFS mid
6.016s +12.4 dB -8.8 dBFS mid
6.505s +12.5 dB -8.6 dBFS mid
7.004s +12.5 dB -8.7 dBFS mid
7.503s +12.4 dB -8.6 dBFS mid
8.012s +12.4 dB -8.6 dBFS mid
8.501s +12.4 dB -8.6 dBFS mid
9.010s +12.3 dB -8.8 dBFS mid
9.508s +12.6 dB -8.7 dBFS mid
10.007s +12.7 dB -8.5 dBFS mid
10.087s +10.7 dB -10.5 dBFS mid
10.506s +12.8 dB -8.6 dBFS mid
11.005s +12.4 dB -8.6 dBFS mid
11.504s +12.5 dB -8.7 dBFS mid
MEAN P10 MEDIAN P90 AT CEILING
amp 0.54 0.27 0.49 0.90 7%
bass 0.31 0.10 0.24 0.61 3%
TIME AMP mean/peak BASS mean/peak BEATS (bar = mean, ▏ = peak)
0.00s 0.54/1.00 ███████████ ▏ 0.46/1.00 █████████ ▏ 1
1.00s 0.54/1.00 ███████████ ▏ 0.16/0.38 ███ ▏ 2
2.00s 0.54/1.00 ███████████ ▏ 0.46/1.00 █████████ ▏ 1
3.00s 0.54/1.00 ███████████ ▏ 0.16/0.38 ███ ▏ 2
4.00s 0.54/1.00 ███████████ ▏ 0.46/1.00 █████████ ▏ 1
5.00s 0.54/1.00 ███████████ ▏ 0.17/0.38 ███ ▏ 2
6.00s 0.54/1.00 ███████████ ▏ 0.46/1.00 █████████ ▏ 1
7.00s 0.54/1.00 ███████████ ▏ 0.16/0.38 ███ ▏ 2
8.00s 0.54/1.00 ███████████ ▏ 0.46/1.00 █████████ ▏ 1
9.00s 0.54/1.00 ███████████ ▏ 0.17/0.38 ███ ▏ 2
10.00s 0.54/1.00 ███████████ ▏ 0.46/1.00 █████████ ▏ 1
11.00s 0.54/1.00 ███████████ ▏ 0.17/0.38 ███ ▏ 2Place cuts on the reported beats (here every 2 s, on the downbeat) and pick multipliers from the percentiles. A
warning: that a variable sits at its ceiling means anything driven by it will be pinned at its maximum there.
After adding trims, fades or volume changes, run vidmake analyze project.json to check the mix as the
composition plays it. See analyze the project.
#3. Write the project
A few habits make every later step easier:
- Give every layer an
id. All commands address layers by id, and errors name them. Without one, a layer gets an automatic id liketext#3, which changes when layers move. - Write times as strings (
"1.5s","500ms") unless you mean frames. A bare number is always a frame count:"start": 2is the third frame, not two seconds. See Time. - Remember that animation is local. Keyframe and tween times count from the layer's own
start, and a group's children count from the group's start. Moving a layer in time never breaks its animation. - Use percentages and anchors instead of computing pixel positions:
"y": "80%","anchor": "bottom-left". See Core concepts. - Prefer
duration: "auto"or a series over hand-adding scene lengths. - Put repeated values in the theme. Colors, type styles and a house motion written once as
"$color.accent","style": "$type.display","motion": "house"keep a video consistent and make a restyle one edit.{{name}}is for props only. - Write entrances as states, and keep moves short.
"enter": { "from": { "opacity": 0, "y": "0.3em" } }on the default spring reads better than a long slide. Useemfor text so the move scales with the font. - Stagger with
stagger, not hand-madestarttimes."stagger": "char"on text,"stagger": trueon a group,repeat.staggeron copies: each spreads its starts over a total time. See stagger.
#4. Validate
validate compiles the composition exactly as render would: schema, asset files, fonts, expressions,
timing. Then it lints the layout at each layer's midpoint.
$ vidmake validate start-hero.json
✓ hero — 150 frames (5.00s)Add --all to validate every composition in the file (components included), and --json for a
machine-readable report:
$ vidmake validate start-hero.json --json
{
"ok": true,
"compositions": [
{
"composition": "hero",
"ok": true,
"frames": 150.0,
"duration": 5.0,
"warnings": []
}
]
}#Error messages tell you the fix
Errors name the composition, the layer id and its position in the tree, and the field, and they usually list the valid options or suggest the closest name. Here is a deliberately broken project:
{ "id": "main", "width": 1280, "height": 720, "duration": "3s", "layers": [ { "id": "title", "type": "text", "text": "Hello", "fontsize": 96 }, { "id": "logo", "type": "image", "src": "assets/logo.png", "y": "75%" }, { "id": "badge", "type": "rect", "width": 200, "height": 80, "x": 1400, "enter": "fadeup" } ]}The first run stops at the misspelled field, because unknown fields are caught while the file is parsed:
$ vidmake validate project.json✗ main: composition `main`: unknown field `fontsize` — did you mean `fontSize`?After fixing it, the next run reports every remaining layer error at once:
$ vidmake validate project.json✗ main: layer `logo` (main > layers[1]): file not found: ./assets/logo.png (paths are relative to the project file) layer `badge` (main > layers[2]): `enter`: unknown preset `fadeup`. Available: fade, fadeUp|Down|Left|Right (fade + short move), slideUp|Down|Left|Right (from off the parent), rise (text: up from behind its line), scale, pop (bouncy), zoom, blur, rotate, wipeLeft|Right|Up|Down, typewriter (text)With the asset path and preset fixed, the project compiles, and the linter catches a layout mistake: the
badge at x: 1400 is outside the 1280-pixel canvas.
$ vidmake validate project.json✓ main — 90 frames (3.00s) warning: layer `badge` is entirely off-canvas at frame 45 (bbox [1300,320,1500,400]) [offCanvas]$ vidmake set project.json badge.x 1100set /compositions/0/layers/2/x$ vidmake validate project.json✓ main — 90 frames (3.00s)Each warning ends with a code in brackets (offCanvas, textOverflow, invisible, zeroDuration,
afterEnd). When a warning is intended, such as a blinking cursor that is invisible half the time,
silence that code on the layer with "lint": { "ignore": ["invisible"] } so the next validate is clean
again. See Lint.
#Exit codes
| command result | exit code |
|---|---|
| success, even with lint warnings | 0 |
the file can't be read, isn't JSON, or a command fails (error: ... on stderr) | 1 |
validate: at least one composition failed to compile | 2 |
Lint warnings never change the exit code: read the output (or warnings in --json) to catch them.
#5. Check timing
timeline lists every layer with its absolute start, end and duration, the presets and transitions that
apply, nested children indented under their group, and a text Gantt chart. Audio clips are listed at the
end.
$ vidmake timeline start-hero.json
Composition `hero` — 1280x720 @ 30fps, 150 frames (5.00s)
ID TYPE START END DUR DETAILS
card rect 0.00s 5.00s 5.00s enter:fadeRight
code text 0.00s 5.00s 5.00s "{ "type": "text", ⏎ "text": "Motion, w"
cursor rect 0.00s 5.00s 5.00s
arrow line 1.90s 5.00s 3.10s
title text 2.20s 5.00s 2.80s enter:fadeUp per unit "Motion, ⏎ written."
rule line 2.60s 5.00s 2.40s
tag text 3.00s 5.00s 2.00s enter:fadeUp "vidmake · JSON in, video out"
|0s 1s 2s 3s 4s |
card |████████████████████████████████████████████████████████████|
code |████████████████████████████████████████████████████████████|
cursor |████████████████████████████████████████████████████████████|
arrow |······················██████████████████████████████████████|
title |··························██████████████████████████████████|
rule |·······························█████████████████████████████|
tag |····································████████████████████████|Read it to confirm order and overlaps: here the arrow draws at 1.9 s, the title follows at 2.2 s and the
tagline at 3 s. --json gives the same data with startFrame/endFrame for each layer.
#6. Look
A storyboard is a contact sheet of frames, each labeled with its frame number and time. Open the PNG and look at it: this is how you catch problems no number reveals (an ugly color, text that is technically on canvas but crowded, a scene that is empty for too long).
vidmake storyboard project.json -o sb.png -n 8
-n picks evenly spaced frames from the first to the last; --at 0,1.5s,2s,90 picks exact ones.
--cols sets the grid width and --scale the thumbnail size (default 0.25). The command prints JSON with
the output path and the frames it used. For one frame at full resolution, use
vidmake still project.json -t 2.5s -o frame.png.
#7. Measure
inspect resolves every visible layer at one frame. X/Y are the anchor position in the parent's
coordinates; BBOX is the axis-aligned box on the canvas, after all transforms. NOTES shows active
presets and the current text.
$ vidmake inspect start-hero.json -t 4.5s
Frame 135 (4.50s) of `hero` (1280x720), 7 visible layer(s), drawn bottom→top:
ID TYPE X Y W H ROT SCALE OPAC BBOX [x0,y0,x1,y1] NOTES
card rect 340.0 360.0 560.0 300.0 0.0 1.00 1.00 [60,210,620,510]
code text 96.0 360.0 446.4 153.6 0.0 1.00 1.00 [96,283,542,437] "{ "type": "text", ⏎ "text": "Motion, w"
cursor rect 546.4 417.6 3.0 26.0 0.0 1.00 1.00 [545,405,548,431]
arrow line 672.0 360.0 56.0 1.0 0.0 1.00 1.00 [644,360,700,360]
title text 975.0 309.6 377.0 197.6 0.0 1.00 1.00 [787,211,1163,408] "Motion, ⏎ written."
rule line 975.0 446.4 360.0 1.0 0.0 1.00 1.00 [795,446,1155,447]
tag text 975.0 489.6 304.8 18.0 0.0 1.00 1.00 [823,481,1127,499] "VIDMAKE · JSON IN, VIDEO OUT"Use it to answer "does this overlap that?" and "is anything off the edge?" with numbers. Pass -l <id>
for one layer and --json for exact values:
$ vidmake inspect start-hero.json -t 4.5s -l title --json
{
"frame": 135.0,
"time": 4.5,
"layers": [
{
"id": "title",
"type": "text",
"depth": 0,
"localFrame": 69.0,
"x": 975.0,
"y": 309.6,
"width": 376.96484375,
"height": 197.59999084472656,
"rotation": 0.0,
"scaleX": 1.0,
"scaleY": 1.0,
"opacity": 1.0,
"visibleOpacity": 1.0,
"bbox": [
786.517578125,
210.80001831054688,
1163.482421875,
408.4000244140625
],
"text": "Motion,\nwritten."
}
]
}localFrame is the frame in the layer's own time. opacity is the layer's own value and
visibleOpacity includes its parents.
trace samples one layer over a range, which shows the shape of an animation curve. Here the tagline's
fadeUp preset moves it up a short distance while fading in:
$ vidmake trace start-hero.json -l tag --from 2.9s --to 3.6s --every 3
FRAME TIME X Y W H ROT SCALE OPAC NOTES
87 2.90s (not visible)
90 3.00s 975.0 494.1 304.8 18.0 0.0 1.00 0.00 enter:fadeUp "VIDMAKE · JSON IN, VIDEO OUT"
93 3.10s 975.0 492.8 304.8 18.0 0.0 1.00 0.29 enter:fadeUp "VIDMAKE · JSON IN, VIDEO OUT"
96 3.20s 975.0 491.3 304.8 18.0 0.0 1.00 0.63 enter:fadeUp "VIDMAKE · JSON IN, VIDEO OUT"
99 3.30s 975.0 490.4 304.8 18.0 0.0 1.00 0.83 enter:fadeUp "VIDMAKE · JSON IN, VIDEO OUT"
102 3.40s 975.0 489.9 304.8 18.0 0.0 1.00 0.93 enter:fadeUp "VIDMAKE · JSON IN, VIDEO OUT"
105 3.50s 975.0 489.7 304.8 18.0 0.0 1.00 0.97 enter:fadeUp "VIDMAKE · JSON IN, VIDEO OUT"
108 3.60s 975.0 489.6 304.8 18.0 0.0 1.00 0.99 enter:fadeUp "VIDMAKE · JSON IN, VIDEO OUT"--every takes frames or a time, and --from/--to limit the range.
#8. Fix
Edit the JSON directly for structural changes. For single values, vidmake set is faster and safer: the
whole project is compiled before the file is saved, so a bad value is rejected instead of written.
vidmake set project.json title.fontSize 96vidmake set project.json title.text "Launch day" # plain strings can skip the inner quotesvidmake set project.json title.enter '{"type": "fadeUp", "duration": "0.8s"}'vidmake add project.json '{"id": "logo", "type": "image", "src": "assets/logo.svg", "y": "80%"}'vidmake rm project.json badgePaths are <layerId>.<field>, <compositionId>.<field> or a JSON pointer like /compositions/0/fps.
See Editing.
#9. Render
vidmake render project.json -o out/video.mp4 --jsonWith --json, stdout carries one JSON object per line: progress events while frames render, then a
single done event. Report the done event (output path, size, duration) when you're finished:
...{"event":"progress","rendered":144,"total":150,"percent":96.0,"elapsed":9.541376148,"fps":15.092162573444329,"eta":0.4}{"event":"progress","rendered":150,"total":150,"percent":100.0,"elapsed":9.925414709,"fps":15.112718651844897,"eta":0.0}{"event":"done","output":"out/video.mp4","codec":"h264","frames":150,"width":1920,"height":1080,"fps":30.0,"duration":5.0,"elapsed":10.518275,"renderFps":14.260893540052908,"draft":false}progress field | meaning |
|---|---|
rendered, total | frames done and frames in the range |
percent | 0 to 100, one decimal |
elapsed, fps | seconds since the start and the current render speed |
eta | estimated seconds left |
done field | meaning |
|---|---|
output | the file (or directory, for PNG sequences) written |
codec | h264, h265, vp9, prores, gif, png, mp3, wav or aac |
frames, fps, duration | how much was rendered, in frames and seconds |
width, height | output size in pixels, after --scale |
elapsed, renderFps | wall-clock seconds and frames rendered per second |
draft | whether --draft was used |
--draft renders a quick full-length preview (half size, no motion blur, fastest encoder settings), and
--frames 1s-3s renders a slice. Rendering covers formats and flags.
#JSON output everywhere
Every command that reports on a project or a file can print JSON, so an agent never has to parse tables:
| command | JSON |
|---|---|
validate --json | { ok, compositions: [{ composition, ok, frames, duration, warnings }] }, or error when a composition fails |
timeline --json | { composition, layers: [...], audio: [...], warnings } |
inspect --json | { frame, time, layers: [{ id, type, depth, localFrame, x, y, width, height, rotation, scaleX, scaleY, opacity, visibleOpacity, bbox, ... }] } |
trace --json | an array of samples { frame, time, visible, x, y, width, height, ..., active } |
list --json | an array of compositions with size, fps, duration, props and layer count |
render --json | progress and done events, one per line |
still, storyboard | always print one JSON line with the output path and frames |
analyze --json | { fps, frames, duration, beats: { count, tempo, times }, amp, bass, warnings, curve: [...] } |
probe, get, schema | always JSON |
Errors go to stderr as error: ... with exit code 1 (or the ✗ line and exit code 2 for validate).
#Rules of thumb
- Look before you render. A clean validate means the project compiles and nothing is off-canvas; it doesn't mean the video looks good. Open a storyboard every time.
- Check exact moments, not just evenly spaced ones. Use
storyboard --atorstill -tat transition midpoints, the moment text finishes typing, and the last frame. - Trust
inspectover arithmetic. Text sizes depend on the font;inspectreports the measured box. - Keep validate clean. Silence intended warnings with
linton the layer so a new warning stands out. - Report the
doneevent, not just "rendered", so the user gets the path, size and duration.
#Give your agent these instructions
Paste this into your own AGENTS.md, CLAUDE.md or system prompt:
Making videos with vidmake:1. Run `vidmake docs` once to learn the format (or `vidmake docs <topic>`, e.g. `animation`, `presets`, `stagger`, `theme`).2. Check assets first: `vidmake probe file.mp4 music.mp3` gives durations and sizes. Before syncing to music, `vidmake analyze music.mp3` gives beat times and the `amp`/`bass` curves expressions will see.3. Write `project.json`. Give every layer an `id`. Times are frames unless written as `"2s"`; animation times are relative to the layer's own start. For anything choreographed, name the beats in the composition's `markers` and write `"@beat"` / `since('beat')` instead of repeating times. Put brand colors, type styles and motions in the `theme` and write `"$color.accent"` / `"style": "$type.display"`. Entrances name a start state (`"enter": { "from": { "opacity": 0, "y": "0.3em" } }`); stagger text with `"stagger": "char"` and groups with `"stagger": { "from": "center" }` instead of hand-spaced starts.4. Loop until clean: - `vidmake validate project.json` must print ✓ with no warnings you didn't intend. - `vidmake timeline project.json` to confirm timing and overlaps. - `vidmake storyboard project.json -o sb.png -n 12` and look at the image. - `vidmake inspect project.json -t <time>` to check exact positions and bounding boxes. - `vidmake trace project.json -l <id>` to check an animation curve.5. `vidmake render project.json -o out/video.mp4 --json` and report the `done` event.Small changes: `vidmake set project.json <layerId>.<field> <json>` (rejected if it would break the project).AI integration has a ready-made agent skill and the llms.txt files.