VibeVideoAgent: Closing the Perceptual Loop for Code-Driven Video Generation
Organizations: KlingAI Research
Abstract
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
| 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 |
| 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 |
| 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 | ||||||||
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 | fps global timeline index or still layout overview. |
| locate_event | observed , uncertain | Query search plus automatic fps refinement on windows. | |
| inspect_segment | observed , uncertain | Focused local or cropped Q&A ( fps default) plus 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. |
| III. Dual-clock comparison | compare_media | resolved , persists , changed , unchanged , uncertain | Aligns two independent clocks for reference-to-draft matching or finding_id -anchored revision verification. |
| Tool | Key arguments | Returned payload and invariants |
| plan_production | goal , deliverables , requirements , beats , creative_choices , first_requirement , preview , risk | 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 | 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 fps refinement Findings. |
| inspect_segment | media , question , evidence_frames=False | fps local diagnostic Finding; optionally attaches CFR-sampled JPEG frames to the MCP response. |
| transcribe_speech | media | Extracts 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 . |
| 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 ( ) | ||||
| W0100 | 6 (5) / 180 | 15.2k | 2.2k ( ) | ||||
| D0032 | 15 (11) / 243 | 16.7k | 5.1k ( ) | ||||
| D0054 | 17 (15) / 362 | 39.7k | 8.4k ( ) | ||||
| D0060 | 14 (8) / 362 | 25.0k | 4.5k ( ) | ||||
Agentic Video Generation
Agentic video generation uses AI agents to plan, create, evaluate, and refine videos through coordinated tools and feedback.
See all 63 papers