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 scripts and add OpenHuman adapter
Steven Enamakel4565c2bce5bf
diff --git a/bench/harnesses/bundles/adapters/openhuman-native.sh b/bench/harnesses/bundles/adapters/openhuman-native.shnew file mode 100755index 0000000000..bd9ebf4b17--- /dev/null+++ b/bench/harnesses/bundles/adapters/openhuman-native.sh@@ -0,0 +1,6 @@+#!/usr/bin/env bash+# OpenHuman with provider-native structured tool calls. The product default+# (`python` dispatcher) has the model write calls as text; this variant sends+# tools through the API's `tools` field like the other harnesses do.+export OPENHUMAN_TOOL_DISPATCHER=native+exec "$(dirname "$0")/openhuman-base.sh"diff --git a/bench/harnesses/bundles/build.sh b/bench/harnesses/bundles/build.shindex 418d97570e..b75ecbe0d6 100755--- a/bench/harnesses/bundles/build.sh+++ b/bench/harnesses/bundles/build.sh@@ -1,6 +1,6 @@#!/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+# ./bundles/build.sh claude-code|codex|opencode|openclaw|hermes|openhuman|openhuman-jev|openhuman-nativeset -euo pipefailhere="$(cd "$(dirname "$0")/.." && pwd)"repo="$(cd "$here/../.." && pwd)"@@ -13,7 +13,7 @@ done < "$here/harnesses.lock"image="bench-bundle-$name"case "$name" in- openhuman|openhuman-jev)+ openhuman|openhuman-jev|openhuman-native)docker build -f "$here/bundles/Dockerfile.openhuman" \--build-arg "ADAPTER=adapters/$name.sh" \--build-arg "GIT_SHA=$(git -C "$repo" rev-parse --short HEAD)" \diff --git a/bench/harnesses/bundles/oh-turn.mjs b/bench/harnesses/bundles/oh-turn.mjsindex 555617c341..fc3f7fabca 100644--- a/bench/harnesses/bundles/oh-turn.mjs+++ b/bench/harnesses/bundles/oh-turn.mjs@@ -2,6 +2,7 @@// over JSON-RPC and exit non-zero on a JSON-RPC error. Waits for /health first.// Env: OH_PORT OH_TOKEN PROMPT_FILE PWD DUMMY_API_KEY BENCH_MODEL INFERENCE_URL TASK_TIMEOUT_Simport fs from "node:fs";+import http from "node:http";const base = `http://127.0.0.1:${process.env.OH_PORT}`;const token = process.env.OH_TOKEN;@@ -19,23 +20,43 @@ for (;;) {await new Promise((r) => setTimeout(r, 100));}-const res = await fetch(`${base}/rpc`, {- method: "POST",- headers: { "content-type": "application/json", authorization: `Bearer ${token}` },- signal: AbortSignal.timeout(Number(process.env.TASK_TIMEOUT_S || 1800) * 1000),- body: JSON.stringify({- jsonrpc: "2.0",- id: 1,- method: "openhuman.inference_agent_chat",- params: {- message: fs.readFileSync(process.env.PROMPT_FILE, "utf8"),- cwd: process.env.PWD,- inference_url: process.env.INFERENCE_URL,- api_key: process.env.DUMMY_API_KEY,- model_override: process.env.BENCH_MODEL,+// node:http, not fetch: fetch's undici enforces a 5 min headers timeout, and a+// long agent turn holds the response open far longer than that.+const body = JSON.stringify({+ jsonrpc: "2.0",+ id: 1,+ method: "openhuman.inference_agent_chat",+ params: {+ message: fs.readFileSync(process.env.PROMPT_FILE, "utf8"),+ cwd: process.env.PWD,+ inference_url: process.env.INFERENCE_URL,+ api_key: process.env.DUMMY_API_KEY,+ model_override: process.env.BENCH_MODEL,+ },+});+const text = await new Promise((resolve, reject) => {+ const req = http.request(+ `${base}/rpc`,+ {+ method: "POST",+ headers: { "content-type": "application/json", authorization: `Bearer ${token}`, "content-length": Buffer.byteLength(body) },+ },+ (res) => {+ const chunks = [];+ res.on("data", (c) => chunks.push(c));+ res.on("end", () => resolve(Buffer.concat(chunks).toString("utf8")));+ res.on("error", reject);},- }),+ );+ req.on("error", reject);+ req.end(body);});-const json = await res.json();+let json;+try {+ json = JSON.parse(text);+} catch {+ console.error(text.slice(0, 2000));+ process.exit(1);+}console.log(JSON.stringify(json).slice(0, 4000));process.exit(json.error ? 1 : 0);