PaperarXiv:2611.34813 · cs.CV · Nov 25, 2026
Solve Vision with Code: Coding Agents Are Stronger Visual Reasoners Than Video Models
Dezhi Luo, Fengyuan Yu, Haotian Zhang, Zehong Zhao, Ran Ji, Siyuan An, Huayi Qin, Qingying Gao, Zhongang Cai, Lei Yang, Ziqi Huang, Ruisi Wang, + 2 more
The only solid harness content is a one-shot instrumentation of unmodified CLIs: delivery failure, cost, and whether the program reads the image. The headline 0.253 gap is not a fair visual-reasoning result: synthetic code-invertible tasks, a 30-minute tool budget, unre-run video leaderboard rows, reconstructed category scores, and no ID/OOD split against an RL model trained on the benchmark’s own families.
Novelty
2 out of 5Rigor
2 out of 5Reproducibility
1 out of 5Relevance to harnesses
3 out of 5
TL;DR
Unmodified coding CLIs beat published video-model scores on VBVR-Pro-Bench by rendering the answer in Python, but the gap is on code-generated puzzles and a 30-minute tool loop the video models were not given.
Adversarial review by Harness Hub · Nov 28, 2026 · read full text (truncated) · Suggest a correction
Original abstract (authors’ text, select to expand)
Video generation models are increasingly evaluated as visual reasoners: given a first frame and a natural-language prompt, can the model produce the video in which the specified task is carried out? The paradigm is considered advantageous because the reasoning is native to the visual medium, unfolding directly in the frames rather than through language or code. Whether this native route is in fact the more reliable path to visual reasoning has not been tested against a symbolic alternative under the same conditions. We therefore pose the same tasks, with identical inputs, output specification and evaluator, to both media: rather than denoising pixels, a coding agent writes a program that renders the answer video, which an unmodified rule-based evaluator scores. On VBVR-Pro-Bench (Xu et al., 2026), a 500-instance suite spanning five cognitive categories with symbolic ground truth, the agent receives the same first frame and prompt as the video model, with no access to ground truth, metadata or generation models, and one attempt per instance. Three closed-model agents (Codex with gpt-6-astra, Claude Code with Fable 5.1 and Gemini CLI with Gemini 3.1 Pro) score 0.923, 0.894 and 0.893, each more than 0.22 above the strongest video model. Among 23 runnable open-weight models, the best, GLM-5, reaches 0.572, above all video models except the RL-trained one. Together, we show that for tasks whose solutions can be computed from a first frame and a prompt, program synthesis is currently a substantially more reliable route to visual reasoning than video generation. We further distinguish depictive programs, which navigate the image to recover a transferable scheme, from propositional programs, which operate on hard-coded values, revealing how visual reasoning unfolds in agent-written programs and what it implies for its nature of reasoning in general.
Filed undercoding-agentsagents
Summary
The paper holds VBVR-Pro-Bench’s first frame, prompt, video container, and official rule-based evaluator fixed, and replaces the solver: Codex, Claude Code, and Gemini CLI, plus 23 open-weight models under OpenCode, write a program that renders the answer video. Closed agents score 0.923, 0.894, and 0.893 versus 0.670 for the RL-trained video model on the published leaderboard, which was not rerun; GLM-5 scores 0.572. Video category scores in Table 3 are reconstructed from another paper’s rounded per-split numbers. The paper also separates delivery failure from content failure and labels closed-agent programs depictive or propositional by re-running them on another instance of the same family.
Key findings
- Table 2: Codex (gpt-6-astra) 0.923, Claude Code (Fable 5.1) 0.894, Gemini CLI (Gemini 3.1 Pro) 0.893, each with a video on 500 of 500 instances. Section 3.1: VBVR-Pro-Wan2.2-I2V-A14B (RL) scores 0.670, a gap of 0.253 below Codex; VBVR-Pro-Wan2.1-I2V-14B scores 0.562.
- Table 2: GLM-5 scores 0.572 with 495 videos. Gemma 3 27B, Gemma 3 12B, Magistral Small, and Llama 3.3 70B score 0.000 with 0 videos.
- Section 3.3: among 23 open-weight models, score tracks videos delivered (Spearman’s ρ=0.93, n=23). Closed-agent scores span a range of 0.030.
- Table 4: mean tool calls per instance are 3.2 (Codex), 9.2 (Claude Code), 25.3 (Gemini CLI), and 48.0 (GLM-5); median wall time is 22 s, 105 s, 218 s, and 378 s. Input tokens (thousands) are 57, 233, 659, and 1569.
- Section 3.4: 1,385 closed-agent solve programs; Claude Code 61% depictive, Codex 35%; Gemini CLI opens the frame on 10 of 500 instances (2.0%). Depictive share is 67% on Perception and 27% on Knowledge. Neither mode predicts performance.
- Table 3: closed agents lead every listed category. The reconstructed RL-model row is Perception 0.488 and Transformation 0.840, versus Codex 0.942 and 0.908. Section 3.2 says pixel operations inflate the Perception margin.
The paper at a glance
- Same 1024×1024 first frame and prompt as the video model, plus a harness task statement and container spec
- Unmodified CLI (Codex, Claude Code, Gemini CLI, or OpenCode) in a CPU sandbox: 30-minute budget, one attempt, no image or video generator
- Agent writes Python that renders the answer video with standard imaging libraries
- Unmodified VBVR-Pro rule-based evaluator scores frames against symbolic ground truth; missing video scores 0
Why it matters
Relevant to harness builders only as a measurement of unmodified CLIs—Codex, Claude Code, Gemini CLI, and OpenCode—on one deterministic scorer. The transferable bits are operational: open-weight scores track whether a video file is delivered (Spearman’s ρ=0.93, n=23), and past that minimum the three closed agents sit in a 0.030 score band while mean calls run from 3.2 to 25.3 and input tokens (thousands) from 57 to 659. Some programs measure the frame at runtime; others hard-code an answer found in the session, so a high score does not mean the program is a general visual reasoner. It is not evidence that coding agents are stronger visual reasoners than video models. The tasks are flat, code-rendered puzzles, video rows were not rerun, and the agents get a sandbox, a harness task statement, and up to 30 minutes that the video models do not.
Issues (5)
- High severityWhere in paper: Abstract; Section 2.1; Section 2.3; Section 3.1; Section 4; Table 4
The abstract says the two media are tested with identical inputs, output specification, and evaluator, and that 0.923, 0.894, and 0.893 are each more than 0.22 above the strongest video model. Section 3.1’s comparator is 0.670, a printed gap of 0.253 below Codex. Section 2.1 gives agents a harness-written task statement, container spec (frame size, frame rate, frame count, duration), CPU sandbox, imaging libraries, network, package installation, a 30-minute budget, and a tool loop (Table 4: 3.2, 9.2, and 25.3 mean calls). Section 2.3 copies video scores from the published leaderboard and does not rerun them. Section 4 admits the comparison is asymmetric. The title still reads the gap as stronger visual reasoning.
- High severityWhere in paper: Abstract; Title; Section 3.2; Section 4; Table 3
Section 4 states the tasks are generated and rendered by code, with flat colours, exact geometry, and deterministic evaluators, so agents can recover the symbolic scene and edit pixels, and that this may not transfer to textured, occluded, or variably lit footage. Section 3.2 warns that Perception tasks (locating and measuring objects; connected components, colour filtering) inflate the coding advantage. Table 3: RL model Perception 0.488 versus Transformation 0.840; Codex Perception 0.942 versus Transformation 0.908. The abstract’s claim that program synthesis is a substantially more reliable route to visual reasoning is scoped to code-invertible puzzles, which the title drops.
- High severityWhere in paper: Table 3; Section 3.2; Appendix A; Appendix C
Table 3’s video category row is not a re-evaluation: the caption says those scores are VBVR-Pro’s published per-split category scores combined with the kit weights, with inputs rounded to three decimals, while Overall is the published leaderboard score. Appendix A says VBVR-Pro-Bench holds 50 families out of all training, and Appendix C lists 50 in-domain and 50 out-of-domain families with per-task agent scores, but the paper never reports split means and never places the RL model—trained on in-domain families with the evaluator as reward—on that split. The claim that agents lead every category, and the 0.253 overall gap, are not identified as in-domain reward match versus held-out generalization.
- Medium severityWhere in paper: Section 3.4; Appendix D.1; Figure 4
Many high scores are not visual computation inside the program. Section 3.4: of 1,385 solve programs, Claude Code is 61% depictive and Codex 35%; Gemini CLI opens the frame on 10 of 500 instances (2.0%), and 17% of its programs are propositional. Propositional programs hard-code coordinates or colours and would render the same answer on another instance. The paper says neither mode predicts performance, so the leaderboard number does not show that the agent reasoned in the visual medium.
- Medium severityWhere in paper: Title; Table 2; Section 3.3; Appendix C
The title generalizes from three closed CLIs. Table 2: GLM-5 at 0.572 is the only open-weight row above every listed non-RL video model; Kimi K2.5 at 0.557 is already below VBVR-Pro-Wan2.1-I2V-14B at 0.562. Section 3.3: Spearman’s ρ=0.93 (n=23) between score and videos delivered; four models score 0.000 with 0 videos. Appendix C: means hide collapses such as Claude Code 0.003 on G-43, 0.011 on O-13, and 0.008 on O-14. No seeds or confidence intervals are reported.
Questions for the authors
- What are mean agent scores on the 50 in-domain versus 50 out-of-domain families in Appendix C, and what are the published video-model scores on that same split?
- If Table 3’s video category row is recomputed from the actual videos with the unmodified kit, do Perception 0.488 and Transformation 0.840 still hold?
- If agents are limited to one code execution and a short wall-clock cap, how much of the Section 3.1 gap of 0.253 to the RL model at 0.670 remains?
- What fraction of the 1,385 programs are propositional, partial (the grey band in Figure 3), or fail when re-run on another instance of the same family?
- What sampling settings, resolution, and frame count produced the published video scores, and do they match the container spec given only to the agents?
- Did gpt-6-astra, Fable 5.1, or Gemini 3.1 Pro see VBVR-Pro generators, prompts, or task families in training?
Related in the directory
Open-source projects
Open source · OpenAI
Open source · Anthropic
Open source · Google
Open source · opencode (anomalyco)
Open source · Princeton NLP / SWE-agent
Open source · SWE-bench
More tools on the same problem
Products and open-source projects in the directory closest in meaning to this paper.
Open source · liustack
Open source · huisezhiyin
Open source · coldteadotai
Open source · teaql
Open source · iamumeransari
Open source · rasbt
Related papers
arXiv:2611.34237 · cs.CV · Nov 25, 2026
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.
Xuanyu Zheng, Luoyuan Zhang +7
arXiv:2610.35864 · cs.CV · Oct 26, 2026
Diffusion video models produce striking clips, but they cannot reliably render an exact formula, a correct chart, a ruleconsistent game or narration synchronized to on-screen events. A different route is emerging: multimodal agents that write code to render every frame and synthesize every sound. We introduce VibeVideoBench, a benchmark for evaluating agents on code-driven video generation. Its 239 self-contained tasks in English and Chinese span 12 categories, from data stories and music-driven pieces to classroom lessons and paper explainers; each asks an agent, running in its native harness inside a sandbox, to deliver a finished MP4 with sound within one hour. Evaluation is hierarchical and evidence-based: program checks of the delivery spec, about 13k task-specific rubric checks traced to the requirements they enforce, and five quality dimensions anchored per task, judged by three VLM judge panels and validated with blind human preferences. Across nine frontier agent systems and 2,151 scored rollouts, the benchmark is far from solved: GPT-6 Astra and Claude Opus 5.5 lead clearly, yet even the best system fails a core requirement on about a quarter of tasks. Whether a video arrives at all matters as much as its quality, and three quarters of the lost videos are final renders started too late, run too slowly or never started. The judges agree with each other and with human preferences on system rankings, but only moderately on individual videos.
Muxi Diao, Wenbin Xu +11
arXiv:2611.31883 · cs.CV · Nov 24, 2026
Video understanding depends not only on how models reason about visual evidence, but also on which evidence they observe. Fixed observation policies determine this evidence in advance; agentic harnesses allow models to seek further observations as their understanding develops. This shift creates an opportunity to realize capabilities that fixed inputs leave untapped, yet the ability to request observations does not ensure their effective use. We investigate when and why video harnesses improve understanding, examining how task demands and models' capacity for interaction jointly shape their benefits. Using Video-Relook as an experimental framework, we let models adapt their temporal and spatial observations from a common default configuration, and analyze performance and interaction trajectories across models and tasks. Adaptive observation yields substantial gains on fine-grained action understanding, with benefits also extending to Video-MME-v2. Even under the same observation interface, gains differ substantially across models; interaction traces reveal corresponding differences in evidence seeking and the reliability of answer revision. The benefits also vary across tasks for the same model, ranging from substantial improvements to limited gains and regressions. Together, these findings support an account in which harness effectiveness depends on the alignment between opportunities for informative observation and the model's ability to turn interaction into reliable revisions. They motivate video harnesses that coordinate perception and reasoning, matching observational autonomy to task demands and model capabilities.
Luoyuan Zhang, Xuanyu Zheng +4
arXiv:2610.36371 · cs.CV · Oct 26, 2026
We tackle the challenge of building real-time interactive video worlds with user-defined behaviors. Such worlds must track object states, apply interaction rules, and render the resulting consequences as users act. Yet existing end-to-end video world models typically learn interaction dynamics within the generator, making it difficult to specify object-level rules and reason about their consequences. In this work, we introduce BoxWorld, which separates interaction reasoning from generative rendering. Given user-specified rules, a coding agent creates a Box World Engine that determines interaction outcomes and exposes the resulting object states through a lightweight interface of layout boxes, persistent object attributes, and dynamic status variables, leaving appearance and physical effects to generative rendering. A Box-State Generative Renderer then renders this evolving state stream into video autoregressively, enabling online control over object motion, state switches, and conditional events. Rendering this state stream is non-trivial: the renderer must respond to object-level state updates in real time while remaining coherent with the generated history. To this end, we introduce a three-stage training strategy that learns object grounding from open-domain videos and state transitions from gameplay videos, both annotated automatically, and finally performs rollout distillation on self-generated histories. We further propose PairedStateBench, a paired benchmark for fine-grained interaction control. BoxWorld substantially outperforms end-to-end world models and remains competitive across multiple public benchmarks. Project page: https://boxworld-web.github.io.
Zike Wu, Ahmed Hatem +5
arXiv:2610.34943 · cs.SE · Oct 26, 2026
Large Reasoning Models (LRMs) generate long reasoning traces that expose intermediate inference behavior, offering opportunities to study and control reasoning in AI coding. However, the underlying patterns in these traces and their potential for analyzing and guiding coding models remain poorly understood, limiting systematic characterization and inference-time control of LRM reasoning. We conduct an empirical study of reasoning patterns across four representative coding tasks. We transform reasoning traces into structured action sequences and mine recurring fragments using within-task support, cross-task contrasts, and valid--invalid support contrasts. We characterize four general reasoning patterns by coding agents: design-to-implementation for code generation, state tracing for execution reasoning, evidence--fix--recheck for debugging, and semantic mapping for translation. We further identify positive and negative patterns associated with valid and invalid reasoning traces, respectively. Positive patterns reflect verification-driven convergence, whereas negative patterns reflect repeated design revision, reflection, and knowledge recall without closure. To demonstrate their practical utility, we evaluate three pattern-based applications: task identification, pattern-guided prompting, and pattern-aware early stopping. Features capturing general reasoning patterns enable accurate task identification from reasoning traces without accessing task descriptions or final answers. Prompting guided by positive and negative patterns improves the overall accuracy of downstream tasks, while negative pattern-aware early stopping substantially reduces API-reported token usage with only a modest decrease in pass@1. All three applications also generalize to previously unseen models, showing that reasoning patterns can support both the analysis and control of LRM behavior in AI coding.
Zhe Yin, Yuling Shi +2
arXiv:2610.31511 · cs.AI · Oct 22, 2026
Coordinating two players in a cooking task requires a vision-language agent to track changing scene states, sequence recipe steps, and allocate shared resources under a time budget. We introduce an Overcooked-inspired benchmark for evaluating these capabilities in Unreal Engine environments constructed using coding agents. A single vision-language model controls both players from top-down visual observations, selecting high-level actions while the engine executes navigation. The benchmark contains 20 maps in five categories. These categories support evaluation of centralized coordination under equipment contention, changing terrain, and handoff dependencies. A prop legend and pot ingredient-count indicators provide explicit visual cues, while grid-based destinations support spatial grounding. The evaluation compares four VLMs on all 20 maps, measuring task score, order completion, delivery precision, action acceptance rate, and model API expenditure. A memory ablation on the same 20 maps examines the effect of a shared, self-authored notebook while retaining six-response action history in both conditions. The strongest evaluated model, \texttt{gpt-6-astra}, achieves 26.2\% mean order completion. Notebook memory has mixed score effects across models, with positive mean differences for Claude and Qwen and negative differences for GPT and Gemini.
Ziyi Jiao, Heng Zhang +4