Train ANY AI agent with reinforcement learning — zero code changes.
This is your fork-it starter kit for Microsoft's Agent Lightning v1.0, the 3,500-line lightweight agentic RL framework that's changing how teams train coding agents, search agents, and tool-using AI systems.
Agent Lightning v1.0 just dropped (August 2026) with results that should make every AI engineering lead pay attention:
If you're building AI agents that write code, search the web, query databases, or use tools — this is your training pipeline.
# Clone and install
git clone https://github.com/Varritech/agent-lightning-starter
cd agent-lightning-starter
uv sync
# Install verl GPU stack (CUDA 13.0 example)
bash scripts/setup_verl.sh 0.8.0 cu130
# Run the Calc-X POC (math reasoning with MCP calculator)
python examples/calc_x/train.py
That's it. You now have a working RL training loop for agents.
├── README.md # This file
├── GUIDE.md # Deep dive: architecture, training loop, production patterns
├── examples/
│ ├── calc_x/ # Math reasoning agent (MCP tools)
│ └── coding_agent/ # SWE-bench style code fixer
├── scripts/
│ └── setup_verl.sh # GPU environment bootstrap
├── kubernetes/
│ └── agent-job.yaml # K8s job spec for distributed rollouts
└── requirements.txt # Core deps (uv managed)
Agent Lightning keeps things stupid simple with three components:
Your agents talk to the Gateway like normal. Gateway records everything. Trainer turns it into RL gold.
| Domain | Baseline | After AGL v1.0 | Gain |
|---|---|---|---|
| Coding Agent (SWE-bench) | 41.8% | 56.4% | +14.6 pts |
| Search-R1 | See paper | See paper | Significant |
| LLM-in-Sandbox | See paper | See paper | Significant |
Full benchmarks in GUIDE.md and the technical report.
✅ You have an agent that uses tools (code exec, search, SQL, APIs)
✅ You can define a reward signal (tests pass, query runs, task complete)
✅ You want to improve success rates without manual prompt engineering
✅ You're running Qwen, Llama, Mistral, or any open model locally
❌ You only use closed APIs (no gradient updates possible)
❌ Your tasks have no clear success/failure signal
❌ You need >100K step training (consider distributed setup first)
MIT — fork it, ship it, own it.
Built by Varritech | christian@varritech.com
Bold ideas wait for no one.
3 commits
HTML
83.8%
Shell
16.2%
Train ANY AI agent with reinforcement learning — zero code changes.
This is your fork-it starter kit for Microsoft's Agent Lightning v1.0, the 3,500-line lightweight agentic RL framework that's changing how teams train coding agents, search agents, and tool-using AI systems.
Agent Lightning v1.0 just dropped (August 2026) with results that should make every AI engineering lead pay attention:
If you're building AI agents that write code, search the web, query databases, or use tools — this is your training pipeline.
# Clone and install
git clone https://github.com/Varritech/agent-lightning-starter
cd agent-lightning-starter
uv sync
# Install verl GPU stack (CUDA 13.0 example)
bash scripts/setup_verl.sh 0.8.0 cu130
# Run the Calc-X POC (math reasoning with MCP calculator)
python examples/calc_x/train.py
That's it. You now have a working RL training loop for agents.
├── README.md # This file
├── GUIDE.md # Deep dive: architecture, training loop, production patterns
├── examples/
│ ├── calc_x/ # Math reasoning agent (MCP tools)
│ └── coding_agent/ # SWE-bench style code fixer
├── scripts/
│ └── setup_verl.sh # GPU environment bootstrap
├── kubernetes/
│ └── agent-job.yaml # K8s job spec for distributed rollouts
└── requirements.txt # Core deps (uv managed)
Agent Lightning keeps things stupid simple with three components:
Your agents talk to the Gateway like normal. Gateway records everything. Trainer turns it into RL gold.
| Domain | Baseline | After AGL v1.0 | Gain |
|---|---|---|---|
| Coding Agent (SWE-bench) | 41.8% | 56.4% | +14.6 pts |
| Search-R1 | See paper | See paper | Significant |
| LLM-in-Sandbox | See paper | See paper | Significant |
Full benchmarks in GUIDE.md and the technical report.
✅ You have an agent that uses tools (code exec, search, SQL, APIs)
✅ You can define a reward signal (tests pass, query runs, task complete)
✅ You want to improve success rates without manual prompt engineering
✅ You're running Qwen, Llama, Mistral, or any open model locally
❌ You only use closed APIs (no gradient updates possible)
❌ Your tasks have no clear success/failure signal
❌ You need >100K step training (consider distributed setup first)
MIT — fork it, ship it, own it.
Built by Varritech | christian@varritech.com
Bold ideas wait for no one.
3 commits
HTML
83.8%
Shell
16.2%