Code-driven video generation asks a coding agent to write and run rendering programs. This gives exact control over typography, data visualizations, synchronized audio, and multi-shot scenes, and it leaves an editable project behind. A program that exits cleanly can still render overlapping labels, a camera aimed away from its subject, broken object interactions, or narration that drifts out of sync, and none of these raise a runtime error. Feeding rendered frames and audio back into the coding session bloats its long-horizon context, while critiquing only the finished full-resolution render turns early design mistakes into costly rewrites. We introduce VibeVideoAgent, a training-free framework that lets coding agents inspect their drafts throughout production. Multimodal perception runs in short-lived contexts kept apart from the coder and returns compact, grounded Findings. Seven primitives operate on a unified multi-clock representation of assets and drafts: they explore media from coarse to fine, verify quoted requirements with evidence from every required modality, compare a draft with a reference or an earlier revision on separate clocks, and measure stream signals locally. A lightweight staged protocol has the agent test its riskiest decision on a minimal preview first. On all 239 VibeVideoBench tasks, with matched agent runtimes and a fixed perception model, VibeVideoAgent improves holistic audiovisual quality (L3) for Claude Opus 5.5 (4.03 -> 4.43, while L2 rubric compliance rises from 98.87% to 99.35%), GPT-6 Astra (4.03 -> 4.27), and Claude Sonnet 5.5 (3.97 -> 4.10), with the largest gains in audio-visual synchronization (up to +0.56). Controlled ablations show that each component contributes, and trajectory audits show that the granularity of code edits governs the trade-off between rubric adherence and perceptual quality.
Figures & tables
Figure 1: Closing the perceptual loop in code-driven video generation. (a) A conventional coding agent either ships unchecked renders, so visual, spatial, and sync bugs survive a clean exit code, or puts raw frames and audio into its context Ct and critiques only the final video, which leads to whole-project rewrites. (b) VibeVideoAgent keeps raw media out of Ct : a stateless VLM worker Φ and local probes Ψ return compact, grounded Findings ft at every stage, from a minimal preview to final delivery.
Figure 2: Architecture of VibeVideoAgent. (a) A three-clock Media specification σ addresses assets, stills, partial previews, and full renders, with crop-before-scale magnification and source-file hashing. (b) Seven stack-agnostic primitives explore media from coarse to fine, verify sourced requirements across modalities, compare two media on separate clocks, and probe signals without model calls, returning grounded Findings ft to an auditable ledger. (c) A staged protocol gates planning and then guides preview, assembly, repair, and delivery checks.
Coding backbone
Configuration
L1 Spec ↑
L2 Rubric ↑
VQ ↑
VA ↑
CL ↑
TM ↑
AQ ↑
L3 Mean ↑
Claude Opus 5.5
Native Agent
99.92
98.87
4.04
4.08
4.09
4.03
3.89
4.03
+ VibeVideoAgent
98.59
99.35
4.37
4.43
4.46
4.42
4.45
4.43
Claude Sonnet 5.5
Native Agent
99.18
96.36
3.97
4.02
4.03
3.96
3.85
3.97
+ VibeVideoAgent
95.75
94.61
3.98
4.05
4.15
4.07
4.25
4.10
GPT-6 Astra
Native Agent
98.93
98.67
4.07
4.09
4.08
3.98
3.94
4.03
+ VibeVideoAgent
99.51
99.15
4.26
4.31
4.29
4.20
4.26
4.27
Table 1: Main results on VibeVideoBench (239 tasks, 12 categories). Each coding model’s official Native Agent vs. + VibeVideoAgent (Gemini 3.8 Flash perception) in identical sandboxes. Scores average the official Gemini 3.8 Flash and Gemini 4 Argon judges (L1/L2 in %; L3 rated 1–5); bold marks the better configuration.
Coding backbone
Calls / Findings
Sampled Media (Fr. / Audio)
Coding Out Tok / Task
Preview Gate Checked (%)
Failed Checks Edited (%)
Dual-Clock Resolved (%)
Claude Opus 5.5
12.0 / 6.2
386 / 171 s
147.9k
93.9 ‡
77.4
58.3
Claude Sonnet 5.5
12.2 / 7.8
303 / 138 s
206.8k
84.3
75.3
42.5
GPT-6 Astra
50.6 / 23.1
1,297 / 660 s
179.3k
100.0
84.2
65.6
Table 2: Context decoupling and repair-funnel telemetry on VibeVideoBench (per task). Worker calls, Findings, and sampled media stay in short-lived perception contexts; Coding Out Tok counts the coding model’s output tokens; the last three columns track staged verification and repair convergence.
Ablation variant
L1 Spec ↑
L2 Rubric ↑
VQ ↑
VA ↑
CL ↑
TM ↑
AQ ↑
L3 Mean ↑
(a) Verification and signal-probing primitives
Native coding agent (no perception tools)
100.00
96.06
3.87
3.90
3.89
3.76
3.80
3.84
VibeVideoAgent w/o check_requirement
98.43
98.35
4.27
4.26
4.31
4.26
4.33
4.29
VibeVideoAgent w/o compare_media
97.38
99.11
4.20
4.37
4.39
4.26
4.28
4.30
VibeVideoAgent w/o probe_media
95.81
99.03
4.26
4.33
4.40
4.31
4.36
4.33
(b) Production orchestration
Table 3: Component ablations on the 36-task treatment-blind, capability-stratified subset (Claude Opus 5.5, Gemini 3.8 Flash perception, dual-judge averages). (a) Removing individual primitives. (b) Removing the staged production protocol while keeping all seven primitives.
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
Role
Primitive
Verdict set
Primary in-production purpose
I. Coarse-to-fine exploration
describe_media
observed , uncertain
1 fps global timeline index or still layout overview.
locate_event
observed , uncertain
Query search plus automatic 8 fps refinement on ≤2 windows.
inspect_segment
observed , uncertain
Focused local or cropped Q&A ( 4 fps default) plus ≤6 evidence frames.
transcribe_speech
observed , uncertain
Audio-only speech transcription in the original language with timestamps.
II. Sourced contract check
check_requirement
pass , fail , uncertain
Tests one sourced claim with enforced multi-stream evidence.
Aligns two independent clocks for reference-to-draft matching or finding_id -anchored revision verification.
Appendix
Table 4: The seven production primitives of VibeVideoAgent. The first six call the decoupled perception worker on bounded excerpts; probe_media runs deterministically on the local host and makes no model calls.
Validates each verbatim prompt_quote against prompt.txt , checks complete requirement-to-beat coverage (deduplicated diagnostics), and unlocks coding and rendering.
describe_media
media , focus
1 fps sparse scene, text, and sound timeline or still layout; navigation only.
locate_event
media , query , refine=True
Candidate occurrences with boundary intervals plus up to two automatic 8 fps refinement Findings.
inspect_segment
media , question , evidence_frames=False
4 fps local diagnostic Finding; optionally attaches ≤6 CFR-sampled JPEG frames to the MCP response.
transcribe_speech
media
Extracts 64 kbps Opus audio only; returns verbatim segments with timestamps and a language tag (no API call if silent).
check_requirement
requirement_id , media , stage ∈ { preview , assembly , final }
Looks up the planned observable , prompt_quote , and required evidence modalities; rejects inputs/ paths; returns pass / fail / uncertain .
Appendix
Table 5: Complete MCP interface of VibeVideoAgent. Management interfaces ( plan_production , register_artifact , submit_delivery , status ) execute locally with zero model calls.
Perceptual context telemetry
Gemini 3.8 Flash judge
Gemini 4 Argon judge
Task
Calls (Find.) / Fr.
Perceived
Returned
L2 (%)
L3
L2 (%)
L3
W0448
13 (12) / 412
32.1k
5.8k ( 5.5× )
76.0→96.0
3.60→4.75
95.8→95.8
3.60→3.75
W0100
6 (5) / 180
15.2k
2.2k ( 6.8× )
95.5→100.0
3.60→4.00
89.6→88.7
3.20→3.40
D0032
15 (11) / 243
16.7k
5.1k ( 3.3× )
100.0→100.0
4.00→4.00
100.0→100.0
5.00→4.80
D0054
17 (15) / 362
39.7k
8.4k ( 4.7× )
100.0→100.0
4.00→4.00
100.0→100.0
4.00→4.00
D0060
14 (8) / 362
25.0k
4.5k ( 5.6× )
100.0→100.0
5.00→5.00
100.0→100.0
3.80→4.00
Appendix
Table 6: Eight-task diagnostic payload compression and dual-judge audit (Claude Opus 5.5 + VibeVideoAgent in CC 2.1.325 vs. the archived official Native Opus 5.5 rollout v4_claude_opus_sub on VibeVideoBench). Tasks span five development cases ( W0448 , W0100 , D0032 , D0054 , D0060 ) and three held-out hard cases selected before generation as the tasks with the lowest paired baseline pass rates ( W0154 , R0009 , PA02 ). Calls (Find.) / Fr. reports total perception-worker calls, Findings accepted after deterministic post-validation, and sampled frames; Perceived and Returned compare matched Gemini 3.8 Flash prompt tokens on accepted Findings ( 38.1k mean across all worker attempts) with full serialized MCP Finding JSON tokens ( ≈4 B/token; no evidence-frame JPEGs requested). L3 averages the 1–5 dimensions ( AQ omitted on brief-permitted silent deliveries W0448 and W0154 ).
Figure 3: Recorded production trajectory on W0448 (a 20.0 s, 1920×1080 , 30 fps six-stage life-story loop). Every timestamp, normalized box, and verdict is copied from state.json ; Finding spans are drawn on a 0–20 s film ruler. The agent validates the cross-age character design on one preview still and catches three silent staging bugs in R_youth and R_family in v1.mp4 . It also separates an over-specific observable it wrote for R_farewell (marked fail*) from the satisfied prompt_quote . It then patches render.py , confirms both repairs with dual-clock compare_media , and finishes with decode and seam probes, leaving R_end_zoom as uncertain . The bottom row reports perception cost, context compression, and the Flash-judged outcome against the native Opus 5.5 baseline.
Figure 4: End-to-end authoring with VibeVideoAgent. (a) The recorded W0448 run with real frames. (1) plan_production decomposes the brief, and a single stage=preview lineup still verifies cross-age character identity before full rendering. (2) stage=assembly checks catch silent staging bugs in v1.mp4 even though the render exited cleanly: the backpack is held in hand, and in the Family beat no lid closes while the child already stands in the doorway. (3) compare_media(finding_id, media) confirms a targeted render.py patch across shifted clocks. (4) Deterministic probe_media checks finalize the seamless red-button loop. Raw frames stay inside short-lived Gemini 3.8 Flash calls, whose Findings are 5.5× smaller than the media they perceive. (b) Without engine-specific adapters, the same seven primitives serve an interactive 3D WebGPU system ( W0154 , +71.1 pp L2 under the Argon judge), a long-form paper explainer with synchronized narration ( PA02 , 12.0× smaller payload), and reference-guided reconstruction of motion and audio ( R0009 , Flash-judged L3 3.60→4.80 ).