Research ·
Agent Lightning v1.0: A 3,500-Line Lightweight Agentic RL Framework for Training Agents with Real Harnesses
Microsoft Research Asia open-sourced Agent Lightning v1.0, a roughly 3,500-line RL training framework that trains agents inside their real deployment harnesses, raising Qwen3.5-9B from 41.8% to 56.4% Pass@1 on SWE-bench Verified with about 6,000 training samples.

Microsoft Research Asia introduced Harnessed Agentic RL and released a rebuilt Agent Lightning v1.0. The core idea is that the same agent harness used in deployment participates directly in reinforcement learning, so developers no longer have to reimplement their agent inside a training framework, which previously meant the trained agent differed from the deployed one.
The framework works by placing an LLM proxy between the agent and the model: you point the endpoint that previously called the model API at Agent Lightning, and the training system observes and records model calls while harness code stays unchanged. Because the harness, not the training framework, owns the interaction loop, the system only sees sequences of LLM request and response pairs and must handle retokenization, rollout-level advantage calculation, loss normalization, and scheduling variable workloads onto fixed GPU resources. The full control plane consists of an API Gateway, a Rollout Controller, and a Customized Trainer, in about 3,500 lines of code. Agents run as standard Kubernetes jobs on self-managed, cloud, or local clusters with no reliance on paid commercial sandbox services.
An end-to-end coding agent pipeline raised Qwen3.5-9B from 41.8% to 56.4% Pass@1 on SWE-bench Verified, a 14.6 percentage point gain, using roughly 6,000 training samples from an open-sourced dataset. For anyone building with AI, this means you can apply RL to improve an existing agent built on harnesses like mini-SWE-agent, OpenHands, OpenCode, Claude Code, or Codex without rewriting it, and run reproducible training at scale on your own infrastructure.
References
- Microsoft Research · microsoft.com
Read the full story at Microsoft Research ↗Like, save or discuss on Buzz