Introduction
Run, inspect, and showcase RL environments with your team.
Hatchery is your shared workspace for running, inspecting, and showcasing RL environments. You upload a task, run agents against it, and retain its rollouts for analysis. Hatchery hosts the tasks and containers so your team can run and inspect evaluations in one place. Hatchery is fully compatible with Harbor.
Task
A task is a scenario an agent runs through and receives a reward on. Tasks typically contain instructions and a verifier.
For example, consider a hello task. Its instruction says: write hello to /workspace/answer.txt. The verifier is a simple check that rewards 1 when the answer is hello and 0 otherwise.
Environment
The environment is the container where the work happens. It supplies the files and tools the agent can reach. For the hello task, it starts with an empty workspace and expects the answer at /workspace/answer.txt.
The environment belongs to the task. This keeps the evaluation conditions with the assignment instead of relying on a developer's laptop.
Agent
The agent is the system being evaluated. A job selects the agent separately from the task, so the same task can evaluate different agents without changing its files.
The small robot in the examples represents this agent under test. The team still chooses where the agent runs.
The agent reads the instruction and works inside the environment. Its outcome can be a file it writes, a change to the environment, or recorded actions and behavior.
Trial
A trial is one agent attempt at one task.
Each trial records the attempt and its outcome. It may also include a trace when the agent supplies one.
Verifier and reward
The verifier grades the agent's performance. It judges the outcome, such as a file, a change in environment state, or recorded behavior. It writes a reward, the score for that trial.
For the hello task, the contents of /workspace/answer.txt are the outcome. The verifier assigns reward 1 when the answer is hello and reward 0 for another answer.
Click the answer to change it.
helloThe verifier compares the submitted answer with the expected answer and returns a reward.
The answers match. Reward 1.
Job
A job schedules multiple trials. It selects the task revisions, agents, and number of attempts to run.
The hello quickstart uses one task, one agent, and one trial. A larger job can repeat a task or run a dataset, which is a saved set of exact task revisions.
Project
A project is a hosted workspace for tasks and evaluation outcomes. Think of this as Git repository for your tasks. You can clone a project's tasks:
mkdir my-benchmark
cd my-benchmark
hatchery pull --project your-project-id
A project containing the task clavia/hello produces this local layout:
my-benchmark/
├── hatchery.json
└── clavia/
└── hello/
├── task.toml
├── instruction.md
├── environment/
│ └── Dockerfile
├── solution/
│ └── solve.sh
└── tests/
└── test.sh
The root hatchery.json selects the remote project, so commands inside clavia/hello can find it. Pull downloads task sources. It does not download jobs, trial results, secrets, or dataset definitions. A project can receive tasks from many working directories.
push stores the selected task files as an immutable snapshot. pull downloads a stored revision into a new directory. It refuses an existing task destination instead of merging or overwriting files. hatchery init hello starts a new local task and also creates job.json and hatchery.json inside hello; those local control files are outside the pushed task snapshot.
The project can hold many named tasks, immutable revisions, datasets that pin revisions, and jobs with trials and rewards. A run may also supply traces and files. Optional project secrets reach only hosted jobs that name them.
| Command | Where work happens | Where files and outcomes go |
|---|---|---|
hatchery init hello | Your computer | Creates hello/ only |
hatchery pull | Your computer | Downloads project task sources under their full package names |
hatchery push hello | Your computer | Stores selected task files as a project revision |
hatchery run ... --output ../results | Your computer and local task container | Writes local results; can upload completed trials when a project is configured |
hatchery run ... --remote | Hatchery | Pushes a local task or uses a stored revision, then records the job in the project |
A hosted-only workflow needs the CLI and Git to push or pull tasks. Python and Docker are required only when you run the example locally.
Build and run the hello task in the Quickstart.