{
  "id": 655,
  "kind": "other",
  "title": "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.",
  "body": "",
  "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)",
  "url": "https://huggingface.co/docs/trl/main/en/openenv",
  "links": [],
  "authors": [
    "Hugging Face"
  ],
  "tags": [
    "openenv",
    "trl",
    "grpo",
    "opencode",
    "harness",
    "rl",
    "huggingface",
    "blog"
  ],
  "topics": "RL post-training, agent environments, coding agents",
  "venue": "Hugging Face TRL docs",
  "publisher": "",
  "source": "huggingface",
  "language": "en",
  "access": "free",
  "license": "Apache-2.0 (TRL); BSD-3-Clause (OpenEnv)",
  "published_year": null,
  "added_at": "2026-08-14T19:25:00.000Z",
  "verified_at": "2026-08-14T19:25:00.000Z",
  "attrs": {
    "scale": "OpenEnv GitHub 2,500 stars / 427 forks; TRL 19,071 stars / 2,906 forks at check.",
    "purpose": "Train GRPO/AsyncGRPO agents in stateful OpenEnv environments, including loop-owning OpenCode harnesses",
    "author_type": "human",
    "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."
  },
  "enrichment": {},
  "enriched_at": "2026-10-03T14:33:38.796Z",
  "license_class": "permissive",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "channel": "random-papers",
    "legacy_paper_id": "674",
    "needs_deep_eval": "no",
    "pipeline_status": "done",
    "research_status": "done"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-10-03T12:29:06.561Z",
  "updated_at": "2026-10-03T12:29:06.561Z",
  "page": "https://papers.projxon.ai/entries/655",
  "markdown": "https://papers.projxon.ai/entries/655.md",
  "api": "https://papers.projxon.ai/api/entries/655",
  "relations": [
    {
      "relation": "about",
      "direction": "in",
      "note": "",
      "via": "manual",
      "entry": {
        "id": 1207,
        "kind": "note",
        "title": "RL for language models after GRPO: fixes, costs, rewards, agents (overview)",
        "summary": "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.",
        "url": "",
        "authors": [
          "Claude Opus 5.5"
        ],
        "tags": [
          "synthesis",
          "ai-written",
          "grpo"
        ],
        "venue": "",
        "source": "",
        "license": "",
        "published_year": null,
        "added_at": "2026-10-03T15:08:43.002Z",
        "has_dataset_profile": false,
        "license_class": "unknown",
        "langs": [],
        "modalities": [],
        "size_class": null,
        "citation_count": null,
        "downloads": null,
        "stars": null,
        "page": "https://papers.projxon.ai/entries/1207",
        "markdown": "https://papers.projxon.ai/entries/1207.md",
        "api": "https://papers.projxon.ai/api/entries/1207"
      }
    }
  ],
  "duplicates": [],
  "similar": [
    {
      "id": 839,
      "kind": "post",
      "title": "The ultimate guide to multi-harness RL",
      "summary": "The ultimate guide to multi-harness RL (Adithya S Kolavi / FineEnvs, Hugging Face Space, 2026-10-01). Not a paper: a 33-figure ~60-page interactive research article plus full artifact release documenting how to do RL across multiple agent harnesses without modifying them -- claiming the first public multi-harness agent RL pipeline. Core idea: a 'capture proxy' sits between the agent harness and vLLM, speaks the four API formats coding agents use (OpenAI Chat Completions, OpenAI Responses, Anthropic Messages, Gemini), records exact token ids/logprobs sampled by vLLM, and reconstructs TRL-trainable traces, so the same rollouts run unmodified through 10+ harnesses. Full GRPO runs: LFM2.5-2.6B trained with multi-harness RL on 1,000 SmolDataEnvs data-analysis tasks, evaluated on 250 held-out tasks under four harnesses: base 42.2% -> multi-harness RL 54.2% pass@1 overall (step 1,000; best checkpoint step 700: 54.6%); per-harness OpenCode 49.6%, Claude Code 48.8%, Codex 53.6%, Mini-SWE-Agent 64.8%. OpenCode-only RL (step 900) reached 52.4% overall and won on its home harness (56.0%) but lost to multi-harness RL on Claude Code and Codex. Tool efficiency: correctness-only reward keeps tool calls high; adding a small bonus for fewer calls cut tool calls 31.1% on 356 task/harness pairs solved by both base and model, savings in all four harnesses. SFT comparison: fine-tuning on 3,189 successful Qwen3.8-27B teacher rollouts (17,929 examples, 2 epochs) plateaued -- OpenCode SFT 47.5% (-8.5% calls), multi-harness SFT 43.1% (-24.2% calls), both below RL (54.6%), showing multi-harness RL beats imitation at both performance and efficiency. Setup: async GRPO (TRL Async GRPO), 1,000 steps, reward = correctness x (1 + 0.1x15/(15+tool_calls)), 8 rollouts per GRPO group (one harness each, rotating), on 2xH100 (~32h OpenCode-only, 46h multi-harness); rollouts in E2B sandboxes via OpenEnv + Harbor. OpenEnv is BSD-3-Clause (PR #1036 capture proxy + Harbor, PR #1280 typed TrainingTrace API); TRL PR #6947 HarnessRolloutWorker (on TRL main, not v1.14.1). Trained models (full weights) under LFM Open License v1.0: LFM2.5-2.6B-multiharness-RL, -opencode-RL, -multiharness-SFT, -opencode-SFT, Qwen3.5-2B variants. Caveat from the model card: best-checkpoint selection used the test set (no separate validation set); single-run results on fixed harness versions.",
      "url": "https://huggingface.co/spaces/FineEnvs/multi-harness-rl",
      "authors": [
        "Adithya S Kolavi (FineEnvs / Hugging Face)"
      ],
      "tags": [
        "multi-harness-rl",
        "agent-harnesses",
        "grpo",
        "trl",
        "openenv",
        "vllm",
        "capture-proxy",
        "claude-code",
        "codex",
        "opencode",
        "tool-efficiency",
        "sft-vs-rl",
        "smoldataenvs",
        "harbor",
        "agentic-rl"
      ],
      "venue": "Hugging Face Space, 2026-10-01",
      "source": "article",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-01T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/839",
      "markdown": "https://papers.projxon.ai/entries/839.md",
      "api": "https://papers.projxon.ai/api/entries/839"
    },
    {
      "id": 837,
      "kind": "paper",
      "title": "Marathoner: Ultra-Long-Horizon Autonomous Intelligence",
      "summary": "Marathoner: Ultra-Long-Horizon Autonomous Intelligence (arXiv 2609.34378; CC BY 4.0). Marathoner-9B, built on Qwen3.5-9B, trained for ultra-long-horizon autonomous coding with a three-stage post-training pipeline: (1) Ultra-Long-Horizon Task Synthesis -- mining major-release PRs (1000+ new lines of code each) from 10,000 GitHub repositories into task-level data in the Harbor framework format, plus 'Multi-Task Chaining' that chains multiple synthesized tasks into one harder task; (2) Rejection Sampling Finetuning -- using Kimi K3 as teacher with diverse harnesses (Claude Code, Codex, etc.), then SFT on rejection-sampled trajectories; (3) Reinforcement Learning -- GRPO in the AReaL framework with real execution in independent sandboxes, plus a novel 'Later Stage Bonus Reward' (+0.5) that explicitly rewards exceptionally valuable operations late in a run (e.g., finding a hidden bug, delivering a major optimization). Endurance: average on FrontierSWE 3.56h / 426.2 steps / 648.3 tool calls; on Terminal-Bench 2.0 0.58h / 104.8 steps / 239.4 tool calls; a case study shows an 11.8-hour trajectory (872 steps) implementing native Rust control-flow operations in Qiskit. Results with Claude Code harness: SWE-bench Verified 43.8% (Qwen3.5-9B) -> 58.4% (after RFT) -> 77.5% (final Marathoner-9B); Terminal-Bench 2.0 27.3% -> 49.7% -> 57.2%; FrontierSWE 10.2 -> 18.2 -> 26.4; NL2Repo 17.9 -> 23.8 -> 34.7; SWE-Marathon 0 -> 2.9 -> 8.2. Compares against proprietary models (Kimi K3, Claude Fable 5.1, GPT-6-Astra, GLM-5.2). Listed under cs.CV; 30 pages, 4 figures. No code, model, or dataset release visible in the paper or arXiv 'Code, Data, Media' section at research time.",
      "url": "https://arxiv.org/abs/2609.34378",
      "authors": [
        "Ruiyang Zhang",
        "Jinpeng Ou",
        "Yifan Xie",
        "Jingang Zhou",
        "Lirui Pan",
        "Qingpei Guo",
        "Zheng Zhedong (Ant Group",
        "Peking University",
        "University of Macau)"
      ],
      "tags": [
        "long-horizon-agents",
        "autonomous-coding",
        "post-training",
        "rejection-sampling",
        "rl",
        "grpo",
        "qwen3.5",
        "swe-bench-verified",
        "terminal-bench-2.0",
        "frontierswe",
        "nl2repo",
        "tool-use"
      ],
      "venue": "arXiv 2609.34378, 2026-09-28",
      "source": "paper",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-01T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/837",
      "markdown": "https://papers.projxon.ai/entries/837.md",
      "api": "https://papers.projxon.ai/api/entries/837"
    },
    {
      "id": 1038,
      "kind": "dataset",
      "title": "SmolDataEnvs (FineEnvs): 5K+ verifiable data-science RL tasks",
      "summary": "FineEnvs SmolDataEnvs (HF release 2026-09-24; X @adithya_s_k) is a load-and-go dataset of 5,394 verifiable data-analysis tasks (train 5,000 / test 250 / eval 144) built from jupyter-agent notebooks over 471 Kaggle datasets. Each row has a question, gold answer, reward_mode with numeric tolerances, difficulty, and pointers to input files in an HF bucket; grading is deterministic (exact→numeric→list/percent→symbolic) with no LLM in the reward path. Held-out splits are deliberately harder (~38–40% hard vs ~14% hard in train). Family also ships Harbor env suites (harbor-train/test/eval), SFT trajectories (SmolDataEnvs-sft, 4,677), tutorial FineEnvs/04-smoldataenvs, and example 2B SFT/GRPO models under AdithyaSK/. MIT on Hub datasets; FineEnvs code Apache-2.0.",
      "url": "https://x.com/adithya_s_k/status/2103181855214432556",
      "authors": [
        "Adithya S Kolavi (AdithyaSK / FineEnvs)",
        "citation: Kolavi",
        "Adithya S"
      ],
      "tags": [
        "smoldataenvs",
        "fineenvs",
        "adithya",
        "verifiable-rl",
        "data-science-agent",
        "harbor",
        "openenv",
        "mit",
        "jupyter-agent",
        "grpo"
      ],
      "venue": "Hugging Face / FineEnvs",
      "source": "x",
      "license": "MIT (HF dataset cards); FineEnvs GitHub Apache-2.0",
      "published_year": 2026,
      "added_at": "2026-09-24T19:26:11.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "code",
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1038",
      "markdown": "https://papers.projxon.ai/entries/1038.md",
      "api": "https://papers.projxon.ai/api/entries/1038"
    },
    {
      "id": 812,
      "kind": "paper",
      "title": "RLTL;DR: Self-improvement by Internalizing Self-generated Feedback",
      "summary": "In RLVR the agent makes multiple attempts and optimizes toward the successful ones -- which breaks down in self-improvement,where tasks are so hard the agent has low or no chance of success and no teacher or example solutions exist. RLTL;DR: after each failed attempt,the policy is shown the verifier outputs and writes its own feedback as a single TL;DR insight; the next rollout is conditioned on all previous insights,sequentially sampling rollouts until a solution is found. Crucially,the in-context insights are backpropagated to internalize a direct task-to-insight mapping. On challenging tool-calling and coding datasets filtered to Pass@128=0,standard GRPO on a Qwen 3.5 9B Thinking policy stays flat at Pass@1 0-1%; RLTL;DR breaks the learning barrier to Pass@1 14-31% with insights in context during training,and 12-13% with no insight in context at eval time. A reduced variant,SFTL;DR,trains only on 4k (task,insight) tuples with no rollouts shown or backpropagated and recovers almost the full performance of RLTL;DR and classical SFT on full rollouts -- a compacted training paradigm of the form \"on this sort of task,keep this sort of thing in mind\". Sequential rather than parallel attempts per task; backpropagating the insight tokens semantically smooths and generalizes knowledge to similar tasks.",
      "url": "https://arxiv.org/abs/2609.37633",
      "authors": [
        "Michael Kirchhof",
        "Eleonora Gualdoni",
        "Andrew Szot",
        "Khashayar Gatmiry",
        "Aryo Lotfi",
        "Abbas Kazerouni",
        "Omar Attia",
        "Sanjoy Chowdhury",
        "Alexander Toshev"
      ],
      "tags": [
        "self-improvement",
        "agents",
        "rlvr",
        "rl",
        "grpo",
        "tool-calling",
        "coding"
      ],
      "venue": "arXiv:2609.37633 (cs.LG), submitted 29 Sep 2026",
      "source": "arxiv",
      "license": "agents",
      "published_year": 2026,
      "added_at": "2026-10-01T16:45:12.762Z",
      "has_dataset_profile": false,
      "license_class": "other",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/812",
      "markdown": "https://papers.projxon.ai/entries/812.md",
      "api": "https://papers.projxon.ai/api/entries/812"
    },
    {
      "id": 779,
      "kind": "paper",
      "title": "Reinforcement Learning for Code Optimization",
      "summary": "Makes execution time learnable for RL on code optimization via three stages: (1) DMC-Optim benchmark with large optimization tests and a calibrated timing sandbox; (2) composing correctness and speed into the reward using an offline simulator to pick configurations; (3) adapting GRPO and evaluation to the sparser, noisier timed-execution setting. Strongest configurations improve strict top-50% pass@1 from 18.0% to 31.3% on Qwen 2.5 7B and 30.7% to 50.4% on CWM 32B, with further gains at stricter percentiles (125% relative improvement for CWM 32B at top-30%) while preserving pure-correctness scores.",
      "url": "https://arxiv.org/abs/2607.25970",
      "authors": [
        "Pierre Chambon",
        "Kunhao Zheng",
        "Juliette Decugis",
        "Benoit Sagot",
        "Gabriel Synnaeve"
      ],
      "tags": [
        "rl",
        "code-optimization",
        "grpo",
        "dmc-optim",
        "execution-time-reward"
      ],
      "venue": "arXiv",
      "source": "arxiv",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-29T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/779",
      "markdown": "https://papers.projxon.ai/entries/779.md",
      "api": "https://papers.projxon.ai/api/entries/779"
    },
    {
      "id": 1290,
      "kind": "tool",
      "title": "RL Environment Explorer — Hugging Face Hub RL Environments filter",
      "summary": "Hugging Face launched a dedicated RL Environments filter on the Hub (announced Sept 28, filter live Oct 5, 2026): any dataset repository tagged `rl-environment` appears at huggingface.co/datasets?other=rl-environment, giving one shared index for agent tasksets across five frameworks — OpenEnv, Harbor, MiMo, Verifiers, and NVIDIA NeMo Gym. Framework tags (harbor, verifiers, openenv, nemo-gym) are registered as dataset libraries: each puts the framework's icon on the dataset page and generates a framework-specific loading snippet under 'Use this dataset'; a repo can carry multiple tags since compatibility is non-exclusive. Environments are framed as data + runtime: the Hub hosts, versions, gates, and previews tasksets (tasks, tests, containers, reward rules); execution happens locally or on supported cloud backends (HF Jobs, HF Sandboxes), and the Hub itself does not run environments. Already seeded environments include Harbor's BeyondSWE, Terminal-Lego, Harbor-Mix, and NatureBench; Verifiers' Reverse-Text-RL, Multi-SWE-RL-Verified (2,232/4,703 rows), R2E-Gym-Subset-Verified, and Scale-SWE-Verified (17,202/20,181); and NeMo Gym's Workplace Assistant (5 databases, 26 tools, 690 business tasks), Structured Outputs, CFBench, and SysBench. Announced with 12M+ RL task entries across RL environments on the Hub; OpenEnv auto-tags on upload.",
      "url": "https://huggingface.co/blog/rl-environments",
      "authors": [
        "Adithya S K / Hugging Face"
      ],
      "tags": [
        "rl-environment-explorer",
        "rl-environments-filter",
        "hugging-face-hub",
        "openenv",
        "harbor",
        "verifiers",
        "nemo-gym",
        "mimo",
        "tasksets",
        "agent-rl"
      ],
      "venue": "Hugging Face Hub",
      "source": "blog",
      "license": "",
      "published_year": null,
      "added_at": "2026-10-07T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1290",
      "markdown": "https://papers.projxon.ai/entries/1290.md",
      "api": "https://papers.projxon.ai/api/entries/1290"
    }
  ]
}
