Agents can write code but are clumsy video editors: driving a timeline tool burns millions of tokens and the result drifts off the beat. Video needed an interface an agent is good at, plain text in and a checked file out.
The agent writes one montaj.yaml: shots, text, music, looks and transitions. montaj resolves it into a frame-by-frame timeline, renders each segment on the GPU with NVDEC and NVENC, rasterises text once per card in headless Chromium, mixes audio with two-pass loudness normalisation, and runs QA for black frames, frozen spans, loudness and A/V sync. Segments are cached by hash, so an edit re-renders only what changed. Every command prints OK, WARN or ERR with the fix.
