SDSignal Desk

Microsoft’s Agent Lightning v1.0 trains agents with RL through the same harness they deploy in

· Updated · Signal Desk newsroom

Analysis of reporting by Microsoft Research. How we work

Image: Microsoft Research

Microsoft Research Asia open-sourced Agent Lightning v1.0, a roughly 3,500-line framework built on “Harnessed Agentic RL,” in which an agent’s deployment harness takes part in training via an OpenAI-compatible proxy. A Qwen3.5-9B coding agent rose from 41.8% to 56.4% Pass@1 on SWE-bench Verified with about 6,000 samples.

Key takeaways

  • Developers point an agent’s model endpoint at an Agent Lightning proxy instead of rewriting the agent.
  • The control plane is about 3,500 lines; rollouts run as standard Kubernetes jobs.
  • A SWE-smith, mini-SWE-agent and Qwen3.5-9B setup rose from 41.8% to 56.4% Pass@1 on SWE-bench Verified.
  • Collocated Async RL ran about twice as fast as synchronous training with fewer GPUs than typical async setups.
  • The team says the pipeline includes reward-hacking safeguards.

The design

Microsoft Research Asia has open-sourced Agent Lightning v1.0, a rebuilt framework for training AI agents with reinforcement learning. Its central idea, which the team calls Harnessed Agentic RL, is that the harness an agent uses in deployment is the same harness that takes part in training. Developers point their agent’s model endpoint at an Agent Lightning proxy rather than rewriting the agent inside a training framework. The proxy is OpenAI-compatible and records prompts, responses and log probabilities.

Earlier agent RL systems such as verl, AReaL and slime assumed the training framework owned the agent’s loop. Modern agents are a model wrapped in context management, tool protocols and execution logic, and rebuilding that wrapper inside the trainer is costly and means the agent being improved is not quite the one people use. Training through the real harness removes that mismatch. The researchers describe four problems that arise from the design: retokenization, advantage calculation, loss normalization and scheduling variable workloads onto fixed GPUs. Microsoft has released other open agent frameworks, such as Orchard (Orchard).

Footprint and results

The framework is about 3,500 lines, small enough for one engineer to read and reason about. Agents run as standard Kubernetes jobs rather than on paid commercial sandbox services, keeping costs down and pipelines reproducible, and offering a direct alternative to sandbox providers for large rollouts. The researchers report that their Collocated Async RL approach, in which rollouts and model updates share the same GPUs, ran about twice as fast end to end as synchronous training while using fewer GPUs than conventional asynchronous setups.

In the team’s coding-agent example, built on SWE-smith, mini-SWE-agent and Qwen3.5-9B, reinforcement learning raised Pass@1 on SWE-bench Verified from 41.8% to 56.4% using about 6,000 training samples. A 14.6-point gain from a 9B model with a modest dataset is strong, but it covers one model, one harness and one benchmark, and does not show how the recipe generalizes to other harnesses or messier real-world tasks. Microsoft Research Asia’s Singapore lab marked its first year recently (MSRA Singapore).

Reward design risk

Reinforcement learning optimizes whatever the reward measures, and agents are adept at finding shortcuts. The team says its pipeline includes reward-hacking safeguards, but as the approach spreads to teams with fewer resources, those safeguards may be the first thing skipped. Cheaper training of agents acting in real environments means more agents tuned hard toward narrow goals, a concern echoed in recent misalignment discussions (successor-note problem). Making sound reward design and evaluation as easy to copy as the training loop will matter. More in our Microsoft coverage, agents coverage and research coverage.

Who feels it

Developers
Try RL on existing agents without rewrites, on existing infrastructure.
Enterprises
Tuning in-house agents becomes realistic with sound reward design.
Researchers
A small, readable framework eases reproduction and extension.
Sandbox providers
Native Kubernetes support competes with paid sandboxes.

What to watch

  1. Results on other harnesses such as OpenHands or OpenCode.
  2. Independent reproductions of the SWE-bench gain.
  3. Documentation of reward-hacking safeguards.
  4. Adoption for non-coding tasks.

FAQ

What is Harnessed Agentic RL?

Training an agent through the same harness it uses in deployment, via a proxy.

How big is Agent Lightning?

About 3,500 lines of code.

What result did it report?

A Qwen3.5-9B agent rose from 41.8% to 56.4% Pass@1 on SWE-bench Verified.

Where do rollouts run?

As standard Kubernetes jobs rather than paid sandbox services.

Read the original

Continue at the source.

Microsoft Research

Companies: Microsoft

More on Microsoft

All Microsoft coverage →