Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(bench): update docker-compose harness configuration

Steven Enamakel801879548b2b
diff --git a/bench/harnesses/docker-compose.yml b/bench/harnesses/docker-compose.yml
new file mode 100644
index 0000000000..97e30157fd
--- /dev/null
+++ b/bench/harnesses/docker-compose.yml
@@ -0,0 +1,84 @@
+# Cross-harness benchmark rig. See README.md.
+#
+# docker compose up -d meter-proxy # metering proxy (holds the real key)
+# node orchestrate.mjs --harness openhuman --suite micro
+#
+# Every harness runs through the `task` service below, so CPU/RAM limits, the
+# network, the proxy and the credential handling are identical by construction.
+# Only the harness bundle mounted at /opt/harness differs.
+
+name: harness-bench
+
+networks:
+ bench:
+ driver: bridge
+
+services:
+ # The only holder of the real OpenRouter key. Pins model + reasoning effort on
+ # every request and appends one JSONL record per inference call.
+ meter-proxy:
+ build:
+ context: ./meter-proxy
+ environment:
+ OPENROUTER_API_KEY: ${OPENROUTER_API_KEY:?set OPENROUTER_API_KEY in .env}
+ BENCH_MODEL: ${BENCH_MODEL:-deepseek/deepseek-v4-flash}
+ BENCH_REASONING: ${BENCH_REASONING:-medium}
+ METER_LOG: /results/meter.jsonl
+ volumes:
+ - ./results:/results
+ ports:
+ - "127.0.0.1:${METER_HOST_PORT:-18080}:8080" # control plane for the orchestrator
+ networks: [bench]
+ healthcheck:
+ test: ["CMD", "wget", "-qO-", "http://127.0.0.1:8080/__bench/health"]
+ interval: 2s
+ timeout: 2s
+ retries: 20
+
+ # One task, one harness, one fresh container. `image` is the task's own image
+ # (an official SWE-bench instance image, or bench-micro); the harness itself is
+ # a bundle built under bundles/ and bind-mounted read-only, so the task image
+ # never has to know which harness is running.
+ task:
+ profiles: ["task"]
+ image: ${TASK_IMAGE:?set by orchestrate.mjs}
+ entrypoint: ["/opt/harness/node/bin/node", "/opt/bench/runner/entry.mjs"]
+ cpus: ${BENCH_CPUS:-4}
+ mem_limit: ${BENCH_MEM:-8g}
+ memswap_limit: ${BENCH_MEM:-8g} # no swap: RAM is a hard, comparable ceiling
+ pids_limit: 4096
+ working_dir: ${WORKDIR:-/testbed}
+ depends_on:
+ meter-proxy:
+ condition: service_healthy
+ networks: [bench]
+ environment:
+ BENCH_HARNESS: ${HARNESS:?}
+ BENCH_TASK_ID: ${TASK_ID:?}
+ WORKDIR: ${WORKDIR:-/testbed}
+ TASK_TIMEOUT_S: ${TASK_TIMEOUT_S:-1800}
+ RESULT_DIR: /results
+ PROMPT_FILE: /bench/task/prompt.txt
+ # Harnesses only ever see the proxy and a dummy credential.
+ PROXY_URL: http://meter-proxy:8080
+ BENCH_MODEL: ${BENCH_MODEL:-deepseek/deepseek-v4-flash}
+ BENCH_REASONING: ${BENCH_REASONING:-medium}
+ DUMMY_API_KEY: bench-dummy-key
+ # No telemetry / update checks from any harness.
+ DISABLE_TELEMETRY: "1"
+ DISABLE_AUTOUPDATER: "1"
+ DO_NOT_TRACK: "1"
+ CI: "1"
+ volumes:
+ - ./.cache/harness/${HARNESS}:/opt/harness:ro
+ - ./runner:/opt/bench/runner:ro
+ - ${TASK_DIR:?}:/bench/task:ro
+ - ./results/${RUN_ID:-dev}/${HARNESS}/${TASK_ID}:/results
+
+ # Task image for the micro suite (fixed, tiny, no per-task env). Same Ubuntu
+ # release as the SWE-bench instance images so one harness bundle runs in both.
+ micro-image:
+ profiles: ["build"]
+ image: bench-micro:latest
+ build:
+ context: ./micro