Orchard: An Open-Source Agentic Modeling Framework

Baolin Peng, Wenlin Yao, Qianhui Wu, Hao Cheng, Xiao Yu, Rui Yang, Tao Ge, Alessandro Sordoni, Xingdi Yuan, Yelong Shen, Pengcheng He, Tong Zhang, Zhou Yu, Jianfeng GaoarXiv 2026

TL;DR

Orchard is a new open-source, Kubernetes-native framework that scales large language model (LLM) agent training by cleanly decoupling the execution environment from the agent harness. By introducing innovative training recipes like credit-assignment SFT and rubric-based process rewards, Orchard allows relatively small open-source models (4B and 35B) to achieve state-of-the-art performance, rivaling proprietary frontier models over 10× larger on complex software engineering and GUI tasks.

What Problem Does This Paper Address?

Building autonomous agents capable of software engineering, web navigation, or desktop automation requires massive amounts of multi-turn interactions with sandboxed environments. During reinforcement learning (RL) and supervised fine-tuning (SFT), thousands of these isolated environments must run concurrently, each requiring distinct base images, network isolation, and rapid cleanup.

Currently, researchers face an infrastructure bottleneck: environment layers are either rigidly coupled to specific training stacks (preventing data reuse and harness swapping) or managed via expensive, closed commercial platforms. This lack of a clean, standardized, and cost-effective environment boundary limits reproducibility and makes scaling up agentic training prohibitively complex and expensive for the open-source community.

Methods

The core architectural innovation is Orchard Env, a thin, standalone environment service built entirely on standard Kubernetes primitives.

Figure 2: Overview of the Orchard framework. Orchard Env (center) is a thin, Kubernetes- native environment service that exposes generic primitives—sandbox lifecycle, command execution, file I/O, network policy, a REST API, and lightweight agent injection—and supports heterogeneous task environments (bottom row). Open training recipes (second row) compose with this service without coupling to it, and we instantiate the same stack in three domains (top row): Orchard-SWE (software engineering), Orchard-GUI (browser navigation), and Orchard-Claw (AI personal assistant); per-domain headline numbers are summarized inside each domain box.

Orchard Env scales efficiently through two key design choices:

  1. Runtime Agent Injection: A Kubernetes init container copies a self-contained execution agent into any user-provided Docker image at startup, eliminating the need to rebuild task images for different domains.
  2. Direct Pod-IP Communication: All execution and file requests bypass the Kubernetes API server entirely, routing directly to the sandbox pod's IP to eliminate WebSocket setup overhead.
Figure 3: Orchard Env architecture. A Python client SDK (synchronous or asynchronous) issues REST calls to a FastAPI orchestrator, which manages sandbox lifecycle in a Kubernetes cluster. Pod creation and deletion (cold path) go through the Kubernetes API server, while all execution, file, and health requests (hot path) are dispatched directly to each sandbox pod’s in-pod agent via Pod IP, bypassing the API server and avoiding kubectl exec/WebSocket setup overhead.

On top of Orchard Env, the authors implement three domain-specific training recipes:

  • Orchard-SWE (Software Engineering): Introduces credit-assignment SFT to learn from successful sub-segments of failed trajectories. For RL, it utilizes Balanced Adaptive Rollout (BAR) to dynamically balance positive and negative samples in a batch, alongside On-Policy Distillation (OPD) and Rubric-based Process Rewards (RPR) to grade the agent's self-verification discipline.
  • Orchard-GUI (Browser Navigation): A recipe for training multimodal computer-use agents using a generic ReAct-style tool-calling harness.
  • Orchard-Claw (Personal Assistant): A recipe targeting productivity workflows (email, calendar) designed to evaluate how well agent skills transfer across different harnesses.

Datasets

