Sandboxed Coding Agents are Competitive Omni-modal Task Solvers

Dongping Chen, Xuanao Huang, Zhihan Hu, Qingyuan Shi, Dianqi Li, Tianyi ZhouNeurIPS 2026

TL;DR

Do AI agents really need native "ears" and video-grade "eyes" to understand complex audio and video? Surprisingly, no: if you drop a text-and-image coding agent into a Linux terminal with tools like ffmpeg and whisper, it can match or beat state-of-the-art native omnimodal models. By writing scripts to dissect media files into compact evidence, coding agents turn massive sensory streams into clean, verifiable information-processing puzzles—using a fraction of the context window.

What Problem Does This Paper Address?

As AI moves from chatboxes into general-purpose assistants, handling video and audio is essential. The dominant industry approach is building monolithic "native omnimodal" models that ingest raw audio, video frames, and text directly into one giant context window.

However, packing raw media streams into context is computationally expensive and hard to verify. Meanwhile, widely used agent harnesses (like Claude Code and Codex) are still mostly text-only or text+image systems—yet they are brilliant at using command-line tools. The authors ask a refreshingly pragmatic question: Can standard coding agents, lacking native video or audio perception, solve complex multimodal tasks simply by orchestrating existing terminal tools and writing custom scripts inside a sandbox?

Figure 1: We discover that sandboxed coding agents are competitive omnimodal processors, achieving comparable performance and even surpassing native omnimodal models with shorter context.

Methods

Instead of feeding media files directly into a model, the authors stage files into an isolated Ubuntu workspace. The agent only sees the prompt and file paths, treating raw media as environment state to be queried via tools (ffmpeg, tesseract OCR, whisper ASR, Python scripts, and web search).

Beyond evaluating frontier models out-of-the-box, the authors introduce two techniques to push performance further:

  • Skill Injection: Guided by a custom taxonomy of agent failures, they inject reusable workflows into the agent's prompt—comparing human-written skills, feedback-driven self-iteration, and automated skill distillation mined directly from raw execution logs.
  • CODE-O (Open-Source Post-Training): To elicit this behavior in smaller open-source models (Qwen-3.5-9B and Qwen-3.6-27B), they pair a lightweight terminal harness with a two-stage recipe: a supervised fine-tuning (SFT) warm-start followed by Group Sequence Policy Optimization (GSPO) reinforcement learning. Crucially, they introduce a process-aware verifiable reward that goes beyond checking the final answer—explicitly penalizing agents that guess without using tools, skip relevant modalities, or write broken bash commands.

Datasets

  • Evaluation Benchmarks: Systems are tested on OmniGAIA (multi-hop factual reasoning), SocialOmni (audio-visual social perception), LVOmniBench (long-form audio-video), and VideoZeroBench (hard video reasoning).
  • OMNICODING (New Training Dataset): A curated set of 6,035 verifiable QA pairs and execution trajectories spanning video, audio, and images, normalized from four existing benchmarks (OmniGAIA-SFT-2K, OmniVideoBench, AVUTBenchmark, and Video-MME-v2).
  • TERMINALBENCH-O (New Processing Benchmark): Moving past simple question-answering, the authors introduce 50 real-world multimodal processing tasks—like auto-editing a 60–90s soccer highlight reel from a 90-minute broadcast or auditing mislabeled image databases—graded via strict format checks and intermediate artifact verification.

Key Insights and Ideas

  • Perception via Computation: Coding agents succeed not by "watching" a whole movie, but by decomposing media into transcripts, metadata, and targeted frame samples. This keeps context footprints dramatically smaller than direct-MLLM baselines.
  • Agentic Depth Substitutes for Native Perception: Dialing up reasoning effort (e.g., GPT-5.4 from low to xhigh) steadily boosts accuracy, showing that deeper planning and multi-strategy recovery can compensate for missing sensory modalities.
