Skip to content

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.

Install Harbor and rsibox in the same virtual environment:

python -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade 'rsibox[harbor]'
rsi login
rsi project list
rsi project use default

Replace default with your project slug. For automated runs, set RSIBOX_API_KEY and RSIBOX_PROJECT instead; see Authentication and Project selection.

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 jobs

Harbor 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.

harbor view jobs

Each 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.

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_image for a prebuilt image, or environment/Dockerfile to 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 sets workdir.
  • Networking: network_mode supports "no-network", "public", and "allowlist".
  • GPUs: Set gpus and a single short catalog GPU name in gpu_types (for example, ["rtx5080"]).

For direct scripting outside Harbor, see the Python SDK guide.