Run tasks with Harbor
Use rsibox as a Harbor environment to run tasks in RSI Boxes. This guide runs fix-git from Terminal-Bench 2.1, a task about recovering lost Git commits. Harbor’s built-in oracle agent runs the official reference solution, so no model API key is required.
Requires Python 3.14 or newer on Linux x86-64, Linux ARM64, or macOS ARM64, an rsibox account with compute enabled, and team credits.
1. Install and sign in
Section titled “1. Install and sign in”Install Harbor and rsibox in the same virtual environment:
python -m venv .venvsource .venv/bin/activatepython -m pip install --upgrade 'rsibox[harbor]'
rsi loginrsi project listrsi project use defaultReplace default with your project slug. For automated runs, set RSIBOX_API_KEY and RSIBOX_PROJECT instead; see Authentication and Project selection.
2. Run a Terminal-Bench task
Section titled “2. Run a Terminal-Bench task”Select just fix-git from the dataset:
harbor run --dataset terminal-bench/terminal-bench-2-1 \ --include-task-name terminal-bench/fix-git \ --agent oracle \ -e rsibox.harbor:RsiboxEnvironment \ --n-concurrent 1 \ --jobs-dir jobsHarbor downloads the task, creates a Box, and starts the task’s prebuilt Docker image inside it. You do not need Docker on your own computer. The task requests 1 vCPU, 2 GiB RAM, and 10 GiB disk.
Harbor runs the reference solution and verifier, collects the logs, and stops the Box. A successful run reports 1 trial, 0 exceptions, and a mean reward of 1.000.
3. View results
Section titled “3. View results”harbor view jobsEach job directory contains result.json. Each trial directory contains the reference solution’s output in agent/oracle.txt and the test output and reward.txt under verifier/.
Harbor stops the Box automatically when the trial ends. If your local process is interrupted, check RSI Boxes in the console and stop any leftover Box.
Use your own tasks
Section titled “Use your own tasks”Keep -e rsibox.harbor:RsiboxEnvironment and change the dataset, task filter, or agent. For a local task, replace --dataset and --include-task-name with --path path/to/task. Agents other than oracle may need a model and its API key.
- Docker images: Use
docker_imagefor a prebuilt image, orenvironment/Dockerfileto build and run an image inside the Box. If both are present, the prebuilt image is used unless a build is forced. - Compose: The main service can use either option above; other services need prebuilt images. Compose
build:entries are not supported. Image and Compose working directories are preserved unless the task setsworkdir. - Networking:
network_modesupports"no-network","public", and"allowlist". - GPUs: Set
gpusand a single short catalog GPU name ingpu_types(for example,["rtx5080"]).
For direct scripting outside Harbor, see the Python SDK guide.