Terminal-Bench 2.0 on StrataBox (stratabox/terminal-bench-erofs)
All 89 Terminal-Bench 2.0 tasks as env + workspace EROFS layers with the verifier suite kept in a separate layer. Mount it directly from the Hub with StrataBox over hf:// HTTP Range.
See the 50-sandbox cold-boot demo recorded on stratabox/swebench-verified-erofs.
Official SDKs: Rust (cargo add stratabox-sdk), Python (pip install stratabox), Go (go get github.com/stratabox/stratabox-sdk-go), TypeScript (npm install @stratabox/sdk).
Overview
89 tasks, 16 categories. Each task is stored as read-only EROFS layers served from this repository, so an Edge mounts a task by fetching only the 256 KiB chunks it touches. Metadata (meta.erofs) is prefetched, so directory walks and stat calls cost no data reads. Writes go to a per-sandbox OverlayFS upper directory and never modify the shared blobs.
StrataBox EROFS Dataset Suite
| Repository | Upstream benchmark | Tasks | Logical size | EROFS size | Size ratio | Range network saved (cold boot) | Status |
|---|---|---|---|---|---|---|---|
stratabox/swebench-verified-erofs |
princeton-nlp/SWE-bench_Verified |
500 | 1,278.60 GiB | 105.54 GiB | 12.12x | 99.64% | Live |
stratabox/swebench-multilingual-erofs |
SWE-bench/SWE-bench_Multilingual |
300 | 481.73 GiB | 457.18 GiB | 1.05x | 98.10% | Live |
stratabox/livecodebench-erofs |
livecodebench/code_generation_lite |
1,055 | 1,409.45 GiB | 9.72 GiB | 144.95x | 99.90% | Live |
stratabox/terminal-bench-erofs (this repo) |
harborframework/terminal-bench-2.0 |
89 | 81.57 GiB | 80.00 GiB | 1.02x | 99.08% | Live |
stratabox/swebench-pro-erofs |
ScaleAI/SWE-bench_Pro |
731 (planned) | - | - | - | - | Publishing |
Sizes are computed from each repository's root index.json. Network savings are the share of logical image bytes not transferred during a measured cold boot (see the telemetry table on each card).
Storage and Deduplication
| Metric | Value |
|---|---|
| Tasks | 89 |
| Unique base layers | 89 |
| Unique toolkit layers | 0 |
| Unique workspace layers | 89 |
| Total unique layers | 178 |
| Aggregate logical image size | 81.57 GiB (87,580,381,882 bytes) |
| Contiguous EROFS size | 80.00 GiB (85,901,316,096 bytes) |
| Size ratio | 1.02x (1.92% saved) |
EROFS layers are uncompressed and chunk-aligned to 256 KiB so that HTTP Range reads map directly to touched file extents.
Each Terminal-Bench task ships its own container image, so layer sharing is low (1.02x). The saving comes from lazy paging: a cold boot reads about 1% of the logical image bytes.
Measured hf:// Cold-Boot Telemetry
Recorded against this live repository with a single StrataBox Edge (stratabox cluster --edges 1, kernel 7.0.0-1018-gcp, GCP n2d-standard-16, empty L2 chunk cache, no Docker daemon). 25 sandboxes across 15 categories and 3 difficulty tiers.
| Strategy | Sandboxes | Logical image size | Network I/O | Wall time | Host RAM delta |
|---|---|---|---|---|---|
| Eager OCI pull | 25 | 17.49 GiB | 17.49 GiB | - | - |
StrataBox hf:// 256 KiB HTTP Range |
25 | 17.49 GiB | 164.0 MiB (99.08% saved) | 50.7 s | ~765 MiB |
Wall time includes first-touch lazy paging over the public internet and depends on the Edge-to-Hub path. A warm L2 cache serves repeat boots with no remote reads.
Quickstart
Terminal 1 starts a local cluster whose storage reads straight from this repository over HTTP Range. No Docker daemon, S3 credentials, or image pulls are needed.
export STRATABOX_REMOTE_URI="hf://datasets/stratabox/terminal-bench-erofs"
# Optional mirror (for example mainland China or offline CI):
# export HF_ENDPOINT="https://hf-mirror.com"
./target/release/stratabox cluster --edges 1
Terminal 2 boots sandboxes from index.json with the runnable demo examples/terminal_bench_boot_demo.py:
export STRATABOX_REMOTE_URI="hf://datasets/stratabox/terminal-bench-erofs"
pip install stratabox httpx
python3 examples/terminal_bench_boot_demo.py
Python SDK Snippet
Self-contained example (requires the cluster from Terminal 1):
import asyncio, httpx
from stratabox import StrataBoxClient, StrataBoxContainerRunArgs
INDEX = "https://huggingface.co/datasets/stratabox/terminal-bench-erofs/resolve/main/index.json"
async def main():
tasks = httpx.get(INDEX, follow_redirects=True).json()["instances"]
t = next(x for x in tasks if x["category"] == "security")
async with StrataBoxClient("http://127.0.0.1:18080") as client:
sbx = await client.run_container(StrataBoxContainerRunArgs(
base_layer=t["base_layer"], toolkit_layers=[],
workspace_layers=[t["workspace_layer"]], env=t.get("oci_env") or {}, memory_limit_mb=512))
try:
r = await sbx.run_shell("test -f /tests/test.sh && test -f /instruction.md && head -n 5 /instruction.md", timeout=180)
print(t["instance_id"], r.exit_code, r.stdout.strip())
finally:
await sbx.stop()
asyncio.run(main())
Integrations
Harbor. The upstream
harborframework/terminal-bench-2.0tasks are Harbor task directories (task.toml,environment,tests/test.sh). Run them on StrataBox without forking Harbor; the adapter imports each task image into EROFS layers on first use:harbor run -p path/to/task_dir -a your-agent \ -e stratabox_harbor:StrataBoxEnvironment \ --ek endpoint=http://127.0.0.1:18080 --ek backend=container \ --ek idle_auto_pause_ms=5000Use
--ek backend=microvmfor Firecracker isolation or--ek backend=fullvmfor QEMU. This repository provides the same tasks pre-converted, so SDK and verl rollouts can skip the Docker pull and image conversion. Seeintegrations/harbor.verl.
StrataBoxVerlToolandStrataBoxRolloutEnvacceptbase_layer,toolkit_layers, andworkspace_layersstraight fromindex.json, withidle_auto_pause_msfreezing idle rollouts between LLM turns. Seeintegrations/verl.
Layout and index.json
index.json root manifest (schema_version 1)
.gitattributes Git LFS rules for *.blob and *.erofs
layers/<layer_slug>/ meta.erofs, layer_id.txt, layer_manifest.json
blobs/<blob_slug>/ data.blob, blob_manifest.json (served via HTTP Range)
Each layer uses a contiguous five-file layout with no per-chunk files, which stays far below the Hub's 10,000-files-per-directory limit.
Example instances[0] entry:
{
"instance_id": "adaptive-rejection-sampler",
"task_name": "adaptive-rejection-sampler",
"category": "scientific-computing",
"difficulty": "medium",
"tags": [
"applied-statistics",
"adaptive-rejection-sampling",
"Bayesian-inference"
],
"docker_image": "alexgshaw/adaptive-rejection-sampler:20251031",
"base_layer": "tbench/env:adaptive-rejection-sampler",
"toolkit_layers": [],
"workspace_layer": "tbench/ws:adaptive-rejection-sampler",
"target_file": "/tests/test.sh",
"test_cmd": "bash /tests/test.sh",
"workdir": "/app",
"cpus": 1,
"memory_mb": 2048,
"storage_mb": 10240,
"agent_timeout_sec": 900.0,
"verifier_timeout_sec": 900.0,
"network_mode": "public",
"oci_env": {
"PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
},
"logical_image_bytes": 107496593
}
Reproduce This Dataset
python3 examples/terminal_bench_pack.py --out-remote-dir ./hf_export
hf upload-large-folder stratabox/terminal-bench-erofs ./hf_export --repo-type=dataset
The packer pulls each upstream image, converts layers with stratabox layer publish-dir, and writes the manifest. Source: examples/terminal_bench_pack.py.
Licensing
Task definitions are from harborframework/terminal-bench-2.0 (Apache-2.0). Task container images are published by the benchmark authors and contain third-party software that remains under its own licenses.
Citation and Credits
Upstream benchmark: harborframework/terminal-bench-2.0. The Terminal-Bench Team, Terminal-Bench: A Benchmark for AI Agents in Terminal Environments (harborframework/terminal-bench-2.0). Packaging and sandbox runtime: StrataBox, an independent open-source implementation inspired by DSec (arXiv:2609.22978).
- Downloads last month
- 3