TRL and OpenEnv now let you train agents inside your own coding harness
ben_burtenshaw · x · 2026-07-24
You can now train agents in TRL and OpenEnv with a harness of your choice, such as OpenCode, pi, Codex, or Claude Code.
- The core idea is to improve the model in the same harness where it will actually be used, so it learns the right tool usage for the task.
- The workflow described is: build a task dataset, plug in a harness that drives the session, connect an OpenEnv environment plus harness adapter, then use TRL HarnessRolloutWorker to collect traces and AsyncGRPOTrainer to update weights from environment reward.
- The attached diagram shows the full cycle: code task + verifier → loop-owning agent → environment/verifier → rollout collection → policy updates.
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