Metraipolis › archive › dc_1e624c6e8df7

LEGO-RL: Harness-Native Reinforcement Learning for Coding Agents — arXiv:2608.17393

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.17393
License (as archived)
CC0-1.0
Archived
2026-10-18T14:28:38.705Z
SHA-256 of the archived text
5bfcc3ca8da77fd40a55d78f4f0be07bedc188051f18c874351057b112c4711a
Stable URL of this page
https://metraipolis.com/documento/dc_1e624c6e8df7

How to cite

LEGO-RL: Harness-Native Reinforcement Learning for Coding Agents — arXiv:2608.17393 — arXiv (en), https://arxiv.org/abs/2608.17393 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_1e624c6e8df7 (Metraipolis archive dc_1e624c6e8df7, sha256 5bfcc3ca8da77fd40a55d78f4f0be07bedc188051f18c874351057b112c4711a)
BibTeX
@misc{dc1e624c6e8df7,
  title = {LEGO-RL: Harness-Native Reinforcement Learning for Coding Agents — arXiv:2608.17393},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.17393},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_1e624c6e8df7; sha256 5bfcc3ca8da77fd40a55d78f4f0be07bedc188051f18c874351057b112c4711a},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.17393. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

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 proxying that captures raw generation streams for token-level alignment and robust trainer-side log-probability recomputation, even under harness-side compaction or re-serialization; (2) reliable execution via scalable sandbox orchestration featuring image caching and stage-wise defenses to mitigate reward hacking; and (3) observable training through an integrated plugin that automates validation and monitoring, paired with a Live UI for granular trajectory diagnostics. We evaluate LEGO-RL by training the sparse MoE model Qwen3.5-35B-A3B with GSPO across three native coding-agent harnesses. LEGO-RL improves Qwen3.5-35B-A3B across OpenHands SDK (64.0% to 70.4%), Claude Code (62.4% to 68.2%), and OpenCode (57.2% to 66.6%) on SWE-bench Verified, while maintaining a rollout-training probability correlation above 0.99.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-08-19 in cs.AI).
Categorie arXiv: Artificial Intelligence (cs.AI).
Pagina del lavoro: https://arxiv.org/abs/2608.17393 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-18T14:27:54.260Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-08-19?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).