Skip to content

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

chore(harnesses): add PROMPTS.md and haiku-run summary

Steven Enamakelf432d34a91bc
diff --git a/bench/harnesses/PROMPTS.md b/bench/harnesses/PROMPTS.md
index 0832d54ff0..e712453711 100644
--- a/bench/harnesses/PROMPTS.md
+++ b/bench/harnesses/PROMPTS.md
@@ -159,3 +159,41 @@ loop, deferred-tool mechanics and generic tools belong upstream in `vendor/tinya
- Cache percentages are from DeepSeek automatic prefix caching via OpenRouter, so they say
nothing about Anthropic `cache_control` effectiveness.
- Token figures are the proxy's `usage.prompt_tokens`; char counts are from the captured blobs.
+
+## Follow-up capture: Claude Haiku 4.5 (run `prompts-haiku-1`)
+
+Same micro suite, one repeat, `BENCH_MODEL=anthropic/claude-haiku-4.5`, provider pinned to
+Anthropic via OpenRouter. Full table: [`prompts/_haiku-run/summary.md`](prompts/_haiku-run/summary.md).
+Single run, five tiny tasks: indicative only.
+
+**Prompt caching is the big difference once the model is Anthropic.** Anthropic does not cache
+automatically; it needs `cache_control` breakpoints.
+
+| harness | `cache_control` markers | cached / prompt tokens |
+|---|---|---|
+| claude-code | 3 | 334.9k / 372.4k (90%) |
+| opencode | 3 | 159.4k / 176.9k (90%) |
+| openhuman | 0 (has `prompt_cache_key`) | 0 / 112.7k |
+| codex | 0 (has `prompt_cache_key`) | 0 / 193.9k |
+| openclaw | 0 | 0 / 190.6k |
+| hermes | 0 | 0 / 224.2k |
+| deepseek-harness | 0 | 0 / 41.6k |
+
+So the ~97% cache rates in the DeepSeek run do not transfer: five of seven harnesses, openhuman
+included, pay full price for the whole static prefix on every call against Anthropic models.
+openhuman's stable `prompt_cache_key` does nothing here. Adding breakpoints (system prompt end,
+last tool, last message) for Anthropic-routed models is the highest-value follow-up; it is
+harness-level, so upstream in `vendor/tinyagents` (prompt cache layout) per CLAUDE.md. claude-code
+and opencode place 3 markers; copy that layout.
+
+Other observations:
+- Static prefix (system + tools, tokens): deepseek-harness 6.2k, openhuman 6.5k, opencode 6.6k,
+ codex 7.7k, openclaw 7.6k, hermes 11.5k, claude-code 20.5k. openhuman's system prompt is
+ ~0.9k tokens; 86% of its prefix is tool schemas (5.6k).
+- claude-code spends 74.7k tokens per solved task, still the highest, even at 90% cache hit.
+- deepseek-harness had 5 of 10 calls rejected (and 1/5 checks): it requests `max_tokens` of
+ 256000 against a 200k-context model ("you requested about 263516 tokens ... 256000 in the
+ output"). A harness must clamp output caps to the routed model's context window.
+- hermes: 29.6s p50 wall, 22.7s cold start, 6.45 GB peak RAM incl. page cache.
+- openhuman passed 4/5 checks vs 5/5 for claude-code, codex, opencode, openclaw and hermes; I
+ did not investigate which check failed, so treat it as open.
diff --git a/bench/harnesses/prompts/_haiku-run/summary.md b/bench/harnesses/prompts/_haiku-run/summary.md
new file mode 100644
index 0000000000..560b978d72
--- /dev/null
+++ b/bench/harnesses/prompts/_haiku-run/summary.md
@@ -0,0 +1,30 @@
+# Harness benchmark: prompts-haiku-1
+
+model `anthropic/claude-haiku-4.5`, reasoning `high`, 4 vCPU / 8g per task, suite `micro`.
+
+| metric | openhuman | claude-code | codex | opencode | openclaw | hermes | deepseek-harness |
+|---|---|---|---|---|---|---|---|
+| resolved (SWE) / checks passed | **4/5 checks** 🟑 | **5/5 checks** 🟒 | **5/5 checks** 🟒 | **5/5 checks** 🟒 | **5/5 checks** 🟒 | **5/5 checks** 🟒 | **1/5 checks** πŸ”΄ |
+| patch produced | 4/5 | 4/5 | 4/5 | 4/5 | 4/5 | 4/5 | 0/5 |
+| harness errors / timeouts (all tasks) | 0 / 0 | 0 / 0 | 0 / 0 | 0 / 0 | 0 / 0 | 0 / 0 | 0 / 0 |
+| system prompt tokens | **925** 🟑 | 5,635 | 4,049 | 1,883 | **5,648** πŸ”΄ | 2,726 | **890** 🟒 |
+| tool schema tokens (count) | 5,572 (31) | **14.8k (20)** πŸ”΄ | **3,616 (9)** 🟑 | 4,707 (10) | **1,990 (11)** 🟒 | 8,789 (24) | 5,279 (25) |
+| static prompt total (system + tools) | **6,497** 🟑 | **20.5k** πŸ”΄ | 7,665 | 6,590 | 7,638 | 11.5k | **6,169** 🟒 |
+| cost / solved task | $0.03 | **$0.02** 🟑 | $0.04 | **$0.01** 🟒 | $0.04 | **$0.05** πŸ”΄ | $0.05 |
+| tokens / solved task | **28.6k** 🟒 | **74.7k** πŸ”΄ | 39.1k | **36.8k** 🟑 | 38.8k | 46.0k | 43.2k |
+| total cost (all tasks) | $0.12 | $0.08 | $0.20 | **$0.07** 🟑 | $0.21 | **$0.25** πŸ”΄ | **$0.05** 🟒 |
+| cache hit % (solved tasks) | **0.0%** πŸ”΄ | **89.9%** 🟑 | **0.0%** πŸ”΄ | **90.1%** 🟒 | **0.0%** πŸ”΄ | **0.0%** πŸ”΄ | **0.0%** πŸ”΄ |
+| TTFT p50 (solved tasks) | **1.64 s** πŸ”΄ | 1.15 s | 1.23 s | 1.11 s | **1.04 s** 🟑 | 1.14 s | **941 ms** 🟒 |
+| LLM call latency p50 (solved tasks) | **1.64 s** 🟑 | **1.59 s** 🟒 | 1.88 s | 2.23 s | **2.30 s** πŸ”΄ | 2.11 s | 2.23 s |
+| task wall p50 (solved tasks) | 9.50 s | **5.70 s** 🟑 | 6.68 s | 8.51 s | 17.5 s | **29.6 s** πŸ”΄ | **4.24 s** 🟒 |
+| cold start to first call p50 (solved tasks) | 2.75 s | **294 ms** 🟑 | **168 ms** 🟒 | 1.13 s | 8.35 s | **22.7 s** πŸ”΄ | 1.55 s |
+| CPU time / solved task | **899 ms** 🟑 | **602 ms** 🟒 | 1.31 s | 6.62 s | **10.3 s** πŸ”΄ | 9.11 s | 1.45 s |
+| peak RAM, process memory (solved tasks) | **74 MB** 🟒 | **122 MB** 🟑 | 251 MB | 724 MB | **1.18 GB** πŸ”΄ | 301 MB | 185 MB |
+| peak RAM incl. page cache (all tasks) | **375 MB** 🟑 | **309 MB** 🟒 | 473 MB | 968 MB | 1.72 GB | **6.45 GB** πŸ”΄ | 450 MB |
+| avg RAM (all tasks) | **210 MB** 🟒 | **226 MB** 🟑 | 357 MB | 720 MB | 925 MB | **3.52 GB** πŸ”΄ | 334 MB |
+| side / sub-agent calls (failed) | 0 of 13 (0) | 0 of 14 (0) | 0 of 17 (0) | 5 of 25 (0) | 0 of 19 (0) | 4 of 19 (0) | 0 of 10 (0) |
+| side / sub-agent share of tokens | 0.0% | 0.0% | 0.0% | 4.0% | 0.0% | 2.5% | 0.0% |
+| LLM calls (errors) | 13 (0) | 14 (0) | 17 (0) | 25 (0) | 19 (0) | 19 (0) | 10 (5) |
+| prompt / completion tokens | 112.7k / 1,683 | 372.4k / 1,102 | 193.9k / 1,607 | 176.9k / 7,175 | 190.6k / 3,524 | 224.2k / 5,783 | 41.6k / 1,647 |
+
+Per-task KPIs are measured over each harness's own solved tasks (resolved by the grader, or the task check on the micro suite); cost / solved task is total spend, failed attempts included, divided by tasks solved. Small samples: treat differences as indicative, not a ranking. CPU/RAM are cgroup-wide per container; process memory is the cgroup's anon bytes (2 Hz poll), the page-cache figure is the kernel high-water mark. Cache % = cached / prompt tokens across all calls.