AI guides

VibeVideoAgent Checks the Render: Finding Visual and Audio Errors After Code Runs

By 郑轩宇1 viewsSource: 机器之心
Kling open-sources VibeVideoAgent to add perception and repair loops to code-driven video generation

Independent perception, local probes and staged previews return actionable feedback to coding agents. The 239-task evaluation, 36-task ablations and 20-second example retain the distinction between audiovisual quality and specification compliance.

A video script can finish without errors while its output still has captions covering the subject, incorrect props or narration out of sync with a chart. VibeVideoAgent from Kling-Keye turns problems invisible to runtime logs into feedback a coding agent can locate and act on.

First author Zheng Xuanyu is Tech Leader of Kling AI's Kling-Keye Video Understanding Group, a multimodal large-model algorithm specialist, and a core contributor to the Keye-VL series. His research focuses on general-purpose video understanding, video agents, and Code2Video. The corresponding author is Kling-Keye Tech Leader Wen Bin.

Code-driven video creation offers precise control over layout, charts, cameras and narration while preserving an editable project. Producing a valid file is only one requirement; the picture and sound must also match the brief. An exit code cannot verify that.

VibeVideoAgent does not retrain the coding model or bind itself to one renderer. It checks stills, previews and rough cuts during production, when changes are easier. The paper reports higher holistic audiovisual scores for three coding models, but technical compliance and rubric pass rates do not all improve.

The coding agent retains the project context while independent perception calls inspect media and return compact information about time, location and findings. Repeated review therefore need not place large quantities of raw frames and audio inside the coding conversation.

Article illustration
  • Paper title: VibeVideoAgent: Closing the Perceptual Loop for Code-Driven Video Generation
  • Paper: https://arxiv.org/abs/2611.34237
  • Open-source code: https://github.com/Kling-Keye/VibeVideoAgent
  • Team homepage: https://keye-video.github.io/index.html

About the team: This work was completed by Kling AI's Kling-Keye Video Team. The team focuses on video multimodal foundation models, native video architectures, and video agents, and has released open-source work including VideoNexus, VideoACE, and VibeVideoAgent. Homepage: https://keye-video.github.io/index.html

Article illustration

Why runtime logs are insufficient

In ordinary software development, code defects often surface as compilation failures or test errors. Code-driven video generation, however, has three blind spots that such feedback does not reach:

  1. Running successfully does not mean the video is right: a rendering script can exit without errors and output a valid MP4, while the visuals and audio contain misalignment, occlusion, or continuity mistakes.
  2. Directly "watching" overwhelms the context: when repeatedly rendering previews and rough cuts, adding raw frames and audio to conversation history quickly undermines long-horizon code maintenance.
  3. Reviewing only at the end is too late: reviewing after the entire film has rendered often means early layout or character-design mistakes require starting over. Code edits can shift the whole timeline, while checking only individual clips can miss unresolved defects or regressions in neighboring shots.
Article illustration

Figure 1 | Left: traditional coding agents either deliver blindly or load raw media into their context and review only at the end. Right: VibeVideoAgent keeps raw media outside the coding context, continually returning concise feedback at each production stage.

Turning media inspection into actionable findings

Through MCP, the coding agent calls an independent multimodal perception model and local signal tools, receiving Findings with timestamps, spatial boxes and conclusions. The paper fixes Gemini 3.8 Flash as the perception model, keeping raw media outside the long-lived coding context.

The paper reports 6.5-fold single-turn context compression on diagnostic tasks and 12-fold compression on a long paper-explainer task. These are different experiments, not a uniform saving promised for every video task.

The framework coordinates three layers of mechanisms:

The first layer provides unified addressing across reference assets, design stills, shot previews and rough cuts. It maps source, clip and final timelines, supports cropping at native resolution, and caches using file hashes.

The second layer comprises the paper version’s seven checking operations, grouped by purpose:

  • Explore media from coarse to fine through global indexing, event localization, 8 fps inspection, localized questions and audio-only transcription.
  • Check each quoted requirement using all necessary modalities; missing visual or audio evidence produces an uncertain result.
  • Compare references and drafts, or old and new versions, on independent timelines to establish whether a change took effect.
  • Use local FFmpeg probes for decoding, loudness, silence, frozen frames and loop seams, without a model call for those signal checks.

The third layer sets the production order: identify the costliest design risk, test it in a still or short preview, then assemble, repair and deliver. Seven refers to the paper’s version and should not be confused with the interface count in an updated repository.

