[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-273490-105":59,"doc-detail-273490-en":130,"doc-similar-273490":160},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","clawgym-ii-exploring-black-box-rl-on-agent-harness-research-proposal-for-stable-and-scalable-optimization","ClawGym II - Exploring Black-Box RL on Agent Harness - research proposal for stable and scalable optimization","","Agent harnesses coordinate interactions between agents and environments, substantially boosting performance on long-horizon tasks. However, reinforcement learning via complex harnesses remains underexplored because scaling to long-horizon agent settings introduces fundamental stability and efficiency challenges. This work proposes a unified black-box RL framework with sandboxed parallel rollouts, call-capture at the model boundary, trajectory reconstruction via prefix trees, PPO/GRPO optimization, and mix-harness training. Experiments on ClawGym-Bench, JobBench, and OfficeQA show improved Pass@1 and stable optimization.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/clawgym-ii-exploring-black-box-rl-on-agent-harness-research-proposal-for-stable-and-scalable-optimization/273490/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/clawgym-ii-exploring-black-box-rl-on-agent-harness-research-proposal-for-stable-and-scalable-optimization/273490.png","ImageObject",300,407,{"name":92,"@type":93},"Aurora","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-26","2026-09-15",true,{"@type":102,"interactionType":103,"userInteractionCount":56},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What problem does the paper address about black-box reinforcement learning for agent harnesses?","Question",{"text":112,"@type":113},"It targets stable and scalable policy optimization when reinforcement learning must operate through complex, opaque agent harnesses used in long-horizon tasks.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does the framework generate training data for black-box harnesses?",{"text":117,"@type":113},"It builds a sandbox-based execution infrastructure for isolated, concurrent rollouts, captures model calls at the model boundary, and reconstructs multi-turn trajectories using prefix trees.",{"name":119,"@type":110,"acceptedAnswer":120},"Which optimization algorithms are adapted in the proposed method?",{"text":121,"@type":113},"The method adapts both critic-based PPO and critic-free GRPO to optimize over the recovered prefix-tree structure while maintaining training–inference consistency.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},273490,1789471681,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":56,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":46,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":31,"preview_page_count":19,"preview_urls":143},4810365810221,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","arXiv :2608 . 16798v1 [ cs .CL] 17 Aug 2026  \nClawGym II: Exploring Black-Box RL on Agent Harness  \nHuatong Song 1* , Fei Bai 1* , Ming Yang2 , Renyuan Li2 , Jia Deng 1 , Jujie He2 , Zhange Zhang2 , Daixuan Cheng 1 , Yan Xing2 , Qi Yun2 , Xuxing Chen2 , Danyang Li2 , Feng Chang2 , Chuan Hao2 , Ran Tao2 , Jian Yang2 , Bryan Dai2 , Wayne Xin Zhao 1†, Mingjie Tang2†, Ji-Rong Wen 1  \n1 Gaoling School of Artificial Intelligence, Renmin University of China,  \n2IQuest Research  \n*Equal contributors †Corresponding Authors  \nEmail: {songhuatong123, [feibai}@ruc.edu.cn](feibai}@ruc.edu.cn),  \n[batmanfly@gmail.com](batmanfly@gmail.com)  \nAbstract  \nAgent harnesses have substantially improved performance on long-horizon tasks by coordinating agent interactions with the environment. However, reinforcement learning through complex harnesses remains largely unexplored, as scaling such training to long-horizon agent tasks introduces fundamental challenges. In this work, we present a unified black-box RL framework for stable and scalable optimization of general agents through complex harnesses. Concretely, we first build a sandbox-based execution infrastructure 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 a serving proxy at the model boundary to capture model calls. To reconstruct multi-turn trajectories and improve training efficiency, we organize the captured calls into prefix trees and further adapt both critic-based PPO and critic-free GRPO to optimize over the recovered tree structure. Meanwhile, we maintain training–inference consistency throughout the optimization process. Finally, we introduce mix-harness training, allowing a single model to be jointly optimized by heterogeneous harnesses. With Qwen3-30A3B, black-box RL improves 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.  \n1. Introduction  \nAgent harnesses [30] have emerged as the foundational operating layer of autonomous agent systems, coordinating the interaction between large language models [38] and their environments throughout the task-solving process. They typically integrate system prompts, tool interfaces, context management, workflow orchestration, and retry and recovery mechanisms into a unified runtime. Production-grade systems such as Claude Code [2], Codex [17], and OpenClaw [19] demonstrate that carefully designed harnesses can substantially improve agent performance on complex long-horizon tasks [24] .  \nAs these harnesses become increasingly capable, they are accelerating the development of general autonomous agents that operate across diverse real-world workspaces and solve tasks spanning software engineering [7, 16], office applications [8, 21], AI assistant workflows [23, 36], and MCP-enabled tool use [5, 13] . Recent progress has been driven by inference-side advances in harness design, optimization, and self-evolution [31] . Yet the benefits of increasingly capable harnesses depend not only on their design but also on how effectively the underlying model can leverage them. Even a strong model may  \nperform poorly within a capable harness if it has not been suitably trained, motivating efforts, typically via reinforcement learning (RL) algorithms, to enable models to better exploit these agent harnesses.  \nA defining characteristic of modern harnesses is their inherent complexity: the design and implementation are sufficiently intricate. As a result, RL training algorithms targeting a harness can differ substantially from thos","cbCainGvgsZXivMF","https://ap.wps.com/l/cbCainGvgsZXivMF","pdf",1330165,"English","# Abstract\n# Introduction\n## Challenges for black-box RL on agent harnesses\n## Scalable and stable infrastructure\n## Efficient optimization from fragmented traces\n## Extensibility across heterogeneous harnesses","[{\"question\":\"What problem does the paper address about black-box reinforcement learning for agent harnesses?\",\"answer\":\"It targets stable and scalable policy optimization when reinforcement learning must operate through complex, opaque agent harnesses used in long-horizon tasks.\"},{\"question\":\"How does the framework generate training data for black-box harnesses?\",\"answer\":\"It builds a sandbox-based execution infrastructure for isolated, concurrent rollouts, captures model calls at the model boundary, and reconstructs multi-turn trajectories using prefix trees.\"},{\"question\":\"Which optimization algorithms are adapted in the proposed method?\",\"answer\":\"The method adapts both critic-based PPO and critic-free GRPO to optimize over the recovered prefix-tree structure while maintaining training–inference consistency.\"}]","ClawGym II - Exploring Black-Box RL on Agent Harness - research proposal for stable and scalable optimization | PDF",[144,148,152,156],{"page_no":8,"url":145,"width":146,"height":147},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/d40fafe6e2d7f2cd631604ce8398ac09.webp",983,1390,{"page_no":14,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/a0db092a0e430edd1e27f332a07ec55b.webp",982,1388,{"page_no":81,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/eaf436c6fc9d23b99ad864ac6a9291f7.webp",981,1387,{"page_no":19,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/e98e6d6b51928c97be9b4cbabf644424.webp",980,1385,{"list":161,"token":66},[162,169,176,183,190,197,204,211,218,224],{"doc_id":163,"doc_title":164,"file_type":137,"home_preview_img_url":165,"slug":166,"view_count":167,"category_name":40,"create_tm":168},84237,"Single-Rollout Asynchronous Optimization for Agentic Reinforcement Learning","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809153760/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109539&Signature=e8mVU0JtRNJuYZ8UgyrwhI%2BL6lE%3D","single-rollout-asynchronous-optimization-for-agentic-reinforcement-learning",35,1784194270,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":174,"category_name":40,"create_tm":175},121983,"Improving Single and Multi-Agent Deep Reinforcement Learning Methods - Thesis abstract","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229836660925/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109539&Signature=hnX6hrfIpVwXUw8H5RIeSBW30Ko%3D","improving-single-and-multi-agent-deep-reinforcement-learning-methods-thesis-abstract",23,1785808146,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":181,"category_name":40,"create_tm":182},85557,"GrandCode: Achieving Grandmaster Level in Competitive Programming via Agentic Reinforcement Learning","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809326581/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109539&Signature=3NCxdALaNa4iHMpPRZlN547QunY%3D","grandcode-achieving-grandmaster-level-in-competitive-programming-via-agentic-reinforcement-learning",29,1784204534,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":188,"category_name":40,"create_tm":189},327998,"RSPO: Reward-Swap Policy Optimization for Multi-Turn LLM Agents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909357848/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109539&Signature=zjfsoX%2BcrI%2FqMqK%2Fi8r1YYvB80k%3D","rspo-reward-swap-policy-optimization-for-multi-turn-llm-agents",15,1789978463,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":195,"category_name":40,"create_tm":196},84397,"Remember When It Matters Proactive Memory Agent for Long Horizon Agents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809047252/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109539&Signature=WQs9E%2F7J0htVGceIJ0V%2B3o5j2Jw%3D","remember-when-it-matters-proactive-memory-agent-for-long-horizon-agents",47,1784195317,{"doc_id":198,"doc_title":199,"file_type":137,"home_preview_img_url":200,"slug":201,"view_count":202,"category_name":40,"create_tm":203},84260,"Max Out GRPO Signal: Adaptive Trace Prefix Control for Hard Reasoning Problems","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809156030/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109539&Signature=5I56rdkjBjiVBFzLOjmH4q2F%2F1c%3D","max-out-grpo-signal-adaptive-trace-prefix-control-for-hard-reasoning-problems",28,1784194430,{"doc_id":205,"doc_title":206,"file_type":137,"home_preview_img_url":207,"slug":208,"view_count":209,"category_name":40,"create_tm":210},83289,"From Noisy Traces to Root Causes: Structural Trajectory Analysis and Causal Extraction for Agent Optimization","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808833868/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109539&Signature=V7rxwx9LY6Xdvx8owL55x72Vz38%3D","from-noisy-traces-to-root-causes-structural-trajectory-analysis-and-causal-extraction-for-agent-optimization",21,1784186511,{"doc_id":212,"doc_title":213,"file_type":137,"home_preview_img_url":214,"slug":215,"view_count":216,"category_name":40,"create_tm":217},83942,"CompactionRL: Reinforcement Learning with Context Compaction for Long-Horizon Agents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809117164/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109539&Signature=KJhUDY60wuhiMWaahVKaldSOUJM%3D","compactionrl-reinforcement-learning-with-context-compaction-for-long-horizon-agents",38,1784191579,{"doc_id":219,"doc_title":220,"file_type":137,"home_preview_img_url":221,"slug":222,"view_count":202,"category_name":40,"create_tm":223},84003,"Beyond Static Evaluation: Building Simulation Environments for Scalable Agentic Reinforcement Learning","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809011328/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109539&Signature=yDndWyKE3SJzCdC0OsUx7%2B1i7ng%3D","beyond-static-evaluation-building-simulation-environments-for-scalable-agentic-reinforcement-learning",1784191963,{"doc_id":225,"doc_title":226,"file_type":137,"home_preview_img_url":227,"slug":228,"view_count":229,"category_name":40,"create_tm":230},327225,"Staleness–Learning Rate Scaling Laws for Asynchronous RLHF","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909312025/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109539&Signature=sHD5L3aUJNEwE3uQKPGXb1yez28%3D","stalenesslearning-rate-scaling-laws-for-asynchronous-rlhf",18,1789976751]