TRL plus OpenEnv can now train agents inside custom harnesses like OpenCode and Claude Code
ben_burtenshaw · x · 2026-07-24
You can now train agents in TRL and OpenEnv with a harness of your choice, including OpenCode, pi, Codex, or Claude Code.
This is a training setup for agentic workflows, not just a prompt trick:
- Start from a dataset of tasks.
- Use a harness such as OpenCode to drive the session.
- Connect an OpenEnv environment and a harness adapter.
- Collect traces with TRL HarnessRolloutWorker.
- Use AsyncGRPOTrainer to orchestrate inference and weight updates, with the verifier returning envreward.
The attached diagram shows a full loop: task + verifier, loop-owning agent, environment execution, rollout collection, and policy refresh.
Related event: TRL and OpenEnv Enable Custom Agent Harness Training(4 posts)→
More from coding & agent
- The browser main thread is expensive: a practical guide to JavaScript and CSS animation cost — jh3yy · 2026-09-11
- Inspired by OpenAI's 10,000-agent run, dev open-sources a crowdsourced agent problem-solving platform — Benjaminsen · 2026-09-11
- Lucid: open-source Mac app keeps your laptop awake only while AI agents run — Pitiful_Hedgehog_600 · 2026-09-11
- banteg's snail project crowdsources AI agents to finish matching Snail Mail's 20 remaining functions — banteg · 2026-09-11
- Alex Townsend posts 200 open problems in numerical linear algebra for humans and AI agents — IgorCarron · 2026-09-11
- Kimi K2.8 Preview rolls out: near-K3 coding performance, 1M context for all tiers — teortaxesTex · 2026-09-11