Figure 4: Trajectory DAG of a OMNIGAIA sample (Baylor campus-tour sign × Texas sports- facility audio; ground-truth 169 km). Nodes are annotated as agent steps, coloured by the step- supervisor reward (✓/ 0 / × for +1 / 0 / −1). Audio sub-goal includes three parallel strategies: speech_recognition, whisper, and YouTube-ID lookup; evidence from the Image and Audio sub-goals merges into Distance.
  • Benchmark Shortcuts Exposed: In a surprising ablation, a strictly text-only coding agent (image reading disabled) nearly matched its vision-enabled counterpart on OmniGAIA (64.4% vs. 61.4%). Many supposedly "omnimodal" benchmarks can actually be solved via transcripts, metadata, and OCR without deep visual understanding.
  • Trace Distillation Wins: Mining reusable skills from raw execution logs outperformed both human-written expert workflows and binary-feedback self-iteration.

Key Results

  • Beating Native Omni Models: Without perceiving raw audio or video, Codex (GPT-5.4 xhigh) hits 75.0% on OmniGAIA and 27.6% on VideoZeroBench, outperforming the strongest native omnimodal model tested, Gemini 3.1 Pro (66.1% and 17.6%). Claude Opus 4.6 also beats Gemini 3.1 Pro on OmniGAIA (68.6%).
  • Repairing Failures: Skill injection via execution-trace distillation lifts GPT-5.4 high on OmniGAIA from 61.4% to 76.7%.
  • Eliciting Open-Source Agents: Post-training with CODE-O yields massive gains over direct MLLM inference. Qwen-3.5-9B jumps from 7.2% to 15.8% on VideoZeroBench (nearly matching Gemini 3.1 Pro), while CODE-O-SFT-27B hits 60.0% on LVOmniBench, surpassing closed-source coding agents.
Figure 3: Accuracy versus final-call context length, averaged across four benchmarks. The gray line is an estimated direct-MLLM baseline.

Limitations and Future Work

Coding agents aren't a silver bullet yet: native omnimodal models still hold the crown on tasks requiring fine-grained temporal perception and tight audio–visual alignment (such as SocialOmni Level-1, where Gemini 3.1 Pro scores 90.0% vs. GPT-5.4 xhigh's 75.0%). Process-level trace analysis also shows coding agents still stumble over knowledge-retrieval gaps, brittle tool environments, and premature exploration.

Looking ahead, the authors argue the true frontier isn't understanding media, but processing and generating spec-compliant multimodal artifacts. On their new TERMINALBENCH-O suite, even the strongest frontier agent (GPT-5.5 Codex xHigh) passes only 24% of tasks, while open-source models score 0%—leaving wide-open territory for building agents capable of reliable, long-horizon multimedia engineering.

Summary updated

Abstract

As multimodal LLMs increasingly target video and audio, it is often assumed that such tasks require native omnimodal models. We show that this is not always the case: coding agents with only text+image access and a sandboxed tool-use interface can match, and in several settings outperform, SOTA native omnimodal models and predefined multimodal agent scaffolds across multiple audio-video benchmarks. Our trajectory analysis suggests that their strength comes from writing code and orchestrating tools to extract relevant evidence from transcripts, frames, and other modality signals, thereby converting omnimodal tasks into retrieval and information-processing problems rather than ingesting entire media streams. We further characterize their limitations through a failure taxonomy and process-level trace analysis, and show that simple skill injection, including human-written and self-distilled skills, substantially improves performance. To explore open-source elicitation, we introduce Code-O, a training recipe with the OmniCoding trajectory dataset and verifiable reward, and provide baselines on Qwen-3.5-9B and Qwen-3.6-27B. Finally, we argue that the next frontier is many-modality processing, and introduce TerminalBench-O, a process-level benchmark for real-world omnimodal processing tasks. Code will be available at https://github.com/Dongping-Chen/OmniCoding.
BibTeX
@inproceedings{chen2026sandboxed,
  author = {Dongping Chen and Xuanao Huang and Zhihan Hu and Qingyuan Shi and Dianqi Li and Tianyi Zhou},
  title = {{Sandboxed Coding Agents are Competitive Omni-modal Task Solvers}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=zYMvOwt5bN},
}
Figure