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: files changed bench/harnesses/README.md,bench/harnesses/docker-compose.yml,bench/harnesses/ru
Steven Enamakel29905f7d2c80
diff --git a/bench/harnesses/README.md b/bench/harnesses/README.mdindex dce6c2247b..1b26e86be4 100644--- a/bench/harnesses/README.md+++ b/bench/harnesses/README.md@@ -25,7 +25,8 @@ normalised.```docker-compose.yml meter-proxy + the `task` service (limits live here)-meter-proxy/ wire parsers (chat / Anthropic / Responses), pricing, proxy+meter-proxy/ wire parsers (chat / Anthropic / Responses), pricing, proxy, capture+viewer/ zero-dependency web UI over results/ (prompts, tools, cache diagnostics)runner/ in-container entry (cgroup CPU/RAM sampler, patch capture, check)bundles/ per-harness build (/opt/harness) + adapters/*.sh headless entry pointstasks/micro.mjs 5-task micro suite generator@@ -64,6 +65,27 @@ node report.mjs --run-id swe-1Harnesses run one at a time on purpose: two harnesses sharing the host wouldcontend for CPU and distort the CPU and latency columns.+## Seeing what each harness sends++The proxy sits between every harness and OpenRouter, so it records the request as the+harness built it (before model/reasoning are pinned). Per run, under+`results/<run>/captures/`: one JSON per call (`<harness>/<task>/<seq>.json`) holding the+sampling parameters, headers (credentials dropped), `cache_control` marker count, any+`prompt_cache_key`, the raw response, and, for caching, whether the system prompt and tool+list matched the previous call and how many earlier messages were re-sent byte-for-byte.+System prompts, tool schemas and messages are stored once each in `captures/blobs/`, so a long+task costs the system prompt once. `METER_CAPTURE=0` turns it off.++```bash+node viewer/server.mjs # http://127.0.0.1:8787, read-only, loopback, reads files on demand+node viewer/server.mjs --port 9000 --results /path/to/results+./run-deepseek.sh # DeepSeek harness (minimal + full) micro suite, one at a time+```++The viewer shows per-harness aggregates (tokens, cache %, cost, system-prompt and tool-schema+size, rejected overrides), the system prompt each harness actually sent, tool schemas, every+call's cache diagnostics, the conversation, and the provider's raw response.+## Charts```bashdiff --git a/bench/harnesses/docker-compose.yml b/bench/harnesses/docker-compose.ymlindex 3f33f4aa41..580a1babd0 100644--- a/bench/harnesses/docker-compose.yml+++ b/bench/harnesses/docker-compose.yml@@ -20,6 +20,8 @@ services:build:context: ./meter-proxyuser: "${BENCH_UID:-1000}:${BENCH_GID:-1000}" # results/ stays owned by the invoking user+ cpus: 1 # the proxy only forwards and hashes; keep it off the harness's CPU budget+ mem_limit: 512menvironment:OPENROUTER_API_KEY: ${OPENROUTER_API_KEY:?set OPENROUTER_API_KEY (env or .env)}BENCH_MODEL: ${BENCH_MODEL:-deepseek/deepseek-v4-flash}diff --git a/bench/harnesses/run-deepseek.sh b/bench/harnesses/run-deepseek.shnew file mode 100755index 0000000000..ceed2a3a4b--- /dev/null+++ b/bench/harnesses/run-deepseek.sh@@ -0,0 +1,19 @@+#!/usr/bin/env bash+# Bench the DeepSeek harness (full `sdk` profile and the `sdk-minimal` mini profile) on its own,+# sequentially, with the same container limits as every other harness. One task container and+# one proxy at a time, so the box carries a single harness plus a 512 MB proxy.+#+# ./run-deepseek.sh [run-id] # micro suite, 1 repeat+# SUITE=swe TASKS_DIR=tasks/generated/swe ./run-deepseek.sh swe-ds+# BENCH_CPUS=2 BENCH_MEM=4g ./run-deepseek.sh # lighter box (changes comparability: say so in the report)+set -euo pipefail+cd "$(dirname "$0")"+run_id="${1:-deepseek-$(date +%Y%m%d-%H%M)}"+export BENCH_UID="$(id -u)" BENCH_GID="$(id -g)"+for h in deepseek-harness-minimal deepseek-harness; do+ [ -d ".cache/harness/$h" ] || ./bundles/build.sh "$h"+ node orchestrate.mjs --harness "$h" --suite "${SUITE:-micro}" --run-id "$run_id" --repeat "${REPEAT:-1}" \+ ${TASKS_DIR:+--tasks-dir "$TASKS_DIR"}+done+node report.mjs --run-id "$run_id"+echo "inspect prompts and cache behaviour: node viewer/server.mjs -> http://127.0.0.1:8787/#/run/$run_id"