Code is a precise way to specify when a title appears or how a graphic moves. It is less direct as a way to establish whether the rendered sequence looks as intended. The VibeVideoAgent researchers connect a coding model to inspection of the video its program produced. The feedback loop gives the agent a second source of evidence beyond successful execution.
A narrow code edit can be easier to verify
The VibeVideoAgent authors examine edit granularity in their trajectory audits and report particularly strong gains in audio–visual synchronization in some comparisons. If an agent changes the timing of one caption, the next render offers a fairly focused test of that change. Rewriting an entire scene may repair the caption and introduce a new camera or audio error. Recording the program diff together with the rendered before-and-after result makes it easier to relate a score change to a particular decision made in the feedback loop.
The Perceptual Gap in Code-Driven Video
In code-driven video generation, every visual element—text placement, camera motion, audio timing—is defined programmatically. This gives precise control over design and allows for easy revision. When a script runs successfully and exits with zero error, it doesn’t mean the output meets design intent. A character might be holding a backpack instead of wearing it; a caption could overlap with another; or narration might start two seconds after a data point appears on screen. These issues are invisible to the agent because they don’t trigger runtime errors. Instead, they emerge only when the final video is reviewed—too late to correct efficiently.
The initial obstacle is that feeding raw video frames and audio into the agent’s context during production leads to rapid context bloat. Every render adds thousands of tokens, degrading long-term code readability and making it hard for the agent to maintain a clear mental model of its own work. Moreover, when only the final product is evaluated, any early mistake—like misaligned text or broken transitions—forces a full rewrite of the project. Changes in timing or structure across shots mean that re-inspecting one clip may miss regressions elsewhere.
A Lightweight Perception Loop for Draft Inspection
To address this, VibeVideoAgent introduces a training-free framework where the agent can inspect its own drafts at any stage without loading raw media into its main context. Instead of viewing full videos or audio clips directly, it makes short-lived perception calls that analyze specific segments—such as a single design frame, a preview of a shot, or a partial cut—and return compact, grounded Findings. These are structured observations tied to precise time and space coordinates within the draft, and each is anchored to a hash of the source code, ensuring reproducibility.
The system operates on a unified multi-clock model that treats different video components—design stills, shot previews, full rough cuts—as events occurring at distinct times or offsets. This allows the agent to compare a current draft with an earlier version, verify requirements against evidence from multiple modalities (text, audio, visuals), and explore assets from coarse to fine detail. Seven primitives enable these operations: inspecting media segments, locating specific events, transcribing speech, checking whether design requirements are met, comparing drafts across time, and verifying consistency between visual and audio signals.
The agent moves through four stages of production: preview, assembly, repair, and delivery. In the preview stage, it explores assets and renders small clips to assess feasibility before building more complex sequences. During assembly, it checks cross-shot continuity—such as caption legibility or speech-to-graphic alignment—on low-cost rough cuts. If a check fails, the agent refines its focus (e.g., adjusting frame rate or crop), re-renders the affected segment, and uses comparison primitives to confirm fixes and validate adjacent shots. In final delivery, it runs a probe on the encoded video, verifies that no new violations have been introduced by compositing, and records the output with its source code for future reference.
This architecture avoids the need for training or large-scale datasets. It relies instead on deterministic checks grounded in the actual media generated at each step. Feedback is not delayed until the end; it appears immediately when a draft fails to meet design criteria. The agent does not see full videos, nor does it store them in its long-term memory. Instead, perception happens in short bursts, with results distilled into actionable insights.
The system works across different rendering engines—HTML/Canvas, React/Remotion, Blender Python, FFmpeg—and supports both 2D motion design and 4D cinematic previsualization. It does not require engine-specific scene graph extractors or external vision models. Instead, it uses a lightweight protocol that delegates observation to short-lived perception calls, keeping the agent’s core reasoning environment clean and focused.
But it gives agents immediate, actionable feedback—on what is visible, where it fails, and how to fix it—without overloading their memory or requiring rewrites of entire projects.
A Perception Loop Without Training or Raw Media Access
VibeVideoAgent operates without training on the coding model itself. Instead, it introduces a lightweight perception protocol that runs in isolated, short-lived contexts during video production. When a coding agent generates a draft—such as a scene with moving text or synchronized audio—the system does not allow direct access to raw video frames or audio waveforms. Instead, all observation is channeled through seven predefined primitives: describemedia, locateevent, inspectsegment, transcribespeech, checkrequirement, comparedrafts, and verifytimeline*. Each primitive performs a specific, bounded task—like identifying where a label appears in a frame or confirming whether a spoken word matches a requirement from the brief. These operations are executed on a unified multi-clock representation of the video assets and drafts, meaning that different versions of a scene (e.g., an early draft versus a final cut) are treated as distinct temporal states. Every perception call returns a compact, structured finding—such as “At time 12.3s, the red label is positioned 40px from the left edge”—that is grounded in both spatial and temporal coordinates. Crucially, these findings are tied to cryptographic hashes of the source code, ensuring that each observation corresponds directly to a specific version of the generated project.
Controlled Comparison Across Tasks and Models
The evaluation used a benchmark called VibeVideoBench with 239 tasks across 12 categories, including data storytelling, interactive 3D demos, and music-driven edits. Instead, it had to write code that produced both an MP4 file and an editable source repository. The experiment compared two versions of each agent: one using only native code generation (the baseline), and another with VibeVideoAgent’s perception loop integrated into its workflow. All runs were conducted in identical 16-vCPU Linux environments, with the same rendering libraries and input constraints. Every perception call was routed through a fixed perception model—Gemini 3.8 Flash—and blocked by a PreToolUse hook that prevented direct reads of raw media or external APIs. The two multimodal judges first check technical requirements. Another level aggregates binary rubric decisions, and the perceptual assessment uses five dimensions with a one-to-five rating scale. These scores preserve different information about the same deliverable. The results were averaged across both judges to produce a consistent metric.
Rubric Bottlenecks and L2 Scores
This subset was divided into four strata: rubric bottlenecks (tasks where compliance with technical rules was weakest), reference-grounded assets (where visual fidelity depended heavily on input references), audiovisual and temporal mismatches (where timing or synchronization failed), and median-baseline guardrails (where the baseline already performed well). This design avoided selection bias, ensuring that differences in performance were due to the perception loop rather than pre-existing task difficulty. In tasks with rubric bottlenecks, agents using VibeVideoAgent showed a consistent improvement in L2 scores—meaning they more reliably met technical requirements like correct chart types or accurate audio timing—without increasing wall time or token usage. In reference-grounded tasks, the agent’s ability to verify that visual elements matched the provided assets improved significantly, especially when detecting misaligned labels or missing transitions. For temporal mismatches, the perception loop enabled early detection of out-of-sync narration or camera movements, allowing the agent to adjust before rendering a full video. However, in median-baseline tasks where the native model already performed well, gains were smaller and more nuanced—indicating that VibeVideoAgent’s benefit is most noticeable when design decisions are ambiguous or require cross-modal consistency.
The results show no dramatic jumps in overall quality but demonstrate a measurable reduction in late-stage errors. For example, agents with perception feedback were less likely to produce scenes where audio narration drifted from visual content or where labels appeared in the wrong location. These findings suggest that VibeVideoAgent does not replace code generation, but rather enhances it by enabling early, grounded inspection of design decisions. The scope is limited to tasks where multi-modal consistency—between text, visuals, and sound—is critical. It does not claim to fix all errors or achieve perfect compliance in every case, nor does it eliminate the need for human review. Instead, it provides a reliable, automated way for coding agents to verify their work at each step of production, reducing costly rewrites and improving alignment with user intent.
The Boundary of Perceptual Coverage in Draft Inspection
VibeVideoAgent’s perception loop operates within strict temporal and spatial constraints: it samples frames at fixed intervals (up to 30 fps), inspects only selected media segments, and relies on a multi-clock representation that tracks assets across different rendering phases. This creates a boundary beyond which defects—such as sub-frame glitches or transient visual artifacts—remain unobserved. A defect occurring between two sampled frames, or during a brief moment of motion blur that falls outside the inspection window, will not be detected. This limitation is not merely theoretical: the document explicitly notes that perception samples are bounded and that sub-frame issues can go unnoticed even with refined frame rates. The boundary is thus defined by both technical constraints (sampling rate, interval selection) and the nature of rendering pipelines—where some visual or audio phenomena occur in fleeting, non-repeating windows. A competing explanation might claim that such defects are rare or self-correcting during production, but this contradicts the documented observation that even clean exits from render processes contain undetected staging bugs. The evidence distinguishes between these views by showing that VibeVideoAgent identifies three distinct staging bugs in a recorded run (Appendix H), all of which occur at points where media were explicitly inspected. If defects were truly rare or self-resolving, such systematic detection would not be possible across multiple tasks. Moreover, the system reports missing modalities and unobserved spans as “uncertain,” indicating that its coverage is inherently incomplete—not because of misjudgment, but due to design limits in sampling strategy.
Distinguishing Between Correlation and Causation in Edit Outcomes
A key boundary in the evidence concerns whether observed improvements in perceptual quality (e.g., better audiovisual sync or motion fidelity) are caused by the perception loop’s early feedback or simply correlate with more stable rendering pipelines. The document notes that when an edit is made, a comparison between pre- and post-edit clips shows changes in rendered symptoms—yet this does not prove causation. For instance, an edit to a shared animation helper may alter a beat that was never inspected by the agent’s perception primitives. This creates a scenario where the perceived improvement appears to stem from feedback, but the actual cause is a downstream effect of a shared component change. The evidence already addresses this by showing that without probemedia or comparemedia, edits introduce motion fixes and audio shifts that go unverified—proving that verification is necessary to confirm repair validity. The absence of neighbor checks in such cases means that a change in one part of the system can ripple through unseen areas. This distinction between correlation and causation is tested by isolating components: when compare_media is removed, L3 scores drop significantly on VQ, TM, and AQ—indicating that verification of changes across media clocks is essential for quality. Thus, the evidence supports a causal role for perception in guiding edits, rather than simply reflecting better pipeline behavior.
The Open Question of Perception Model Limitations
A specific question left open by the research concerns how well the external perception model—Gemini 3.8 Flash—can interpret complex visual or audio phenomena that require fine-grained analysis, such as overlapping text or precise depth ordering in 3D scenes. While the system requests crops or evidence frames when needed to mitigate misreading, it does not guarantee that these are always generated or sufficient. The document notes that without explicit cropping or intermediate render access, dense text or layered depth can be misread, and this error is not corrected during production. This raises a critical open question: how much of the agent’s perceptual accuracy depends on its ability to request additional evidence, and what happens when such requests are not made? This uncertainty is compounded by the fact that intermediate renders add compute cost and latency, and commercial APIs may change with provider updates. A test of this open question would require observing agent behavior in tasks where overlapping text or depth cues are present, and measuring how often such scenes trigger a crop request versus relying on full-frame analysis. Until such testing is done, the system’s performance in complex visual scenarios remains partially opaque—its reliance on external perception models introduces a vulnerability that cannot be fully quantified by current metrics. This gap suggests that future work must include guidance for when and how to request evidence frames, ensuring that perception does not rely on assumptions about agent foresight or model robustness.


