Papers
arxiv:2608.17528

Agent Lightning v1.0: Towards Harnessed Agentic RL

Published on Aug 18
· Submitted by
Zhiyuan He
on Aug 19
Authors:
,
,
,
,
,
,
,
,
,

Abstract

Agent Lightning v1.0 enables reproducible reinforcement learning for arbitrary agent harnesses, substantially improving coding-agent performance with minimal data and compute.

Modern agents operate inside agent harnesses that manage tools, context, and control flow, making the harness a critical part of the agent system. Our original Agent Lightning introduced a disaggregated architecture that connects arbitrary agents to RL training through an LLM endpoint proxy, an approach later adopted by frameworks such as verl Uni-Agent, AReaL 2.0, slime, and Polar. We refer to this paradigm as harnessed agentic RL, where the deploy-time harness directly participates in model post-training. Harnessed agentic RL differs fundamentally from traditional agentic RL: the harness, rather than the training engine, owns the environment interaction loop, while the trainer observes only sequences of LLM request-response pairs. This introduces challenges in retokenization, sample merging, advantage calculation, loss normalization, and backend scheduling, which can substantially affect training stability and effectiveness. We present Agent Lightning v1.0, a lightweight framework for harnessed agentic RL implemented in approximately 3,500 lines of code. It supports arbitrary agent harnesses and serves as a practical testbed for studying these challenges. We evaluate it on instruction-following, search, and coding agents, and provide a complete reproducible pipeline for coding-agent RL. Using only 6K training examples and modest compute, RL improves Qwen3.5-9B on SWE-bench Verified from 41.8% to 56.4%, a 14.6-point absolute gain. We release the complete workflow and training scripts to facilitate reproducible research on harnessed agentic RL.

Community

Paper submitter

Modern agents do not operate as standalone LLMs. They run inside agent harnesses that
manage tools, context, and control flow, which makes the harness a critical component. Our original
Agent Lightning work introduced a disaggregated architecture that connects arbitrary agents to
reinforcement learning (RL) training through an LLM endpoint proxy. Recent frameworks such as
verl Uni-Agent, AReaL 2.0, slime v0.3.0, and Polar have followed this proxy-based approach. Such a
proxy-based training approach enables RL training with the harness. In this work, we use the term
harnessed agentic RL to describe this paradigm, in which the deploy-time harness is directly involved
in model post-training, thereby narrowing the gap between training and actual use.

We find that harnessed agentic RL differs fundamentally from traditional agentic RL and introduces
a new set of challenges. In traditional agentic RL, the training engine owns the environment
interaction loop. In harnessed agentic RL, the harness owns this loop, while the training engine
observes only a sequence of LLM request-response pairs. How to model and assemble these calls into
training samples remains an open question. Through a careful study, we identify several challenges of
harnessed agentic RL, including retokenization, sample merging, advantage calculation, loss
normalization, and training backend scheduling. We find that, if not properly addressed, these
challenges can lead to ineffective or unstable training. Existing frameworks generally leave these
issues underspecified. In this paper, we provide the first comprehensive elaboration of them.

We further present Agent Lightning v1.0, a lightweight framework for harnessed agentic RL. We
treat simplicity as a first principle, implementing the framework in only approximately 3,500 lines of
code. Its compact design supports arbitrary agent harnesses and provides a practical testbed for
studying these challenges. We validate Agent Lightning v1.0 on general instruction-following agent,
search agent, and coding agent. For coding agent, we find that existing RL frameworks provide
limited support, including a lack of data and complete training scripts, as well as a reliance on
large-scale computational resources. To address this gap, we provide a complete data-cleaning
pipeline and reproducible training scripts based on open-source dataset and models. Using only 6K
training examples and modest compute, RL improves Qwen3.5-9B on SWE-bench Verified from
41.8% to 56.4%, an absolute 14.6% gain. We release the complete workflow and scripts to facilitate
reproducible harnessed agentic RL in Agent Lightning v1.0.

This is an automated message from the Librarian Bot. I found the following papers similar to this paper.

The following papers were recommended by the Semantic Scholar API

Please give a thumbs up to this comment if you found it helpful!

If you want recommendations for any Paper on Hugging Face checkout this Space

You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend

Sign up or log in to comment

Get this paper in your agent:

hf papers read 2608.17528
Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash

Models citing this paper 0

No model linking this paper

Cite arxiv.org/abs/2608.17528 in a model README.md to link it from this page.

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2608.17528 in a dataset README.md to link it from this page.

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2608.17528 in a Space README.md to link it from this page.

Collections including this paper 2