Skip to main content
The repo2rlenv wordmark inside the boxd card. Repo2RLEnv, by Hugging Face, builds verifiable RL environments for coding agents. It turns repositories, pull requests, agent trajectories and task seeds into Harbor tasks. Each task has an instruction, a starting environment, a verifier and a reference solution. Repo2RLEnv makes the tasks; Harbor runs agents against them. boxd is one of the cloud sandboxes in Repo2RLEnv’s Run with Harbor guide (pull request). Pass --env boxd and Harbor runs every trial on its own isolated boxd machine with Docker inside, so you can check and score tasks without Docker on your laptop.

Set up

1

Install Repo2RLEnv and Harbor

With Python 3.12 or later:
Repo2RLEnv pins Harbor 0.26.0. The boxd extra installs the boxd Python SDK.
2

Create an API key

Harbor creates the machines in the key’s organization.
3

Download a task

Pull one task from a published Repo2RLEnv dataset on the Hugging Face Hub:
pallets__click-3004 is a pr_runtime task: the agent has to make failing tests in Click pass without breaking the passing ones. Drop --task to download the whole dataset.
4

Check the task with the controls

The oracle applies the reference solution and should score 1. Nop changes nothing and should score 0.
Nop scored 0.000. Each control took under a minute, from creating the machine and building the task’s image to deleting the machine.
5

Run an agent

Claude Code fixed the task in about 3 minutes, for $0.33 of model spend as Harbor reports it (27 November 2026). The trial’s logs, trajectory and reward are in ./jobs/. Repo2RLEnv’s guide explains how to read them.

Make tasks from your own repository

Repo2RLEnv generates tasks on your computer, and Harbor runs them on boxd. The pr_diff pipeline needs no Docker and no model while it generates. It reads merged pull requests with the GitHub CLI, so log in first:
limit caps the candidates, so you can get fewer tasks than that. validate checks the task files only; nothing is built or run. generate reads the newest merged pull requests, so your tasks change as new ones merge. On 27 November 2026 this run gave one task, pallets__click-3919, out of three pull requests: one was docs only and one changed too many files. A pr_diff task scores the patch against the merged one, partly with a model judge. Pass the judge’s key to the verifier with --ve:
The oracle scored 0.975 and nop 0.000. Without a judge key the trial is left ungraded, not scored 0, and Harbor reports it as VERIFIER_FAILED. For rewards from tests alone, use pr_runtime or Tasksmith; both need Docker or a remote worker to generate. Choose a pipeline compares them.

How it works

  • One machine per trial. Harbor creates a boxd machine, builds or pulls the task’s image with the Docker daemon on it, runs the agent and then the verifier, copies the results back to ./jobs/, and deletes the machine.
  • Every machine is isolated. It cannot reach your other machines, and it gets none of your connected integrations or agent logins. The machine has outbound internet, so the agent can reach its model API.
  • The task’s network rules still apply. Inside the task’s container, Repo2RLEnv’s guard blocks PyPI and GitHub on many tasks, pallets__click-3004 among them, so the agent cannot download the published fix.
  • You choose what goes in. Values you pass with --ae and --ve reach the agent and the verifier commands.
  • Harbor’s boxd options work here. Snapshots, region, machine size and the other options are on the Harbor page. Pass them with --ek.

Limits

  • boxd runs the Harbor trials, not the generation. Repo2RLEnv’s own generation runs locally, with local Docker when it executes code. Tasksmith and the research recipes run their workers on Modal or Daytona.
  • No GPU. A boxd machine has no GPU. Repo2RLEnv runs its GPU trials on Modal.
  • Your machine quota caps concurrency. Each concurrent trial is one machine. Harbor runs 4 at a time unless you set -n. boxd manage billing shows your quota.
  • Controls first. A generated task has passed nothing beyond its generator’s checks. Run the oracle and nop on every dataset before you score an agent on it, as Repo2RLEnv’s guide says.

Read more