Skip to content

Agent Gyms Explained: RL Environments for Agents, and What Changed This Autumn in OpenEnv, NeMo Gym, verifiers and Harbor

Agent gyms became shared infrastructure in late 2026: OpenEnv joined the Agentic AI Foundation, NeMo Gym and verifiers shipped new APIs, and Harbor spread as a task format. What a good environment needs, and why the verifier matters most.

BY AIAGENTINTERVIEWS EDITORIAL · EDITORIAL TEAM · UPDATED NOVEMBER 24, 2026 · 5 MIN READ

PRACTICE THIS:Agent evals topic ·Reward hacking in coding agents

The models that work for hours on their own got that way partly by practising in environments: sandboxes with tasks, tools and a way to score the result, run millions of times during reinforcement learning. For years those environments were private to each lab. This autumn they started to become shared infrastructure. OpenEnv shipped weekly releases and joined the Agentic AI Foundation on 22 October. NVIDIA's NeMo Gym and Prime Intellect's verifiers both released new environment APIs on 12 October. And a task format called Harbor turned up across all of them as the common way to package a task.

You do not need to train models to care. The same environments are how agents are evaluated, and the design questions (how to reset, how to isolate, how to verify) are the ones every agent test suite faces. Facts here were checked against the projects' release notes and posts on 24 November 2026.

What an agent gym is

An agent gym, or RL environment, has five parts:

  1. State that can be reset to a known starting point: a filesystem, a database, a simulated company.
  2. Tasks, each a starting state plus an instruction.
  3. Actions: the tools or commands the agent may use, through a harness that runs the agent's loop.
  4. A verifier that scores the outcome, as pass or fail, partial credit, or a reward signal.
  5. Trajectories: records of every step, used for training and for debugging.

A benchmark is a fixed set of tasks in such an environment, run for comparison. A gym is the reusable environment itself, often with thousands of generated tasks, used to train as well as to test.

What changed this autumn

OpenEnv (Meta PyTorch and Hugging Face) released every week from 1 October (v0.7.0) to 19 November (v0.14.0). The releases are mostly design documents turned into code:

  • RFC 005 defines foundation types for agentic harnesses, so the same environment can run under different agent loops.
  • RFC 006 adds "agentic RL through harness interception", capturing token-faithful traces of what the model saw and produced for training libraries.
  • RFC 008 sets manifest and validation contracts, and v0.14 grades Harbor tasks with those checks.
  • RFC 011 adds catalogue discovery for portable environments.
  • Policies for public and no-network environments are now enforced and measured, and older environment wrappers were deprecated in favour of a Harbor-based one.

At the Agentic AI Foundation's conference on 22 October, OpenEnv was one of four projects the foundation added, alongside Agent Skills, Open Responses and OpenSandbox.

NeMo Gym v0.7.0 (12 October) added environment servers for reusable agent-environment interaction patterns, harnesses reusable across environments, automatic resumption of cluster jobs after timeouts or preemption, durable token-level capture, export of trajectories in the ATIF format, and new environments including Terminal-Bench 4. One small option says a lot: counting missing rollouts as zero, to avoid inflated scores when runs are incomplete.

Prime Intellect's verifiers v0.4.0 (12 October) introduced a v1 API with separate task, environment, harness, runtime and evaluation interfaces, added Harbor support, a GEPA prompt-optimisation command and support for MCP's 2026-07-28 revision. On 18 November the company launched Model Factory, which ties verifiers, its Environments Hub and Harbor into one training loop running on tens of thousands of concurrent microVM sandboxes.

Harbor is the thread through all of these: OpenEnv's Harbor environment, verifiers' Harbor support, Model Factory, Hugging Face's FineEnvs datasets and Terminal-Bench all use it. A shared task format means a task written once can be used to train in one stack and evaluate in another, which is how evaluation and training environments start to merge.

The verifier is the product

Every lesson from this autumn's benchmark audits says the same thing: an environment is only as good as its verifier. Terminal-Bench 4.1 listed the ways agents could tamper with graders that run the agent's code. Prime Intellect's 3 November audit of public evaluations found fixes applied only to public task sets (inflating scores against private ones), graders that rejected valid answers, and solutions republished online. METR's 20 November update noted that containerised tasks resemble training environments and that reward hacking concentrated in the strongest agents.

