Skip to the entry
AgenticRLEnvironments.com

How to build environments for training and testing AI agents with RL: state and actions, app clones, task generators, graders, rewards and versioning.

Agent environments for RL training: a sourced table of published environments

At a glance

A table of 13 published environments and interfaces for training language agents with RL, from WebShop and ALFWorld to SWE-Gym, R2E-Gym and Reasoning Gym: what the agent acts in, how reward is computed and how large each is, read from the authors' papers and repositories.

Compiled by
First recorded
Last revised
Data as of
Take the data
CSV or JSON
Reading time
1 min
Published environments and interfaces for training agents with RL
EnvironmentKindWhat the agent acts inHow reward is computedSizePaper or documentationSourceChecked on
WebShopWebSimulated shopping site; the agent searches with a text query or clicks a text buttonScore from 0 to 1 at purchase: share of the instruction's attributes, options and price limit matched, times a product-type match1.18 million real products; 12,087 crowd-sourced instructionsarxiv.org/abs/2207.01206arxiv.org/abs/2207.01206
MiniWoB++WebOver 100 small web tasks; Python environments follow the Gymnasium API and act in a browser through Selenium WebDriver0 during the episode, from -1 to 1 at the end; binary, raw and thresholded variants can be chosenOver 100 environmentsminiwob.farama.orgminiwob.farama.org/content/reward
ALFWorldHouseholdText games built with TextWorld, aligned with the ALFRED embodied household tasksRewarded after completing the goal; success and goal-condition success rates reported6 task types; 3,553 training tasks; 140 seen and 134 unseen evaluation tasksarxiv.org/abs/2010.03768arxiv.org/pdf/2010.03768
ScienceWorldScienceInteractive text simulator at elementary school science level; Python API through py4jScore normalised from 0 to 1; each task has 2 to 15 optional subgoals that add to the score30 tasks in 10 topics; about 7,200 parametric variationsarxiv.org/abs/2203.07540arxiv.org/pdf/2203.07540
TextWorldText gamesPython library that generates and runs text games; Gym-like reset and stepGame score returned on each stepGames generated with chosen world size, object count and quest lengtharxiv.org/abs/1806.11532github.com/microsoft/TextWorld
AppWorldApps and APIsNine everyday apps operated through 457 APIs; the agent writes code against themState-based unit tests that allow several valid solutions and check for collateral damage750 tasks; about 100 simulated usersarxiv.org/abs/2407.18901arxiv.org/abs/2407.18901
SWE-GymSoftware engineeringReal Python repositories, each task with an executable runtime environmentUnit tests2,438 task instancesarxiv.org/abs/2412.21139arxiv.org/abs/2412.21139
R2E-GymSoftware engineeringExecutable environments built procedurally from commits, with test generation and back-translationTests; the paper also studies execution-free verifiers and combines bothMore than 8.7K tasksarxiv.org/abs/2504.07164arxiv.org/abs/2504.07164
SWE-smithSoftware engineeringPipeline that builds an execution environment for a Python codebase and synthesizes tasks that break existing testsThe broken tests, which a correct fix makes pass again50k instances from 128 repositoriesarxiv.org/abs/2504.21798arxiv.org/abs/2504.21798
AgentGymMulti-environment14 environments, each served over HTTP with endpoints such as /createEnv, /step and /resetDefined by each environment14 environments, including WebShop, ALFWorld, SciWorld, BabyAI and TextCraftarxiv.org/abs/2406.04151github.com/WooooDyy/AgentGym
Reasoning GymReasoningLibrary of procedural data generators, each paired with a verifier, with adjustable difficultyVerifiable rewards computed by each task's verifierOver 100 generators and verifiers across algebra, arithmetic, geometry, graphs, logic and gamesarxiv.org/abs/2505.24760arxiv.org/abs/2505.24760
GymnasiumAPI standardThe reset and step interface, spaces, wrappers and vector environments, with reference environmentsDefined by each environment and returned by stepRelease 1.4.0 of 5 October 2026, for Python 3.10 or latergymnasium.farama.org/api/envpypi.org/project/gymnasium
PettingZooAPI standardMulti-agent counterpart of the Gym interface, based on the Agent Environment Cycle (AEC) games modelDefined by each environment, per agentA library of multi-agent environmentsarxiv.org/abs/2009.14471arxiv.org/abs/2009.14471

How should I read this table?

Read the kind and reward columns first, because they decide what an agent can learn from the environment.

  1. Reward computed by code (state checks, unit tests, verifiers, attribute matching) is what RL needs at scale. Every row here has one.
  2. Partial credit or a single pass mark. WebShop, ScienceWorld and MiniWoB++ can grade between the extremes; test-based software environments usually give pass or fail.
  3. Fixed pool or generator. SWE-Gym is a fixed pool of 2,438 instances; TextWorld, Reasoning Gym, SWE-smith and R2E-Gym generate more on demand, which matters once an agent starts to memorise.

Which environment fits which kind of agent?

Match the environment to the actions your agent takes in production.

Table: Environments by kind of agent

Your agentEnvironments in this table
Uses a website through clicks and textWebShop, MiniWoB++
Plans in a text worldALFWorld, ScienceWorld, TextWorld
Calls app APIs by writing codeAppWorld
Fixes code in a repositorySWE-Gym, R2E-Gym, SWE-smith
Solves puzzles or maths with checkable answersReasoning Gym
Needs many environments behind one interfaceAgentGym

To build your own instead, start with what an agentic RL environment is and the Gymnasium wrapping guide.

Method

Each row was read from the environment's own paper, repository or documentation on the checked date; counts are the numbers its authors state, and the table lists open-source work without ranking it.

Field questions

Which environments are used to train LLM agents with RL?

Published examples include WebShop for web shopping, ALFWorld and ScienceWorld for text-based household and science tasks, AppWorld for apps operated through APIs, SWE-Gym, R2E-Gym and SWE-smith for software engineering, and Reasoning Gym for puzzles with verifiers. AgentGym serves 14 environments behind one HTTP interface.

Which of these environments give partial credit?

WebShop scores a purchase between 0 and 1 by how many of the instruction's attributes, options and price limit it matches. ScienceWorld adds optional subgoals to each task and normalises the score between 0 and 1. MiniWoB++ can give partial credit by default and offers a binary reward processor.

What is the standard Python interface for RL environments?

Gymnasium, the library formerly called Gym, with reset and step methods and declared action and observation spaces. PettingZoo is the multi-agent counterpart. Several environments in this table follow the Gymnasium API or a Gym-like variant of it.

Are these benchmarks?

Some are used as benchmarks too, but this table is about environments you can train in: generators, simulators and task pools with automatic rewards. For scores and leaderboards, read each paper.