OpenEnv Integration for Training LLMs with Environments
Summary
Living TRL docs (main). White-box path: environment_factory plus GRPOTrainer auto-discovers public tool methods, runs the multi-turn loop, and reads env.reward (Echo, Wordle, multi-env Wordle+Catch). Black-box/harness path (experimental): HarnessRolloutWorker plus AsyncGRPOTrainer lets a production agent such as opencode own planner, tools, and stop condition inside an OpenEnv ResourceSession; a transparent_proxy records token ids and logprobs; verify() plus optional rollout_reward_fn / train_turn_fn / agent_turn_fn score the outcome and filter turns. Reference script examples/scripts/openenv/opencode.py on agentica-org/DeepCoder-Preview-Dataset; sibling HF-sandbox script for multi-node rollouts. OpenEnv itself is Gymnasium-style step/reset/state with Hub-hosted Spaces. Discord posted the opencode harness hash.
- Venue
- Hugging Face TRL docs
- Source
- huggingface
- Access
- free
- License
- Apache-2.0 (TRL); BSD-3-Clause (OpenEnv)
- License family
- Permissive
- Language
- en
- Purpose
- Train GRPO/AsyncGRPO agents in stateful OpenEnv environments, including loop-owning OpenCode harnesses
- Scale
- OpenEnv GitHub 2,500 stars / 427 forks; TRL 19,071 stars / 2,906 forks at check.
- Time period
- OpenEnv created 2025-10-01; pushed 2026-08-13; updated 2026-08-14. TRL docs on main (source install at check; stable v1.10.0 listed). Discord posted 2026-08-04.
- Author type
- human
- Added
- Aug 14, 2026
- Verified
- Aug 14, 2026
- Research status
- done
- Found via
- #random-papers
Tags
Topics
RL post-training, agent environments, coding agents
Research notes
- Primary: TRL OpenEnv docs (posted link, including #training-on-harnesses-training-a-real-coding-agent-opencode). OpenEnv https://github.com/huggingface/OpenEnv (BSD-3-Clause). TRL https://github.com/huggingface/trl (Apache-2.0). OpenEnv docs https://huggingface.co/docs/openenv/. Example dataset DeepCoder-Preview-Dataset is prior, not a new corpus here. Docs/integration, not a hosted corpus, so no datasets_local row.
- 2026-10-01: capture proxy release (OpenEnv PR #1036) announced via @ben_burtenshaw X post (https://x.com/ben_burtenshaw/status/2105681647018315903): proxy sits between harness and model, records exact token ids and logprobs of every call, appears to harness as another model provider; typed TrainingTrace API (OpenEnv PR #1280); TRL async GRPO HarnessRolloutWorker (trl PR #6947)
Notes about this
- Note
RL for language models after GRPO: fixes, costs, rewards, agents (overview)
An overview of the 36 entries on GRPO-style reinforcement learning: known weaknesses and their fixes, rollout cost, reward design, agent training, and the dissenting approaches. Written by Claude Opus 5.5.
Similar entries
- Post The ultimate guide to multi-harness RL
- Paper Marathoner: Ultra-Long-Horizon Autonomous Intelligence
- Dataset SmolDataEnvs (FineEnvs): 5K+ verifiable data-science RL tasks
- Paper RLTL;DR: Self-improvement by Internalizing Self-generated Feedback
- Paper Reinforcement Learning for Code Optimization
- Tool RL Environment Explorer — Hugging Face Hub RL Environments filter