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
- AgenticRLEnvironments editors
- First recorded
- Last revised
- Data as of
- Take the data
- CSV or JSON
- Reading time
- 1 min
| Environment | Kind | What the agent acts in | How reward is computed | Size | Paper or documentation | Source | Checked on |
|---|---|---|---|---|---|---|---|
| WebShop | Web | Simulated shopping site; the agent searches with a text query or clicks a text button | Score from 0 to 1 at purchase: share of the instruction's attributes, options and price limit matched, times a product-type match | 1.18 million real products; 12,087 crowd-sourced instructions | arxiv.org/abs/2207.01206 | arxiv.org/abs/2207.01206 | |
| MiniWoB++ | Web | Over 100 small web tasks; Python environments follow the Gymnasium API and act in a browser through Selenium WebDriver | 0 during the episode, from -1 to 1 at the end; binary, raw and thresholded variants can be chosen | Over 100 environments | miniwob.farama.org | miniwob.farama.org/content/reward | |
| ALFWorld | Household | Text games built with TextWorld, aligned with the ALFRED embodied household tasks | Rewarded after completing the goal; success and goal-condition success rates reported | 6 task types; 3,553 training tasks; 140 seen and 134 unseen evaluation tasks | arxiv.org/abs/2010.03768 | arxiv.org/pdf/2010.03768 | |
| ScienceWorld | Science | Interactive text simulator at elementary school science level; Python API through py4j | Score normalised from 0 to 1; each task has 2 to 15 optional subgoals that add to the score | 30 tasks in 10 topics; about 7,200 parametric variations | arxiv.org/abs/2203.07540 | arxiv.org/pdf/2203.07540 | |
| TextWorld | Text games | Python library that generates and runs text games; Gym-like reset and step | Game score returned on each step | Games generated with chosen world size, object count and quest length | arxiv.org/abs/1806.11532 | github.com/microsoft/TextWorld | |
| AppWorld | Apps and APIs | Nine everyday apps operated through 457 APIs; the agent writes code against them | State-based unit tests that allow several valid solutions and check for collateral damage | 750 tasks; about 100 simulated users | arxiv.org/abs/2407.18901 | arxiv.org/abs/2407.18901 | |
| SWE-Gym | Software engineering | Real Python repositories, each task with an executable runtime environment | Unit tests | 2,438 task instances | arxiv.org/abs/2412.21139 | arxiv.org/abs/2412.21139 | |
| R2E-Gym | Software engineering | Executable environments built procedurally from commits, with test generation and back-translation | Tests; the paper also studies execution-free verifiers and combines both | More than 8.7K tasks | arxiv.org/abs/2504.07164 | arxiv.org/abs/2504.07164 | |
| SWE-smith | Software engineering | Pipeline that builds an execution environment for a Python codebase and synthesizes tasks that break existing tests | The broken tests, which a correct fix makes pass again | 50k instances from 128 repositories | arxiv.org/abs/2504.21798 | arxiv.org/abs/2504.21798 | |
| AgentGym | Multi-environment | 14 environments, each served over HTTP with endpoints such as /createEnv, /step and /reset | Defined by each environment | 14 environments, including WebShop, ALFWorld, SciWorld, BabyAI and TextCraft | arxiv.org/abs/2406.04151 | github.com/WooooDyy/AgentGym | |
| Reasoning Gym | Reasoning | Library of procedural data generators, each paired with a verifier, with adjustable difficulty | Verifiable rewards computed by each task's verifier | Over 100 generators and verifiers across algebra, arithmetic, geometry, graphs, logic and games | arxiv.org/abs/2505.24760 | arxiv.org/abs/2505.24760 | |
| Gymnasium | API standard | The reset and step interface, spaces, wrappers and vector environments, with reference environments | Defined by each environment and returned by step | Release 1.4.0 of 5 October 2026, for Python 3.10 or later | gymnasium.farama.org/api/env | pypi.org/project/gymnasium | |
| PettingZoo | API standard | Multi-agent counterpart of the Gym interface, based on the Agent Environment Cycle (AEC) games model | Defined by each environment, per agent | A library of multi-agent environments | arxiv.org/abs/2009.14471 | arxiv.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.
- Reward computed by code (state checks, unit tests, verifiers, attribute matching) is what RL needs at scale. Every row here has one.
- 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.
- 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 agent | Environments in this table |
|---|---|
| Uses a website through clicks and text | WebShop, MiniWoB++ |
| Plans in a text world | ALFWorld, ScienceWorld, TextWorld |
| Calls app APIs by writing code | AppWorld |
| Fixes code in a repository | SWE-Gym, R2E-Gym, SWE-smith |
| Solves puzzles or maths with checkable answers | Reasoning Gym |
| Needs many environments behind one interface | AgentGym |
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.