The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore(bench): update bundle harness Dockerfile and build script
Steven Enamakel1ba476e0fa69
diff --git a/bench/harnesses/bundles/Dockerfile b/bench/harnesses/bundles/Dockerfilenew file mode 100644index 0000000000..635e267b40--- /dev/null+++ b/bench/harnesses/bundles/Dockerfile@@ -0,0 +1,49 @@+# Harness bundles for the benchmark. Each target produces /opt/harness with:+# node/ Node.js (runner/entry.mjs runs under it in every task container)+# adapter.sh the harness's headless entry point (see adapters/)+# <harness>/ the harness itself+# Built on Ubuntu 22.04 so the bundle runs inside the official SWE-bench+# instance images (also 22.04). `build.sh` extracts /opt/harness to .cache/.+FROM ubuntu:22.04 AS base+ENV DEBIAN_FRONTEND=noninteractive+RUN apt-get update && apt-get install -y --no-install-recommends \+ curl ca-certificates xz-utils git python3 build-essential \+ && rm -rf /var/lib/apt/lists/*+ARG NODE_MAJOR=24+RUN set -eux; mkdir -p /opt/harness/node; \+ base="https://nodejs.org/dist/latest-v${NODE_MAJOR}.x"; \+ file="$(curl -fsSL "$base/SHASUMS256.txt" | awk '/linux-x64.tar.xz/{print $2}')"; \+ curl -fsSL "$base/$file" | tar -xJ --strip-components=1 -C /opt/harness/node; \+ /opt/harness/node/bin/node --version+ENV PATH=/opt/harness/node/bin:$PATH++FROM base AS claude-code+ARG CLAUDE_CODE_VERSION+RUN npm install -g --prefix /opt/harness/claude-code --no-audit --no-fund \+ @anthropic-ai/claude-code@${CLAUDE_CODE_VERSION}+COPY adapters/claude-code.sh /opt/harness/adapter.sh++FROM base AS codex+ARG CODEX_VERSION+RUN npm install -g --prefix /opt/harness/codex --no-audit --no-fund @openai/codex@${CODEX_VERSION}+COPY adapters/codex.sh /opt/harness/adapter.sh++FROM base AS opencode+ARG OPENCODE_VERSION+RUN npm install -g --prefix /opt/harness/opencode --no-audit --no-fund opencode-ai@${OPENCODE_VERSION}+COPY adapters/opencode.sh /opt/harness/adapter.sh++FROM base AS openclaw+ARG OPENCLAW_VERSION+RUN npm install -g --prefix /opt/harness/openclaw --no-audit --no-fund openclaw@${OPENCLAW_VERSION}+COPY adapters/openclaw.sh /opt/harness/adapter.sh++# Hermes ships its own installer, which stages Python and Node. Point HOME at+# the bundle so everything it installs lands under /opt/harness; the adapter+# copies that tree to a writable HOME at run time (counted in its cold start).+FROM base AS hermes+ARG HERMES_VERSION+ENV HOME=/opt/harness/home+RUN mkdir -p "$HOME" && curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash \+ && (/opt/harness/home/.local/bin/hermes --version || true)+COPY adapters/hermes.sh /opt/harness/adapter.shdiff --git a/bench/harnesses/bundles/build.sh b/bench/harnesses/bundles/build.shnew file mode 100755index 0000000000..418d97570e--- /dev/null+++ b/bench/harnesses/bundles/build.sh@@ -0,0 +1,33 @@+#!/usr/bin/env bash+# Build a harness bundle and extract it to .cache/harness/<name>/.+# ./bundles/build.sh claude-code|codex|opencode|openclaw|hermes|openhuman|openhuman-jev+set -euo pipefail+here="$(cd "$(dirname "$0")/.." && pwd)"+repo="$(cd "$here/../.." && pwd)"+name="${1:?usage: build.sh <harness>}"+args=()+while IFS='=' read -r k v; do+ [[ -z "$k" || "$k" == \#* ]] && continue+ args+=(--build-arg "$k=$v")+done < "$here/harnesses.lock"++image="bench-bundle-$name"+case "$name" in+ openhuman|openhuman-jev)+ docker build -f "$here/bundles/Dockerfile.openhuman" \+ --build-arg "ADAPTER=adapters/$name.sh" \+ --build-arg "GIT_SHA=$(git -C "$repo" rev-parse --short HEAD)" \+ -t "$image" "$repo"+ ;;+ *)+ docker build -f "$here/bundles/Dockerfile" --target "$name" "${args[@]}" -t "$image" "$here/bundles"+ ;;+esac++out="$here/.cache/harness/$name"+rm -rf "$out"; mkdir -p "$out"+cid="$(docker create "$image" /bin/true)"+trap 'docker rm -f "$cid" >/dev/null' EXIT+docker cp "$cid:/opt/harness/." "$out/"+chmod +x "$out/adapter.sh"+echo "bundle ready: $out ($(du -sh "$out" | cut -f1))"diff --git a/bench/harnesses/harnesses.lock b/bench/harnesses/harnesses.locknew file mode 100644index 0000000000..e0ec976872--- /dev/null+++ b/bench/harnesses/harnesses.lock@@ -0,0 +1,10 @@+# Pinned harness versions (checked 2026-10-01). Changing a pin changes the+# benchmark: record the new versions in the report. NODE_MAJOR floats to the+# latest 24.x because OpenClaw needs >= 24.16.+NODE_MAJOR=24+CLAUDE_CODE_VERSION=2.1.287+CODEX_VERSION=0.159.3+OPENCODE_VERSION=1.18.34+OPENCLAW_VERSION=2026.9.7+HERMES_VERSION=v2026.9.24+# OpenHuman is built from this checkout (recorded in the report as its git SHA).