A small eval
This example evaluates three small programming tasks. For each task there is a candidate solution (standing in for what a model would return) and a set of hidden test cases. Every episode runs in its own sandbox, with no network access, and the scores are collected into one table.1
The environment, once
2
The tasks and the model's answers
3
Run every episode in parallel
4
Clean up
For agents and RL
The same approach works for agent benchmarks and RL training runs. Each episode goes through four stages:- It starts from the task’s snapshot: for example a repository at a given commit, a database with data in it, or a desktop with an application open.
- The agent acts: it runs commands, edits files, or uses the browser or desktop, for as many steps as it needs.
- A checker scores the result inside the same sandbox, for example by running hidden tests, comparing the final state, or computing a reward.
- The sandbox is deleted, so the next episode starts from a clean state.
At scale
When you run hundreds or thousands of episodes, keep these points in mind:Related
Snapshots
How every episode gets the same starting point.
Agents in parallel
The same pattern, used for real work instead of scoring.