Coding agents such as Codex beat video models on visual reasoning tests
Given the same picture and instruction, coding agents that write a program to draw the answer scored well above the best video generation model on VBVR-Pro-Bench. The tasks are simple, computer-drawn scenes, and the result is a preprint.
scienceunderway.com/articles/coding-agents-such-as-codex-beat-video-models-on-visual-reasoning-tests

AI illustrationWhat the study shows
The test is VBVR-Pro-Bench, a public benchmark of 500 visual reasoning tasks built for video generation models. Each task gives a first image and a text instruction, such as drawing a path through a maze. The system must produce a video in which the task is carried out. A rule-based scorer then checks the video against the known answer and gives a score from 0 to 1.
The authors gave the same image, instruction and video format to coding agents. A coding agent is a command-line tool that drives a language model: it reads files, runs commands and edits code until it decides it is done. Here each agent had to write a Python program that draws the answer video. It could not call any image or video generator, saw no answers, had 30 minutes and got one attempt per task. The benchmark's own, unchanged scorer graded the result.
The authors report that three closed-model agents came first: Codex with gpt-6-astra scored 0.923, Claude Code with Claude Fable 5.1 scored 0.894 and Gemini CLI with Gemini 3.1 Pro scored 0.893. The best video model scored 0.670. That model had been trained with reinforcement learning, where a model learns from rewards, on the benchmark's own task types, using the scorer as its reward. Well-known commercial video models scored lower: Veo 3.1 reached 0.309.
The agents led the best video model in all five task categories. The gap was largest on perception tasks, such as finding and measuring objects, and smallest on tasks that transform objects over time. The authors caution that perception tasks are easy for code, which can measure pixels exactly.
They also tested 23 open-weight models, whose weights are public, through the open-source OpenCode agent. The best, GLM-5, scored 0.572. Most weaker open models scored low mainly because they delivered few or no videos: some never ran a tool, others stopped before running their code.
Cost varied widely among the leaders. Gemini CLI used about eight times as many tool calls as Codex and took about ten times as long per task, for almost the same score.
Finally, the authors re-ran successful programs on a different task of the same type. Some programs measured the new image and worked out the answer again. Others simply drew an answer the agent had already settled during its session, so they would draw the same, now wrong, answer. The authors report that neither style predicted the score.
Our reading
In our reading, the headline result is solid on its own terms. Both routes were graded by the same deterministic scorer on the same 500 tasks, and the gap is large: about a quarter of the scale between the best agent and the best video model. The video models were not rerun, though. Their scores come from the published leaderboard, and they produce one sample each, while the agents could probe, test and revise for up to 30 minutes.
The bigger caveat is the kind of task. These scenes are drawn by code, with flat colours and exact geometry. An agent can in effect recover the recipe that drew the picture, then edit a few pixels. Real footage, with texture, shadows and clutter, would not allow that. So the finding is narrow but useful: when an answer can be computed exactly from an image and an instruction, writing code beats generating pixels today.
On our four-level readiness scale, this sits at level II, Benchmarked. The results are on a public benchmark with its official scorer. The agents themselves are off-the-shelf products, but the authors' pipeline, prompts and generated programs are not linked in the paper, so it does not yet meet level III.
The rest of this story is for members. Membership is free: read it at scienceunderway.com/articles/coding-agents-such-as-codex-beat-video-models-on-visual-reasoning-tests
Read the rest of this story
Membership is free. You get every article in full, and can save stories and follow topics.
We send a sign-in link, no password needed. Already a member? Sign inReadiness assessment
| Level | Status | Evidence |
|---|---|---|
| I Lab only | Met | A full experimental protocol was run on all 500 benchmark tasks with 26 agent configurations. |
| II Benchmarked | Met | Results are reported on the public VBVR-Pro-Bench, using its unmodified official scorer. They are compared with published leaderboard results for 11 video models. |
| III Open source | Not yet | The paper cites the off-the-shelf tools it used: Codex CLI, Claude Code, Gemini CLI and OpenCode. It gives no link to the authors' own pipeline, prompts, logs or generated programs. A project site name appears in the page header (solve-vision-with-code.com), but the paper does not say whether any code is released. |
| IV In production | Not yet | The paper documents no production use by any named organisation. |
What would move it up
Release the evaluation pipeline, task statements, agent logs and generated programs so others can reproduce the results. Production evidence would require documented use of coding agents for visual reasoning tasks by a named organisation, ideally on real-world images.
The study
Dezhi Luo, Fengyuan Yu, Haotian Zhang et al.. Solve Vision with Code: Coding Agents Are Stronger Visual Reasoners Than Video Models. arXiv, 25 November 2026. Read the paper
Notes
- Luo, D. et al. Solve Vision with Code: Coding Agents Are Stronger Visual Reasoners Than Video Models. arXiv preprint, November 2026, not peer reviewed. Source
- Xu, J. et al. VBVR-Pro: A scalable and verifiable suite for native visual reasoning, 2026. Source of the benchmark and of the video-model scores. Source
- Exact overall scores: Codex 0.923, Claude Code 0.894, Gemini CLI 0.893; best video model VBVR-Pro-Wan2.2-I2V-A14B (RL) 0.670; GLM-5 0.572; Kimi K2.5 0.557; Seedance 2.0 0.499; Kling VIDEO 3.0 0.392; Veo 3.1 0.309.
- Median seconds per task: Codex 22, Claude Code 105, Gemini CLI 218. Mean tool calls: 3.2, 9.2 and 25.3. Mean input tokens (thousands): 57, 233 and 659.
- Open-weight models ran through OpenCode, an open-source coding agent. Source
- The paper's page header names a project site, solve-vision-with-code.com, but the paper does not say whether code is released.
Edited and signed by
Stefan PerdalFounder. Twenty-five years of building digital products.194 stories editedStefan read the study, set the readiness level and approved this story. An AI system found the paper and wrote the first draft.
How this was made
An AI model read the study and wrote this article in the structure Science Underway uses. An editor reviewed it and approved it for publication. Check the original study before you rely on the details.
How we workNo corrections


