ClawGym II: Exploring Black-Box RL on Agent Harness
Summary
This paper introduces a unified black-box reinforcement learning framework for stable and scalable optimization of agents through complex harnesses, using sandbox execution and trajectory reconstruction with improvements on benchmarks like ClawGym-Bench.
View Cached Full Text
Cached at: 08/18/26, 03:52 AM
Paper page - ClawGym II: Exploring Black-Box RL on Agent Harness
Source: https://huggingface.co/papers/2608.16798 Authors:
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
Abstract
A unified black-box reinforcement learning framework enables stable, scalable optimization of general agents through complex harnesses via sandbox execution, trajectory reconstruction, and mix-harness training.
Agent harnesses have substantially improved performance on long-horizon tasks by coordinating agent interactions with the environment. However,reinforcement learningthrough complex harnesses remains largely unexplored, as scaling such training to long-horizon agent tasks introduces fundamental challenges. In this work, we present a unifiedblack-box RLframework for stable and scalable optimization of general agents through complex harnesses. Concretely, we first build asandbox-based executioninfrastructure that isolates task environments and harnesses within temporary sandboxes for large-scale concurrent rollouts. We then decouple policy optimization from opaque harness execution and place aserving proxyat the model boundary to capture model calls. To reconstructmulti-turn trajectoriesand improve training efficiency, we organize the captured calls intoprefix treesand further adapt both critic-basedPPOand critic-freeGRPOto optimize over the recovered tree structure. Meanwhile, we maintain training-inference consistency throughout the optimization process. Finally, we introducemix-harness training, allowing a single model to be jointly optimized by heterogeneous harnesses. With Qwen3-30A3B,black-box RLimproves Pass@1 on ClawGym-Bench by 9.98 and 14.81 points through OpenClaw and Claude Code, respectively, while remaining stable over 200-400 optimization steps. Moreover, the framework yields consistent gains on more challenging tasks such as JobBench and OfficeQA. Overall, our framework enables effective, stable, and scalable optimization of general agents through black-box harnesses, supporting unified training across heterogeneous execution systems.
View arXiv pageView PDFProject pageGitHub33Add to collection
Models citing this paper0
No model linking this paper
Cite arxiv.org/abs/2608.16798 in a model README.md to link it from this page.
Datasets citing this paper0
No dataset linking this paper
Cite arxiv.org/abs/2608.16798 in a dataset README.md to link it from this page.
Spaces citing this paper0
No Space linking this paper
Cite arxiv.org/abs/2608.16798 in a Space README.md to link it from this page.
Collections including this paper0
No Collection including this paper
Add this paper to acollectionto link it from this page.
Similar Articles
EvoHarness-RL: Learning Self-Evolving Runtime Harness for Long-Horizon LLM Agents
Introduces EvoHarness-RL, a framework that learns runtime harness policies for long-horizon LLM agents, enabling them to construct and update external state (belief, progress, experience) during task execution. Using Qwen3-8B on ALFWorld, it achieves 96.9% success and reveals harness annealing and evolution dynamics.
Learning to Control LLM Agent Harnesses with Offline Reinforcement Learning
This paper formalizes the execution harness around LLM agents as a learnable control layer using a Harness MDP trained via offline reinforcement learning, showing improvements in verification behavior and final quality across domains.
Harness-1: Reinforcement Learning for Search Agents with State-Externalizing Harnesses
Introduces Harness-1, a 20B open search agent trained with state-externalizing harnesses, achieving strong retrieval performance and outperforming larger frontier models on several benchmarks.
OpenForgeRL: Train Harness-native Agents in Any Environment
OpenForgeRL is an open-source framework for training harness-based AI agents end-to-end in diverse environments, using a lightweight proxy and Kubernetes orchestrator to enable RL on any harness at scale. It achieves strong results on agentic benchmarks and shows that RL improves agent reliability.
Harness-G: A Graph-Structured Harness for Search Agents
This paper introduces Harness-G, a graph-structured retrieval framework that reformulates free-form query generation as finite action selection to reduce retrieval aliasing in RL-powered search agents. Across six QA benchmarks, Harness-G outperforms the strongest baseline Graph-R1 by 10.74 points at 1.5B and 3.98 points at 3B scale.