Skip to content

About

Official Codebase for .

Resources

Stars

18 stars

Watchers

0 watching

Forks

Repository files navigation

OmniCoding

arXiv Hugging Face model Python 3.10 or newer CC BY-NC 4.0 license Tests

Monthly commit activity Issues closed

Official codebase for Sandboxed Coding Agents are Competitive Omni-modal Task Solvers (arXiv:2606.00579).

OmniCoding studies how text-and-image coding agents can solve video, audio, image, document, and cross-modal tasks without placing all raw media directly in the model context. Media stays inside a sandboxed terminal workspace, where the agent can use tools such as ffmpeg, ffprobe, ASR, OCR, search, and Python to extract compact evidence before answering.

This repository packages the complete research workflow in one codebase: multiple coding-agent harnesses, five benchmark adapters, verified synthetic trajectory processing, supervised fine-tuning, checkpoint serving, evaluation, and Relax-based reinforcement learning. Code-X is the accompanying post-training recipe, using synthetic SFT followed by GSPO-style RL with a process-aware verifiable reward.

Resources

Data Use HuggingFace Link Comment
OmniCoding SFT Task Dataset SFT trajectory collection 🤗 Dataset 4,042 refined tasks; collect successful coding-agent trajectories and convert them to ms-swift Agent JSONL before training
OmniCoding RL Prompt Dataset RL prompt construction 🤗 Dataset 1,993 prompts with verifiable answers used to construct Relax prompt data
OmniCoding Source Benchmark Corpus Task curation and reconstruction 🤗 Dataset 6,035-row pre-split source corpus used to form the SFT and RL task splits; not a held-out evaluation set
TerminalBench-O Held-out terminal-agent evaluation 🤗 Metadata · Evaluator 50 public task definitions and released graders; raw fixtures, hidden references, outputs, and credentials are excluded
Code-X-SFT-27B Inference and evaluation 🤗 Model 27B SFT checkpoint based on Qwen3.6-27B

The 27B release is a supervised fine-tune of Qwen/Qwen3.6-27B. The three data artifacts used for training are hosted in one Hugging Face dataset repository at the pinned revision shown in the table. TerminalBench-O is a separate, metadata-only evaluation dataset.

Data notice: The dataset aggregates sources with different upstream terms. Some records or media originate from CC BY-NC-ND or unspecified-license sources. Repository availability and per-record metadata do not grant redistribution or reuse rights. Use only license-compatible subsets and consult the data license review and each upstream source before use.

Approach

Accuracy-token tradeoff

Sandboxed coding agents selectively inspect media through terminal tools and can remain competitive with native omni-modal systems while consuming much less media context.

Tool-use distribution

The resulting trajectories contain staged tool pipelines across search, media extraction, transcription, OCR, and Python. OmniCoding turns those trajectories into auditable SFT and RL data while keeping the harness, benchmark, model, and execution environment independently configurable.

Paper highlights

  • GPT-5.4 xHigh under Codex reaches 75.0% on OmniGAIA, compared with 66.1% for Gemini 3.1 Pro in the study.
  • The best coding-agent setting reaches 27.6% on VideoZeroBench, above the strongest native omni baseline reported in the paper (17.8%).
  • The Code-X 27B setting reaches 43.3% on OmniGAIA and 60.0% on LVOmniBench.
  • Log-driven skill self-distillation improves GPT-5.4 high on OmniGAIA from 61.4% to 76.7% average accuracy.

Evaluations in the paper cover OmniGAIA, SocialOmni, LVOmniBench, VideoZeroBench, and TerminalBench-O. This initial code release includes public adapters for OmniGAIA, SocialOmni Levels 1 and 2, LVOmniBench, and VideoZeroBench.

Evaluation subsets

The archived runs did not all use every item exposed by each upstream benchmark. LVOmniBench and both SocialOmni levels use the first 100 rows in the pinned upstream order. VideoZeroBench uses the official fixed 500-question file. The audited Codex gpt-5.5 xhigh and Code-X 27B OmniGAIA runs use the full 360-item test metadata; a first-100 OmniGAIA recipe is also retained for the smaller development/baseline jobs.