Because the tools operate directly on standard audio, video, and image files, they require no adapters for individual rendering engines. One interface can serve pipelines such as HTML/Canvas, Three.js, Manim, and FFmpeg/TTS, and integrates directly with Claude Code and Codex.

Article illustration

Figure 2 | VibeVideoAgent architecture: a three-clock media specification, seven inspection tools requiring no engine adapters, and a staged production workflow with a traceable ledger.

Audiovisual quality improves, while other metrics need separate inspection

On VibeVideoBench, which contains 239 tasks across 12 Chinese- and English-language categories, each model is evaluated in paired comparisons with its official native version in the same sandbox. Scores are averaged across two judges: Gemini 3.8 Flash and the independent, stricter Gemini 4 Argon.

Article illustration

Table 1 | Main results on VibeVideoBench's 239 tasks, averaged across two judges. L1/L2 are percentages; L3 is scored from 1 to 5.

The main evaluation’s L3 is holistic audiovisual quality on a 1–5 scale. All three models improve:

  • Claude Opus 5.5 rises from 4.03 to 4.43, with a 99.35% L2 rubric pass rate and a 0.56-point synchronization gain.
  • GPT-6 Astra rises from 4.03 to 4.27, with 99.15% L2, 99.51% L1 technical compliance and a 0.32-point synchronization gain.
  • Claude Sonnet 5.5 rises from 3.97 to 4.10, with a 0.40-point synchronization gain.

However, Sonnet’s L1 falls from 99.18% to 95.75%, and L2 from 96.36% to 94.61%; Opus’s L1 also declines. The 99.51% figure is highest only among the three framework-enabled configurations, not across the entire main table.

Trajectory analysis connects edit granularity with outcomes. Opus tends toward smaller repairs; GPT-6 Astra repeatedly verifies and patches locally, with a 65.6% repair-confirmation rate. Sonnet more often rewrites whole scripts, improving audiovisual output while losing some static details.

This is an observation from the experiment, not a universal rule that local edits always win. Repairs also need checks that previously satisfied requirements remain intact.

The team separately runs ablations on 36 treatment-blind, capability-stratified tasks rather than the 239-task main evaluation. The full system reaches 99.50% L2, a 3.44-percentage-point gain over the comparison, and an L3 mean of 4.40, up 0.56.

Removing requirement verification causes the largest rubric decline. Removing dual-clock comparison lowers post-failure modification from 94.0% to 78.3%; removing local probes reduces L1 by 2.62 points. Dropping early previews can leave initially detectable problems until the final-render stage.

Article illustration

Table 2 | Component ablations on the diagnostic subset of 36 tasks selected blindly in advance (Claude Opus 5.5).

A real example: closed-loop repairs to a 20-second life-story short

W0448 asks for a silent 20-second film covering six life stages, with a red button forming a seamless loop. The system first checks cross-age character consistency in a lineup still, then renders a 600-frame rough cut.

Although rendering completes without errors, inspection finds three defects: a young character does not wear the backpack on the shoulder, a laptop remains open in the family scene, and a child does not enter from outside the frame as required.

The agent patches the code, compares versions and checks decoding and seams. Incomplete evidence produces uncertain findings. This task’s rubric pass rate rises from 76.0% to 96.0%, with 5.5-fold context compression; those results belong to the specific case.

Article illustration

Figure 3 | Top: the actual closed-loop trajectory for W0448. Bottom: without adaptation, the same tools serve different rendering stacks, including interactive 3D, long-horizon explanations requiring audiovisual synchronization, and reference-guided reconstruction.

Open source and outlook

The official repository (opens in a new tab) releases code under MIT and supplies Claude Code and Codex integration instructions plus the PreToolUse configuration used in evaluation. The project continues to change, so the paper version and current interfaces should be distinguished.

Local-edit guidance for smaller models, adaptive previews, open perception models and 4D previsualization are proposed future directions, not capabilities established as delivered here.

Edited by AINRK using the original Jiqizhixin report by Xuanyu Zheng and the VibeVideoAgent paper (opens in a new tab). Methods, main experiments, ablations and case details are retained. Results are attributed to the team; AINRK did not generate videos or reproduce the experiments.

Related topics

After reading

Join the AINRK community

Read how to join the community and connect with people working in AI.

Community information (opens in a new tab)