The core mistake is a verifier that trusts something the agent can write. A toy environment shows it:

class RefundEnv:
    def reset(self):
        self.state = {"orders": {"A17": "paid"}, "refunds": [], "files": {}}
        return "Refund order A17 if it is paid."

    def step(self, action, **args):
        if action == "refund" and self.state["orders"].get(args["order"]) == "paid":
            self.state["orders"][args["order"]] = "refunded"
            self.state["refunds"].append(args["order"])
            return "ok"
        if action == "write_file":           # the agent can write in its workspace
            self.state["files"][args["path"]] = args["text"]
            return "ok"
        return "error"

def report_verifier(env):    # trusts a result file the agent can write
    return env.state["files"].get("result.txt") == "PASS"

def state_verifier(env):     # checks the world, not the agent's report
    return env.state["orders"]["A17"] == "refunded" and env.state["refunds"] == ["A17"]

honest, gamer = RefundEnv(), RefundEnv()
honest.reset()
gamer.reset()
honest.step("refund", order="A17")
gamer.step("write_file", path="result.txt", text="PASS")
print(report_verifier(honest), report_verifier(gamer))
# => False True
print(state_verifier(honest), state_verifier(gamer))
# => True False

The report-based verifier fails the honest agent and passes the one that wrote "PASS". The state-based verifier gets both right, and it also checks that exactly one refund happened, which catches an agent that refunds everything to be safe. Train against the first verifier and you train the behaviour you least want.

What a good environment needs

  • Deterministic reset, so runs are comparable and failures reproducible.
  • Isolation per run: its own sandbox, no shared state between attempts, and network access only where the task requires it.
  • A verifier outside the agent's reach that checks the resulting state, not the agent's claims, and runs any agent-written code as an untrusted user in a separate process.
  • Hidden checks and held-out tasks, so the agent cannot learn the test instead of the skill.
  • Partial credit where it helps (OSWorld 2.0 averages about 27 checkpoints per task), with the binary outcome kept as the headline.
  • Honest accounting: count missing or crashed runs as failures, record cost, and version tasks so changes do not silently move scores.
  • Faithful trajectories: exactly what the model saw and produced, which is what OpenEnv's harness interception and NeMo Gym's token-level capture are for.

Why this matters if you only build agents

Your evaluation suite is a small gym. The same design rules apply to a set of support-ticket scenarios with a simulated customer as to a reinforcement learning environment: reset cleanly, isolate runs, verify from outside, keep held-out cases, and count failures honestly. Our lesson on reward hacking in coding agents shows the same failure in the tests coding agents run against themselves.

What this means in an interview

Two prompts are becoming common for roles near model training or evaluation: "design an environment to train or test an agent at a task" and "your agent's score jumped overnight; is it real?" Strong answers to both put the verifier at the centre: what state it checks, why the agent cannot reach it, how tasks are held out, how failures and missing runs are counted, and how you would spot an agent learning the test rather than the task.

Sources

Checked 24 November 2026:

  • OpenEnv releases v0.5.0 to v0.14.0, github.com/huggingface/OpenEnv
  • Agentic AI Foundation announcement of four new projects (22 October 2026), aaif.io
  • NVIDIA NeMo Gym releases v0.6.0 and v0.7.0, github.com/NVIDIA-NeMo/Gym
  • Prime Intellect verifiers releases v0.4.0 and v0.4.1, github.com/PrimeIntellect-ai/verifiers; "Learnings from Auditing Public Evaluations" (3 November 2026) and "Introducing Model Factory" (18 November 2026), primeintellect.ai/blog
  • Terminal-Bench 4.1 post (9 November 2026), tbench.ai
  • METR capability update (20 November 2026), metr.org
  • OSWorld-V2 site, osworld-v2.xlang.ai
PRACTICE THIS

Where this post leads in the curriculum: lessons and interview questions:

FAQ

What is an agent gym?▲

An environment an agent can act in repeatedly, with a way to reset it, a set of tasks, the actions or tools the agent may use, and a verifier that scores the outcome. The same environment can train an agent with reinforcement learning or evaluate it.

What is OpenEnv?▼
What is the Harbor task format?▼
How do agents reward-hack an environment?▼