These are deterministic positional slices, not random samples. Exact upstream revisions, source files, row counts, stable ID fields, and output SHA256 values are recorded in recipes/eval_subsets.json. Follow the subset reconstruction recipe to rebuild and verify the same evaluation inputs. Scores over different slices should not be compared directly.

Trajectory availability

The trajectory audit records what is retained for each harness × model × benchmark combination. It includes a reproducible Qwen retry selector that joins attempts by stable question ID and keeps one judged- correct, complete trajectory per item. The checked-in manifests contain paths and completeness metadata only; raw trajectories and processed benchmark images have not yet been copied into this repository or published as data.

Repository layout

src/omnicoding/
  agents/kira/          Kira coding-agent implementation
  benchmarks/           shared runtime, benchmark specs, prompts, evaluation
  harnesses/            Codex, Claude Code, and Kira runners
  data/                 trajectory auditing, filtering, and SFT conversion
  rl/                   rollout, reward, and authenticated coordinator code
integrations/
  ms_swift/             SFT and LoRA consolidation integration
  sglang/               checkpoint serving integration
  relax/                pinned RL integration and reviewable upstream patches
  terminalbench_o/       50-task public evaluator and metadata exporter
infra/slurm/             portable Slurm templates for harness, SFT, serving, RL
recipes/                 example run configuration
release/                 source, trajectory, exclusion, and license audits
tests/                   unit, integration, security, and packaging tests

Large datasets, benchmark media, outputs, and model weights are deliberately kept outside Git and referenced through versioned repositories.

Installation

Python 3.10 or newer is required.

python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev,benchmark,rl,rl-data]"
pytest

Benchmark, SFT, serving, and RL dependencies are intentionally separated. See the relevant integration README before installing GPU-specific stacks.

Running a harness

One launcher selects the harness, benchmark, model, and data paths independently:

omnicoding-run \
  --harness kira \
  --bench omnigaia \
  --model openai/shuaishuaicdp/Code-X-SFT-27B \
  --input-file /path/to/items.json \
  --dataset-root /path/to/media \
  --output-dir outputs/smoke \
  -- --provider qwen --max_items 8

Use --dry-run to inspect the delegated command. The same entry point accepts --harness codex and --harness claude. The openai/ prefix selects LiteLLM's OpenAI-compatible transport; --provider qwen independently keeps the model's Qwen chat-template and multimodal tool-message behavior.

Synthetic data, SFT, inference, and RL

The checked-in Slurm scripts are portable templates. Cluster account, partition, QoS, storage paths, and credentials must be supplied by the user or through an ignored local profile.

Security

Coding agents execute tools and shell commands. Run them inside an isolated container or job sandbox, never expose production credentials, and review generated commands. The RL coordinator requires bearer authentication, request bounds, model/origin allowlists, media-path containment, and a small environment allowlist. See docs/RL_SECURITY.md.

Acknowledgements

OmniCoding builds on and adapts ideas or code from the following open-source projects. Their original license terms continue to apply; the project-level CC BY-NC 4.0 license does not replace them.

Benchmark records, media, and labels are not relicensed by OmniCoding. The released data preserves per-record source and license fields, but users must still comply with the corresponding upstream terms and the current data release decision record. A copy of Apache License 2.0 is provided in LICENSES/Apache-2.0.txt.

License

Project-specific code and documentation are released under CC BY-NC 4.0. This is a non-commercial research release. Third-party and adapted components retain their original licenses and attribution as listed in Acknowledgements. Datasets, benchmark media, and model checkpoints may have separate terms.

Citation

@misc{chen2026sandboxedcodingagentscompetitive,
      title={Sandboxed Coding Agents are Competitive Omni-modal Task Solvers},
      author={Dongping Chen and Xuanao Huang and Zhihan Hu and Qingyuan Shi and Dianqi Li and Tianyi Zhou},
      year={2026},
      eprint={2606.00579},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2606.00579},
}

About

Official Codebase for .

Resources

Stars

18 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages