Video-Coder: Reinforcing Agentic Coding for Video Generation
Chaoyang Wang, Sicheng Gao, Junan Hu, Kunyang Li, Dongyang Chen, Yiyang Zhou, Huaxiu Yao, Yong Jae Lee and 2 others
University of Central Florida · University of Würzburg · Microsoft Research · Tsinghua University · UNC-Chapel Hill · UW–Madison
Published November 6, 2026 · on the feed November 9, 2026 · ▲ 21 · arXiv 2611.09894
The abstract
Recent years have witnessed remarkable progress in video generation in terms of visual quality and temporal consistency. However, generating videos with precise spatial structure, coherent motion dynamics, and controllable scene composition remains challenging. In this paper, we introduce Video-Coder, the first attempt to train a code-driven video generation agent, which autonomously writes and executes code to construct a dynamic 3D scene (Draft Video) that provides structure and motion signals to downstream video generators. To support this paradigm, we design a dedicated data pipeline and curate two high-quality datasets, Video-Coder-SFT-6k and Video-Coder-RL-2k, which contain diverse prompts and ground-truth reference videos. We further develop the Video- Coder Harness, a unified interactive environment integrating code execution, 3D scene rendering, and execution feedback for agent training and inference. We then train Video-Coder with SFT fol- lowed by harness-native agentic reinforcement learning with dual reward feedback, which combines execution-based and video-based rewards. Additionally, we design an annealing training strategy that gradually reduces the execution reward over time, allowing the model to rely more on the video reward in the later training stages. Experiments show that Video-Coder achieves significant gains, improving Minimax-H3 by approximately 7 points on PhyGenBench and 24 points on VBench-2.0. We hope this work can serve as an open foundation for coding agents in video generation, and we fully open-source our data, models, and code
The Brief
2:49A short podcast summary of the paper. Written and voiced by AI.
Transcript
Video-Coder. Reinforcing Agentic Coding for Video Generation. By Chaoyang Wang and nine others, from the University of Central Florida, the University of Würzburg, and four other institutions. Published on the sixth of November.
Video generation has improved remarkably in visual quality and in temporal consistency. Three things remain hard: getting the spatial structure precise, keeping the motion dynamics coherent, and controlling how a scene is composed. Those are properties of arrangement and movement, more than of how each frame looks. Progress on the look of a video, in other words, has not by itself delivered precise control over where things are, how they move, and what the scene is made of.
Video-Coder approaches them through code. The authors describe it as the first attempt to train a code-driven video generation agent. The agent writes code and executes it, autonomously, to build a dynamic 3D scene. That scene, rendered out, is called the Draft Video, and it hands structure and motion signals to a downstream video generator, which does the rest. The agent's output, then, is not the finished video. It is an intermediate: a constructed scene whose job is to carry structure and motion, handed to a separate model that produces the video people actually watch.
Training an agent like this needed its own supporting pieces. A dedicated data pipeline produced two curated datasets, Video-Coder-SFT-6k and Video-Coder-RL-2k, which hold diverse prompts together with ground-truth reference videos. Alongside them sits the Video-Coder Harness, a single interactive environment that combines code execution, 3D scene rendering and execution feedback, and is used for both training and inference.
Training itself has two stages. Supervised fine-tuning comes first. Then comes agentic reinforcement learning that runs natively inside the harness, with a dual reward: one part based on execution, one part based on the video. An annealing strategy gradually reduces the execution reward over time, so that in the later stages of training the model relies more on the video reward.
The experiments report significant gains for Minimax-H3 when it is paired with Video-Coder. Its score improves by approximately seven points on PhyGenBench, and by approximately twenty-four points on VBench-2.0. Note which model those gains belong to: Minimax-H3 is the downstream generator, and what improves is its output once Video-Coder supplies the draft. The authors say they fully open-source the data and the models, and offer the work as an open foundation for coding agents in video generation.
What stands out is a division of labour. Visual quality is where video generation has already come far; structure, motion and composition are where it still struggles. Video-Coder hands that second set of jobs to an agent writing code for a 3D scene, and leaves the generator to work from the draft that scene provides. The reward schedule mirrors that order: first learn to make code that runs, then learn to make code whose videos are good.
More with an account
Listen to every day’s papers
Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.
Join free