Orchard leverages and curates several key datasets across its three target domains:

  • Software Engineering: Evaluated on SWE-bench Verified, SWE-bench Multilingual, and Terminal-Bench 2.0. Training data consists of 107K trajectories distilled from frontier models (MiniMax-M2.5 and Qwen3.5-397B) across SWE-rebench and Scale-SWE.
  • GUI Navigation: Evaluated on WebVoyager, Online-Mind2Web, and DeepShop. Training utilizes a filtered pool of 15,601 seed tasks derived from WebGym.
  • Personal Assistant: Evaluated on the Claw-Eval benchmark and trained using workflows from ClawHub alongside distilled trajectories.

Key Insights and Ideas

  • Failed Trajectories Contain Gold: Traditional SFT throws away failed attempts. Orchard's credit-assignment SFT uses retrospective value estimation by a teacher model to extract productive "rise segments" (e.g., successful repository navigation or partial root-cause analysis) from otherwise unsuccessful trajectories, providing crucial exploration-focused supervision.
  • Process Over Outcome: In sparse-reward environments like software engineering, binary outcome rewards (did the test pass?) fail to supervise how an agent succeeded. Rewarding the discipline of problem-solving—such as writing reproduction tests and verifying fixes via Rubric-based Process Rewards (RPR)—prevents the agent from getting lucky and yields more stable RL training.
  • Recycling RL Exhaust: Agentic RL produces massive amounts of trajectory data that are typically discarded after an experiment. Orchard introduces historical experience distillation, compressing rollouts from past experiments into a small, offline value model that successfully reranks candidates at inference time without requiring new environment interactions.

Key Results

Orchard demonstrates that a lightweight, harness-agnostic environment layer enables state-of-the-art performance using highly efficient models.

Figure 1: Performance comparison. Left: Orchard-SWE (35B-A3B) reaches 73% on SWE- bench Verified, approaching frontier MoE systems 10–30× larger. Right: Orchard-GUI (4B) achieves 68.4% average success across WebVoyager, Online-Mind2web, and DeepShop, making it the strongest open-source GUI agent while staying on par with proprietary systems from OpenAI and Google.
  • Orchard-SWE: Built on a Qwen3.5-35B-A3B backbone (activating only ~3B parameters at inference), it achieved 73.0% on SWE-bench Verified when paired with value-model reranking. This sets a new open-source SOTA and approaches the performance of frontier models that are 10–30× larger.
  • Orchard-GUI: Using a small 4B vision-language backbone and only 2.6K training tasks, it achieved a 68.4% average success rate across WebVoyager, Online-Mind2Web, and DeepShop, outperforming its own 235B teacher model and matching proprietary systems like Gemini computer-use-preview (69.3%).
  • Infrastructure Efficiency: Orchard Env achieved an average command-execution latency of just 0.28 seconds. By leveraging cloud spot instances, it reduced sandboxing costs by up to 90% compared to managed alternatives like E2B and Daytona.

Limitations and Future Work

Despite strong cross-harness generalization, Orchard still experiences performance drops when evaluated on completely unseen harnesses (e.g., Kimi-CLI) or out-of-domain tasks (Terminal-Bench 2.0), highlighting that "harness lock-in" remains a difficult challenge. Additionally, the framework's data curation and value estimation pipelines still rely heavily on massive frontier teacher models.

Future work includes expanding the framework to support broader multi-domain scaling, tighter integration of cross-harness training directly into the RL loop, and adapting the architecture for persistent, long-running agent states.

Summary updated

BibTeX
@misc{peng2026orchard,
  author = {Baolin Peng and Wenlin Yao and Qianhui Wu and Hao Cheng and Xiao Yu and Rui Yang and Tao Ge and Alessandro Sordoni and Xingdi Yuan and Yelong Shen and Pengcheng He and Tong Zhang and Zhou Yu and Jianfeng Gao},
  title = {{Orchard: An Open-Source Agentic Modeling Framework}},
  year = {2026},
  eprint = {2605.15040},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.15040},
}
Figure