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 Agent Training in Custom Harnesses(3 posts)→
More from coding & agent
- Grok Build turns workflows into slash commands with natural-language agents — tetsuoai · 2026-07-24
- Grok Build adds reusable agent workflows that fan out across up to 1,024 agents — tetsuoai · 2026-07-24
- A “mother agent” pattern treats sub-agents like a MapReduce workforce — dotey · 2026-07-24
- Anakin pitches a self-hosted web scraping layer for agent loops — Roger_M_Taylor · 2026-07-24
- Netlify’s London event promises live AI builds, agent demos and 10,000 credits — thisiskp_ · 2026-07-24
- Reddit post maps the “Periodic Table of Agent Infrastructure” — ozzyboy · 2026-07-24