LEGO-RL: Harness-Native Reinforcement Learning for Coding Agents
Reinforcement learning for coding agents increasingly relies on long-running agent harnesses to manage tool integration, repository contexts, and execution feedback. However, the native execution environments of these harnesses are inherently misaligned with policy-gradient training: environmental crashes and reward hacking corrupt outcome signals, while train-inference discrepancies decouple rollout behavior from policy updates. To address this, we present LEGO-RL, a framework that bridges native coding-agent harnesses with scalable policy-gradient optimization without modifying their internal control flow. LEGO-RL is built upon three pillars: (1) faithful optimization via in-process LLM...
| Authors | Yiming Du, Yuxin Jiang, Tao Yuan et al. |
|---|---|
| Primary category | cs.AI |
| Published | 18 August 2026 |
| Last updated at source | 18 August 2026 |
Connected in the knowledge graph
- Lego-X/qwen3_5_35b_a3b_ohsdk_200k_rlModel · cited by
- Lego-X/Lego-RL-SWE-Bench-VerifiedDataset · cited by
- Lego-X/Lego-RL-2699Dataset · cited by
Models and datasets referencing this paper
Silytics shows public metadata from arXiv and links to the original. Information may be incomplete or out of date. Last refreshed 17 October 2026. Licenses and terms of the original apply to the work itself. Not financial, legal or professional advice.