TL;DR
Code-driven video generation gives AI agents surgical control over typography, animations, and 3D cameras, yet a script that runs with exit code 0 can still render overlapping text, off-target cameras, or out-of-sync narration. VibeVideoAgent gives coding agents "eyes and ears" during production without drowning their memory in raw video frames and audio tokens. By delegating audiovisual checks to short-lived, isolated perception workers that return compact diagnostic notes, agents catch and patch visual and timing bugs early—dramatically boosting final video quality across any rendering stack.
What Problem Does This Paper Address?
Pixel-space video generators make lush textures, business-ready typography, exact charts, and tight multi-shot edits remain notoriously difficult for them. Enter code-driven video generation ("Vibe Video"), where an AI coding agent writes executable rendering programs—using Manim, HTML/Canvas, Remotion, Blender, or FFmpeg—to output both an .mp4 and an editable codebase.
The catch? Traditional compiler feedback fails here. Coding agents hit three blind spots:
- Silent perceptual bugs: A Python or React script can execute cleanly while rendering a 3D camera staring at a blank wall, labels colliding, or voiceovers lagging two seconds behind the visuals.
- Context pollution: Dumping raw video frames and audio directly into the coding agent's chat history rapidly bloats its context window, degrading its ability to maintain complex code over dozens of turns.
- Late critiques: Waiting until the final full-resolution render to ask a Vision-Language Model (VLM) for feedback turns early layout or rigging mistakes into expensive, full-project rewrites. Worse, fixing timing in one shot shifts timestamps everywhere else.
Methods
VibeVideoAgent is a training-free, engine-agnostic framework exposed via the Model Context Protocol (MCP). Its core innovation is a decoupled perceptual loop: raw media never enters the coding agent's context. Instead, perception queries go to stateless workers (Gemini 3.8 Flash or local ffmpeg tools) in ephemeral contexts that return compact, structured Findings (a verdict, summary, bounding boxes, and timestamps) before discarding the heavy media.
To manage messy, in-progress video files, the authors introduce three main components:
- Unified Multi-Clock Representation: Drafts live on different timelines (e.g., a 4-second preview of Scene 3 that actually sits at
12.0sin the final cut). A unified specification deterministically maps timestamps across source, excerpt, and film timelines, uses crop-before-scale magnification so small text isn't blurred, and hashes source files to cache unchanged checks. - Seven Stack-Agnostic Primitives: Instead of open-ended "how does this look?" prompts, agents call targeted tools for coarse-to-fine exploration (
describe_media,locate_event,inspect_segment,transcribe_speech), modality-gated verification of quoted prompt rules (check_requirement), dual-clock diffing against references or prior buggy drafts (compare_media), and zero-token local signal checks (probe_mediaviaffprobe/ffmpegfor loudness, dead air, corrupt packets, and frozen frames). - Staged Production Protocol: A lightweight state machine forces the agent to write a production plan first, render a minimal preview to test its single riskiest design choice early, and then proceed through rough-cut assembly, targeted revision, and verified final delivery.
Datasets
Because VibeVideoAgent is training-free, no training datasets are used. Evaluation runs on VibeVideoBench, an existing benchmark of 239 tasks across 12 English and Chinese categories—spanning data storytelling, paper explainers, 3D demos, game simulations, and music-driven edits—where agents build videos strictly via code from text briefs and read-only assets. No new benchmark is introduced, though the authors construct a deterministic 36-task diagnostic subset from baseline metadata for unbiased ablations.
Key Insights and Ideas
- Edit granularity governs the quality-compliance trade-off: Seeing bugs is only half the battle; how an agent fixes them matters. Claude Opus 5.5 and GPT-6 Astra make surgical, localized code diffs, improving both perceptual quality and strict rubric compliance. Conversely, Claude Sonnet 5.5 tends to rewrite entire scripts when fixing a timing bug—improving pacing, yet accidentally erasing secondary static details it had previously gotten right.
- Deterministic guardrails tame VLM blind spots: Left unchecked, VLMs hallucinate timestamps on pre-cut clips or pass an audio-visual sync check by looking only at the visuals. Re-zeroing excerpt clocks and programmatically forcing
uncertainverdicts whenever required modalities lack cited evidence prevents premature victory laps. - Massive context savings: Perception workers inspect hundreds of frames and minutes of audio per task, yet the distilled Findings stored in the coder's state average just 0.3k–1.4k tokens—avoiding tens of millions of tokens in multi-turn replay overhead.
Key Results
Across all 239 VibeVideoBench tasks (scored by Gemini 3.8 Flash and Gemini 4 Argon judges on L1 technical spec %, L2 binary rubric %, and 1–5 L3 perceptual quality), VibeVideoAgent boosts every tested frontier coding model over its native CLI baseline:
- Claude Opus 5.5: L3 holistic quality jumps from 4.03 to 4.43, while L2 rubric compliance rises from 98.87% to 99.35%.
- GPT-6 Astra: L3 rises from 4.03 to 4.27, L2 from 98.67% to 99.15%, and L1 reaches 99.51%.
- Claude Sonnet 5.5: L3 improves from 3.97 to 4.10 (though L2 dips 1.75 percentage points due to whole-script rewrites).
- Audio–Visual Sync wins big: Cross-modal timing (
AQ) sees the largest gains across the board—up to +0.56 for Opus 5.5—catching TTS narration cutoffs and dead air that exit-code checks miss.
Limitations and Future Work
Because perception samples bounded frame rates ($\le 16\text{ fps}$) and targeted time windows, single-frame glitches or uninspected scenes can slip through. Furthermore, comparing before-and-after clips proves a visual symptom changed, not causal correctness across shared code helpers if neighbor shots aren't re-checked. External VLM workers can also struggle with dense 3D depth ordering without explicit cropping, and intermediate renders add compute latency. Future directions include guiding smaller coding models toward localized edits, adaptive preview fidelity scheduling, open-weight perception workers, and deeper integration with 4D previsualization engines.
Summary updated