← Back to Paper Radar

OpenForgeRL: Train Harness-native Agents in Any Environment

Xiao Yu, Baolin Peng, Ruize Xu, Hao Zou, Qianhui Wu, Hao Cheng, Wenlin Yao, Nikhil Singh, Zhou Yu, Jianfeng Gao
arXiv.org | 2026

Reading guide · Based on sections of the original paper

The authors present OpenForge RL, an open framework that lets standard RL stacks such as veRL train agents inside their real deployment harnesses. A proxy records the harness's model calls as training samples, and a Kubernetes orchestrator runs each rollout in its own remote container.

Why read this

Practitioners who want to RL-train tool-use or GUI agents in harnesses such as OpenClaw or Codex, without reimplementing a simplified training loop, can use it for the design and a reference operating point.

What the authors found

  • On a Qwen3-30B-A3B-Thinking backbone, SFT+RL reaches 31.7 pass^3 and 55.9 pass@3 on ClawEval. The base model scores 14.3/39.8, the SFT-only model 21.7/52.1, and the best similar-size baseline, Qwen3-Coder-30B-A3B, 30.4/49.7. QwenClawBench pass@1 is 33.7, and MCPAtlas pass@1 is 28.1 on an 89-task credential-free subset. Frontier models remain far ahead; Claude Opus 4.6 scores 70.8 pass^3. Evaluation Benchmarks
  • The 8B GUI model, capped at 30 steps, scores 37.7 on OSWorld-Verified, against 29.4 for Qwen3-VL-8B and 38.1 for Qwen3-VL-235B. It scores 63.0 on Online-Mind2Web, against 63.7 for the 235B model. On WebVoyager it scores 72.3, below MolmoWeb-8B's 78.2. Baselines ran with 30 to 100 steps, and some figures are copied from reports. 4.2 GUI agents
  • On ClawEval pass@1, a model trained only on ZeroClaw also improves on harnesses it never saw: +3.3 on OpenClaw and +4.6 on Codex over the base model. Training on all three harnesses raises those gains to +9.5 and +20.3. Both models use the same tasks and recipe. 5.2 Generalization to Unseen Harness

Main limitation

The authors compare 100 ClawEval trajectories per checkpoint under the Codex harness. RL improved error recovery, but it was still the weakest of the measured behaviors. Separately, rollouts that end in infrastructure errors are discarded rather than given credit assignment. 5.3 Capability Learned by RL

Where to start

3.2 OpenForge RL · Shows how the proxy turns intercepted harness calls into training samples. It also shows how the terminal reward is broadcast to every step (γ=1) and how GRPO advantages are computed across trajectories.

Abstract

Modern AI agents rely on elaborate inference harnesses such as Claude Code, Codex, and OpenClaw to drive multi-turn reasoning, tool use, and access to external systems. While powerful, these complex harnesses also make agents hard to train end-to-end with open infrastructure, whose SFT/RL stacks cannot natively express stateful, multi-process harness inference. To address this, we present OpenForgeRL, an open-source framework for training harness-based agents end-to-end in diverse environments. OpenForgeRL achieves this with a lightweight proxy that serves the harness's model calls while recording them as training data for a standard RL codebase (e.g., veRL), and a Kubernetes orchestrator that runs each rollout in its own remote container, together enabling training on any harness in any environment at scale. By decoupling training and inference, OpenForgeRL allows researchers to easily train, study, and improve agents directly in the real harnesses and environments they are deployed with. We validate our framework across diverse, complex harnesses and environments, spanning tool/claw-based agents and multimodal GUI browser- and computer-use agents. Using only hundreds to a few thousand tasks, OpenForgeClaw reaches 31.7 pass^3 and 55.9 pass@3 on ClawEval and 33.7 on QwenClawBench. OpenForgeGUI reaches 37.7 on OSWorld-Verified, 63.0 on Online-Mind2Web, and 72.3 on WebVoyager. Both outperform open baselines of similar size on nearly all benchmarks, and in the GUI setting match or surpass models several times larger. Beyond benchmarks, we analyze how harness choice (e.g., ZeroClaw, OpenClaw, Codex) and RL shape agent behavior. We find that some harnesses are substantially harder to learn than others, and that RL improves agentic reliability, such as self-verification, tool coverage, and completing multi-step plans, though critical abilities such as error recovery remain weak.

Generated automatically from paper sections on 2026-11-28.