{
  "site": {
    "name": "AgenticRLEnvironments.com",
    "url": "https://www.agenticrlenvironments.com/",
    "description": "How to build environments for training and testing AI agents with RL: state and actions, app clones, task generators, graders, rewards and versioning.",
    "language": "en"
  },
  "updated": "2026-11-26",
  "how_to_use": [
    "To cite this site, give the page's title, its address and its last-updated date.",
    "Each row of a data table names the page it was read from and the day it was checked. Give that day whenever you repeat the figure.",
    "Never credit this site with a figure, a quote or a claim that is not on its pages."
  ],
  "pages": [
    {
      "title": "Agent environments for RL training: a sourced table of published environments",
      "url": "https://www.agenticrlenvironments.com/guide/agent-rl-environments-table/",
      "markdown": "https://www.agenticrlenvironments.com/guide/agent-rl-environments-table/index.md",
      "type": "data",
      "summary": "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.",
      "author": "AgenticRLEnvironments editors",
      "published": "2026-11-26",
      "updated": "2026-11-26"
    },
    {
      "title": "How to clone a web app as an RL environment for agents",
      "url": "https://www.agenticrlenvironments.com/guide/clone-a-web-app-as-an-rl-environment/",
      "markdown": "https://www.agenticrlenvironments.com/guide/clone-a-web-app-as-an-rl-environment/index.md",
      "type": "article",
      "summary": "Clone a web app as an agent environment by self-hosting an open-source app of the same kind in a container image, loading seeded synthetic data, replacing outside services with local fakes, fixing the clock, and reading rewards from its database. Then pin the image and check two runs match.",
      "author": "AgenticRLEnvironments editors",
      "published": "2026-11-26",
      "updated": "2026-11-26"
    },
    {
      "title": "How to generate tasks for agent environments at scale",
      "url": "https://www.agenticrlenvironments.com/guide/generate-tasks-for-agent-environments/",
      "markdown": "https://www.agenticrlenvironments.com/guide/generate-tasks-for-agent-environments/index.md",
      "type": "article",
      "summary": "Generate agent tasks from templates filled with seeded parameters, from procedural generators with a difficulty knob, or by mining and mutating real artefacts such as commits and tests. Whatever the source, keep a task only if its grader can tell a correct solution from a wrong one.",
      "author": "AgenticRLEnvironments editors",
      "published": "2026-11-26",
      "updated": "2026-11-26"
    },
    {
      "title": "Reward design for agentic RL: sparse, dense, outcome and process rewards",
      "url": "https://www.agenticrlenvironments.com/guide/reward-design-for-agentic-rl/",
      "markdown": "https://www.agenticrlenvironments.com/guide/reward-design-for-agentic-rl/index.md",
      "type": "article",
      "summary": "Start an agent environment with a sparse outcome reward checked by code on the final state. Add partial credit, shaping or format rewards only when learning stalls, prefer potential-based shaping because it keeps the optimal policy the same, and treat each added term as a new exploit.",
      "author": "AgenticRLEnvironments editors",
      "published": "2026-11-26",
      "updated": "2026-11-26"
    },
    {
      "title": "Reward hacking in agent environments: published examples and how to prevent it",
      "url": "https://www.agenticrlenvironments.com/guide/reward-hacking-in-agent-environments/",
      "markdown": "https://www.agenticrlenvironments.com/guide/reward-hacking-in-agent-environments/index.md",
      "type": "article",
      "summary": "Reward hacking is an agent earning reward without doing the intended task, by exploiting how the reward is checked: edited tests, skipped checks, hard-coded outputs, copied answers. Prevent it by grading outside the agent's reach, hiding answers and testing graders against known exploits.",
      "author": "AgenticRLEnvironments editors",
      "published": "2026-11-26",
      "updated": "2026-11-26"
    },
    {
      "title": "How to scale agent environment instances for RL training",
      "url": "https://www.agenticrlenvironments.com/guide/scale-environment-instances-for-rl/",
      "markdown": "https://www.agenticrlenvironments.com/guide/scale-environment-instances-for-rl/index.md",
      "type": "article",
      "summary": "Scale agent environments by running one isolated instance per episode with fixed CPU and memory limits, many in parallel, and by not letting the slowest episode stall the batch. Size and price a batch from episodes, minutes and resources per instance, and cap its worst case before it starts.",
      "author": "AgenticRLEnvironments editors",
      "published": "2026-11-26",
      "updated": "2026-11-26"
    },
    {
      "title": "How to version agent environments so runs can be reproduced",
      "url": "https://www.agenticrlenvironments.com/guide/version-and-reproduce-agent-environments/",
      "markdown": "https://www.agenticrlenvironments.com/guide/version-and-reproduce-agent-environments/index.md",
      "type": "article",
      "summary": "Version an agent environment as one id that pins everything that can change a reward: code, container image by digest, data, task set, grader and step limit. Bump it whenever any of them changes, record it and the seed with every trajectory, and test that a seed replays to the same state.",
      "author": "AgenticRLEnvironments editors",
      "published": "2026-11-26",
      "updated": "2026-11-26"
    },
    {
      "title": "What is an agentic RL environment? State, actions, observations and reward",
      "url": "https://www.agenticrlenvironments.com/guide/what-is-an-agentic-rl-environment/",
      "markdown": "https://www.agenticrlenvironments.com/guide/what-is-an-agentic-rl-environment/index.md",
      "type": "article",
      "summary": "An agentic RL environment is a program an AI agent acts in over many turns. It holds hidden state, accepts actions such as tool calls, returns observations such as text or screenshots, and pays a reward when it checks the outcome. Gymnasium's reset and step are the usual way to write one.",
      "author": "AgenticRLEnvironments editors",
      "published": "2026-11-26",
      "updated": "2026-11-26"
    },
    {
      "title": "How to wrap a tool-use task as a Gymnasium environment for an LLM agent",
      "url": "https://www.agenticrlenvironments.com/guide/wrap-a-tool-use-task-as-a-gymnasium-environment/",
      "markdown": "https://www.agenticrlenvironments.com/guide/wrap-a-tool-use-task-as-a-gymnasium-environment/index.md",
      "type": "article",
      "summary": "Subclass gymnasium.Env, declare Text spaces for actions and observations, build the task from self.np_random in reset, parse each action as a tool call in step, and compute the reward from the final state. Register it with a versioned id and max_episode_steps, then run the environment checker.",
      "author": "AgenticRLEnvironments editors",
      "published": "2026-11-26",
      "updated": "2026-11-26"
    },
    {
      "title": "How to write a grader or verifier for an agent environment",
      "url": "https://www.agenticrlenvironments.com/guide/write-a-grader-for-an-agent-environment/",
      "markdown": "https://www.agenticrlenvironments.com/guide/write-a-grader-for-an-agent-environment/index.md",
      "type": "article",
      "summary": "Write a grader that checks the final state with code, also checks what must not have changed, runs where the agent cannot touch it, and is tested with right, wrong and empty answers. Keep environment errors out of the reward, and use a model as judge only for what code cannot check.",
      "author": "AgenticRLEnvironments editors",
      "published": "2026-11-26",
      "updated": "2026-11-26"
    }
  ],
  "datasets": [
    {
      "name": "Agent environments for RL training: a sourced table of published environments",
      "url": "https://www.agenticrlenvironments.com/guide/agent-rl-environments-table/",
      "csv": "https://www.agenticrlenvironments.com/data/agent-rl-environments-table.csv",
      "json": "https://www.agenticrlenvironments.com/data/agent-rl-environments-table.json",
      "as_of": "2026-11-26"
    }
  ],
  "questions": [
    {
      "question": "Which environments are used to train LLM agents with RL?",
      "answer": "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.",
      "url": "https://www.agenticrlenvironments.com/guide/agent-rl-environments-table/"
    },
    {
      "question": "Which of these environments give partial credit?",
      "answer": "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.",
      "url": "https://www.agenticrlenvironments.com/guide/agent-rl-environments-table/"
    },
    {
      "question": "What is the standard Python interface for RL environments?",
      "answer": "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.",
      "url": "https://www.agenticrlenvironments.com/guide/agent-rl-environments-table/"
    },
    {
      "question": "Are these benchmarks?",
      "answer": "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.",
      "url": "https://www.agenticrlenvironments.com/guide/agent-rl-environments-table/"
    },
    {
      "question": "Why not train agents on the live website?",
      "answer": "A live site changes, cannot be reset, may forbid automated use, and makes every mistake real. A self-hosted clone can be reset to a known state, run many times in parallel, and inspected directly to compute a reward.",
      "url": "https://www.agenticrlenvironments.com/guide/clone-a-web-app-as-an-rl-environment/"
    },
    {
      "question": "Do I have to rebuild the app from scratch?",
      "answer": "Usually not. Published environments start from open-source software of the same category and add data. WebArena's authors used open-source libraries for each kind of site and imported data sampled from real counterparts.",
      "url": "https://www.agenticrlenvironments.com/guide/clone-a-web-app-as-an-rl-environment/"
    },
    {
      "question": "How do I make a cloned app deterministic?",
      "answer": "Seed every random generator that creates data, freeze or offset the clock the app sees, replace outside services with fakes that answer the same way each time, and pin the image by digest. Then check it by building twice from one seed and comparing the database.",
      "url": "https://www.agenticrlenvironments.com/guide/clone-a-web-app-as-an-rl-environment/"
    },
    {
      "question": "Where should the reward come from in a cloned web app?",
      "answer": "From the app's state: a database query or an API call after the episode. Reading the page the agent saw is weaker, because a page can show success that did not happen.",
      "url": "https://www.agenticrlenvironments.com/guide/clone-a-web-app-as-an-rl-environment/"
    },
    {
      "question": "What is the difference between a task template and a task instance?",
      "answer": "A template is a pattern with blanks, such as \"cancel the pending order of customer X\". An instance fills the blanks with values drawn from a seed. One template can produce thousands of instances, so count both when you describe a task set.",
      "url": "https://www.agenticrlenvironments.com/guide/generate-tasks-for-agent-environments/"
    },
    {
      "question": "Can an LLM write the tasks?",
      "answer": "Yes, and published work does, but every generated task needs a check that it is solvable and that its grader works. A common check is to run a reference solution, which must pass, and a broken one, which must fail.",
      "url": "https://www.agenticrlenvironments.com/guide/generate-tasks-for-agent-environments/"
    },
    {
      "question": "How do I control task difficulty?",
      "answer": "Expose the parameters that make a task harder, such as the number of steps needed, the number of objects or the amount of distracting data, and set them per task. Procedural generators such as TextWorld and Reasoning Gym expose such knobs directly.",
      "url": "https://www.agenticrlenvironments.com/guide/generate-tasks-for-agent-environments/"
    },
    {
      "question": "How many tasks do I need for RL training?",
      "answer": "There is no fixed number. What matters is that the agent does not see the same instance so often that it memorises it, and that held-out instances stay separate for evaluation. Generators that draw parameters from a seed make both easy.",
      "url": "https://www.agenticrlenvironments.com/guide/generate-tasks-for-agent-environments/"
    },
    {
      "question": "What is a sparse reward?",
      "answer": "A reward given only at the end of an episode, usually 1 for success and 0 otherwise. It is hard to exploit because it checks the outcome, but it gives the agent nothing to learn from until it succeeds at least sometimes.",
      "url": "https://www.agenticrlenvironments.com/guide/reward-design-for-agentic-rl/"
    },
    {
      "question": "What is potential-based reward shaping?",
      "answer": "Adding a bonus of the form gamma times Phi of the next state minus Phi of the current state, where Phi is any function of state, such as progress towards the goal. Ng, Harada and Russell showed in 1999 that shaping of this form leaves the optimal policy unchanged.",
      "url": "https://www.agenticrlenvironments.com/guide/reward-design-for-agentic-rl/"
    },
    {
      "question": "What is the difference between outcome and process rewards?",
      "answer": "An outcome reward scores the final result. A process reward scores each intermediate step. On math problems, a published comparison found process supervision trained a better reward model, but process labels cost far more to collect and are harder to define for tool use.",
      "url": "https://www.agenticrlenvironments.com/guide/reward-design-for-agentic-rl/"
    },
    {
      "question": "Should I reward the agent for using the right output format?",
      "answer": "A small format reward can help early in training, and published reasoning-model training used one. Keep it small relative to the outcome reward and check the agent does not learn to produce well-formed but wrong answers.",
      "url": "https://www.agenticrlenvironments.com/guide/reward-design-for-agentic-rl/"
    },
    {
      "question": "What is the difference between reward hacking and specification gaming?",
      "answer": "They describe the same failure from two sides. Specification gaming is behaviour that satisfies the literal objective without achieving the intended outcome. Reward hacking is the common name for it in reinforcement learning, where the objective is a reward function.",
      "url": "https://www.agenticrlenvironments.com/guide/reward-hacking-in-agent-environments/"
    },
    {
      "question": "Is reward hacking the agent's fault or the environment's?",
      "answer": "The environment's, in practice. The agent optimises the reward it is given. If an exploit earns reward, training will find it sooner or later, so the fix is in the grader and the environment, not in asking the agent to behave.",
      "url": "https://www.agenticrlenvironments.com/guide/reward-hacking-in-agent-environments/"
    },
    {
      "question": "Can I stop reward hacking by penalising it in the agent's reasoning?",
      "answer": "Be careful. A published study found that adding a chain-of-thought monitor to the reward helped at low optimisation, but with stronger pressure agents learned to hide their intent while still reward hacking. The authors suggest not applying strong optimisation pressure to the reasoning directly.",
      "url": "https://www.agenticrlenvironments.com/guide/reward-hacking-in-agent-environments/"
    },
    {
      "question": "How do I measure how often an agent cheats?",
      "answer": "Give it tasks where honest success is impossible and count passes. ImpossibleBench does this by making the tests conflict with the specification, so any pass implies a shortcut.",
      "url": "https://www.agenticrlenvironments.com/guide/reward-hacking-in-agent-environments/"
    },
    {
      "question": "What is the difference between SyncVectorEnv and AsyncVectorEnv?",
      "answer": "SyncVectorEnv steps its sub-environments one after another in the same process. AsyncVectorEnv runs each in its own process and talks to them through pipes, so slow steps overlap. For agent environments, where a step waits on an app or a test run, the asynchronous form is usually the one you want.",
      "url": "https://www.agenticrlenvironments.com/guide/scale-environment-instances-for-rl/"
    },
    {
      "question": "Why does synchronous rollout collection waste time with LLM agents?",
      "answer": "Agent episodes differ a lot in length. If a batch waits for every episode to finish, the hardware sits idle behind the longest one. The AReaL paper describes generation that must wait until the longest output in the batch is completed, and reports up to 2.77 times faster training by decoupling generation from training.",
      "url": "https://www.agenticrlenvironments.com/guide/scale-environment-instances-for-rl/"
    },
    {
      "question": "Should environment instances share a container?",
      "answer": "Not if the agent can change anything. One instance per episode, started from the same image, keeps one episode's changes from leaking into the next and makes resets a matter of starting a fresh copy.",
      "url": "https://www.agenticrlenvironments.com/guide/scale-environment-instances-for-rl/"
    },
    {
      "question": "How many environment instances can I run per machine?",
      "answer": "Divide the machine's CPUs and memory by each instance's limits, then leave headroom. Measure an instance's real use under a busy episode first; app clones with databases often need more memory than the agent's own process.",
      "url": "https://www.agenticrlenvironments.com/guide/scale-environment-instances-for-rl/"
    },
    {
      "question": "Why is a container tag not enough to pin an environment?",
      "answer": "A tag can point to a new image after a rebuild. A digest identifies one exact image. Docker's documentation describes pulling by digest as the way to pin an image to a specific version in time.",
      "url": "https://www.agenticrlenvironments.com/guide/version-and-reproduce-agent-environments/"
    },
    {
      "question": "What should make me bump an environment's version?",
      "answer": "Any change that can change a reward for the same actions: the app or its data, the task list, the grader, the tools offered, the observation format or the step limit. A pure refactor that leaves every reward the same can keep the version.",
      "url": "https://www.agenticrlenvironments.com/guide/version-and-reproduce-agent-environments/"
    },
    {
      "question": "Does seeding make an LLM agent's episode reproducible?",
      "answer": "It makes the environment's side reproducible: the same seed gives the same task and the same starting state. The model's sampling and any hosted model updates are separate sources of variation, so record them too.",
      "url": "https://www.agenticrlenvironments.com/guide/version-and-reproduce-agent-environments/"
    },
    {
      "question": "How does Gymnasium name environment versions?",
      "answer": "With ids of the form namespace/Name-vN, where the namespace and version are optional but recommended. Gymnasium's registry can also find the highest registered version of an environment name.",
      "url": "https://www.agenticrlenvironments.com/guide/version-and-reproduce-agent-environments/"
    },
    {
      "question": "What is the difference between an environment and a benchmark?",
      "answer": "An environment is the world the agent acts in, plus its reward. A benchmark is a fixed set of tasks in one or more environments, with a scoring rule and a published leaderboard. The same environment can serve training, where tasks are generated freely, and evaluation, where a frozen task set is used.",
      "url": "https://www.agenticrlenvironments.com/guide/what-is-an-agentic-rl-environment/"
    },
    {
      "question": "What is the difference between terminated and truncated in Gymnasium?",
      "answer": "Terminated means the episode reached an end defined by the task, such as success or an unrecoverable failure. Truncated means it was cut off for a reason outside the task, usually a step or time limit. Gymnasium returns both flags from step, and you reset the environment when either is true.",
      "url": "https://www.agenticrlenvironments.com/guide/what-is-an-agentic-rl-environment/"
    },
    {
      "question": "Why is an agent environment partially observable?",
      "answer": "Because the agent only sees what its tools return or what is on screen, never the full database, file system or server state behind them. Text environments are often framed as partially observable Markov decision processes for this reason.",
      "url": "https://www.agenticrlenvironments.com/guide/what-is-an-agentic-rl-environment/"
    },
    {
      "question": "Does an LLM agent environment need a numeric reward?",
      "answer": "For reinforcement learning, yes. For evaluation, a pass or fail is enough, and it is the same check. Many agent environments give a reward only at the end, from a program that inspects the final state.",
      "url": "https://www.agenticrlenvironments.com/guide/what-is-an-agentic-rl-environment/"
    },
    {
      "question": "Can Gymnasium spaces hold text?",
      "answer": "Yes. gymnasium.spaces.Text holds strings between a minimum and maximum length over a character set. The default character set is only English letters and digits, so set charset to string.printable or your own set if actions and observations contain spaces, quotes or punctuation.",
      "url": "https://www.agenticrlenvironments.com/guide/wrap-a-tool-use-task-as-a-gymnasium-environment/"
    },
    {
      "question": "Where should the randomness of a task come from?",
      "answer": "From self.np_random, after calling super().reset(seed=seed) on the first line of reset. Then the same seed always produces the same task, which you need for debugging and for fair comparisons between agents.",
      "url": "https://www.agenticrlenvironments.com/guide/wrap-a-tool-use-task-as-a-gymnasium-environment/"
    },
    {
      "question": "What should happen when the agent sends an action that does not parse?",
      "answer": "Return an error message as the observation with zero reward and let the episode go on. The step limit set with max_episode_steps will truncate an agent that never recovers. Ending the episode on the first malformed call makes learning harder for little benefit.",
      "url": "https://www.agenticrlenvironments.com/guide/wrap-a-tool-use-task-as-a-gymnasium-environment/"
    },
    {
      "question": "Do I need a Gymnasium environment to train an LLM agent?",
      "answer": "No. Many RL libraries for language models use their own interfaces. Writing the environment against reset and step still pays off, because the task, the tools and the grader live in one testable class that any training loop can call.",
      "url": "https://www.agenticrlenvironments.com/guide/wrap-a-tool-use-task-as-a-gymnasium-environment/"
    },
    {
      "question": "What is the difference between a grader and a verifier?",
      "answer": "The words are used almost interchangeably. Grader usually means the function that turns an episode into a score. Verifier is common in RL with verifiable rewards and in coding, where it can also mean a learned model that ranks candidate solutions. On this page both mean the check that decides the reward.",
      "url": "https://www.agenticrlenvironments.com/guide/write-a-grader-for-an-agent-environment/"
    },
    {
      "question": "Should a grader read the agent's final answer or the environment state?",
      "answer": "The state, whenever the task changes something. An answer can claim success that did not happen. For question-answering tasks with no state change, compare the answer with the reference using a normaliser, not exact string equality.",
      "url": "https://www.agenticrlenvironments.com/guide/write-a-grader-for-an-agent-environment/"
    },
    {
      "question": "Can I use an LLM as the grader?",
      "answer": "For open-ended outputs, yes, with care. The MT-Bench study found strong model judges agree with human preferences over 80% of the time, about as often as humans agree with each other, but also documented position, verbosity and self-enhancement biases. Use code wherever code can decide.",
      "url": "https://www.agenticrlenvironments.com/guide/write-a-grader-for-an-agent-environment/"
    },
    {
      "question": "How do I know my grader is wrong?",
      "answer": "Test it. Feed it a correct solution, an empty one, a near miss and a known exploit, and check each score. A published checklist study found grading flaws that misestimated agent performance by up to 100% in relative terms.",
      "url": "https://www.agenticrlenvironments.com/guide/write-a-grader-for-an-agent-environment/"
    }
  ],
  "machine_readable": [
    {
      "name": "llms.txt",
      "url": "https://www.agenticrlenvironments.com/llms.txt"
    },
    {
      "name": "llms-full.txt",
      "url": "https://www.agenticrlenvironments.com/llms-full.txt"
    },
    {
      "name": "facts.json",
      "url": "https://www.agenticrlenvironments.com/facts.json"
    },
    {
      "name": "ai.txt",
      "url": "https://www.agenticrlenvironments.com/ai.txt"
    },
    {
      "name": "Sitemap",
      "url": "https://www.agenticrlenvironments.com/sitemap-index.xml"
    },
    {
      "name": "RSS",
      "url": "https://www.agenticrlenvironments.com/guide/rss.xml"
    },
    {
      "name": "Atom",
      "url": "https://www.agenticrlenvironments.com/guide/atom.xml"
    }
  ]
}
