Skip to content

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

chore(bench): add new prompt harnesses and update report generation

Steven Enamakelc20169c3eda9
diff --git a/bench/harnesses/PROMPTS.md b/bench/harnesses/PROMPTS.md
index e712453711..0cb224f796 100644
--- a/bench/harnesses/PROMPTS.md
+++ b/bench/harnesses/PROMPTS.md
@@ -31,7 +31,7 @@ cache hit rate is ~95%+ everywhere after call 1. Cache is not where they differ;
2. **Niche tools shipped every turn are the main waste.** claude-code: ~21k of 28.5k description
chars are rarely used tools (SendMessage 4.3k, Workflow 3.5k, ScheduleWakeup 3.4k,
EnterWorktree 3.2k, CronCreate 2.9k). codex: `multi_agent_v1` is about half of tool bytes
- (`spawn_agent` 6.7k). openhuman: ~7k chars workflow tools + 1.5k juice + 3 overlapping
+ (`spawn_agent` 6.7k). openhuman: ~6.0k chars workflow tools + 1.5k juice + 3 overlapping
memory tools. opencode: `task`/`todowrite` unused in a one-step task. Fix: lazy-load by
capability or intent, not a flat catalog.
3. **Lazy tool loading exists in three harnesses, all with the same shape**
@@ -134,7 +134,7 @@ cache hit rate is ~95%+ everywhere after call 1. Cache is not where they differ;
message that "supersedes earlier snapshots" (deepseek-harness / codex shape), so the model
needn't spend a call on `pwd` and the prefix stays cached.
5. **Fix prompt/tool drift:** `memory_search` named in the prompt but absent; rename
- `apply_patch` (or support the diff format); ban em-dashes in the prompt vs ~20 tool
+ `apply_patch` (or support the diff format); ban em-dashes in the prompt vs 8 tool
descriptions using them. Add a CI check that every tool named in the prompt exists in the
schema list (would have caught codex's, hermes' and openhuman's bugs).
6. **Shell tool:** add background/yield + poll, `cwd`, truncate-to-file with path, and prefix
@@ -181,10 +181,11 @@ automatically; it needs `cache_control` breakpoints.
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.
+openhuman's stable `prompt_cache_key` does nothing here. That is this run's observation, before
+the fix: tinyinference now adds `cache_control` breakpoints for Anthropic-family model ids on every
+OpenAI-compatible gateway (tinyhumansai/tinyinference#52), pulled in through tinyagents#273. Not yet
+re-measured end to end; claude-code and opencode place 3 markers (system, last tool/system, last
+user), the layout this change follows.
Other observations:
- Static prefix (system + tools, tokens): deepseek-harness 6.2k, openhuman 6.5k, opencode 6.6k,
diff --git a/bench/harnesses/prompts/_haiku-run/summary.md b/bench/harnesses/prompts/_haiku-run/summary.md
index 560b978d72..573e85d5e1 100644
--- a/bench/harnesses/prompts/_haiku-run/summary.md
+++ b/bench/harnesses/prompts/_haiku-run/summary.md
@@ -27,4 +27,4 @@ model `anthropic/claude-haiku-4.5`, reasoning `high`, 4 vCPU / 8g per task, suit
| 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.
+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 the calls of a harness's solved tasks.
diff --git a/bench/harnesses/prompts/claude-code/analysis.md b/bench/harnesses/prompts/claude-code/analysis.md
index 54e9f941d7..0133113b45 100644
--- a/bench/harnesses/prompts/claude-code/analysis.md
+++ b/bench/harnesses/prompts/claude-code/analysis.md
@@ -31,7 +31,7 @@ Sizes (desc_chars/schema_chars): Agent 1668/1510, Bash 1407/1721, CronCreate 292
## 5. Caching/context layout
- params.json: `cache_control_markers: 3`, `prompt_cache_key: null` (Anthropic style explicit markers, last marker on the trailing `<total_tokens>` system block: `"cache_control":{"type":"ephemeral"}`). Beta `prompt-caching-scope-2026-01-05`.
-- calls: all 4 calls `same_sys: true`, `same_tools: true`. cached_tokens: seq12 0/15,271 (cold), seq13 14,720/15,478 (95.1%), seq14 14,848/15,669 (94.8%), seq15 14,848/15,777 (94.1%). cache_write_tokens reported 0 (proxy/deepseek does not report it). Cost drops 0.00468 -> 0.00046 USD (10x).
+- calls: seq 12 is the first call (no prior call to compare, `same_sys`/`same_tools` null); the three later calls (seq 13-15) have `same_sys: true`, `same_tools: true`. cached_tokens: seq12 0/15,271 (cold), seq13 14,720/15,478 (95.1%), seq14 14,848/15,669 (94.8%), seq15 14,848/15,777 (94.1%). cache_write_tokens reported 0 (proxy/deepseek does not report it). Cost drops 0.00468 -> 0.00046 USD (10x).
- Static-first: system -> tools -> mid-conv system env block -> user reminders. Volatile bits (git status, token counter, env) deliberately kept out of system.txt so system+tools prefix is stable. Risk: the `<total_tokens>` counter changes every turn, but it is appended at the tail so it only busts the last segment (marker moves with it). Env block has `Platform`, model name: stable within session.
- Prefix reuse "1/2, 4/5, 7/8" = every message of previous call reused except the newest.
diff --git a/bench/harnesses/prompts/claude-code/params.json b/bench/harnesses/prompts/claude-code/params.json
index 52c5f344f6..5c05cfc79a 100644
--- a/bench/harnesses/prompts/claude-code/params.json
+++ b/bench/harnesses/prompts/claude-code/params.json
@@ -2,7 +2,7 @@
"params": {
"model": "deepseek/deepseek-v4.1-flash",
"metadata": {
- "user_id": "{\"device_id\":\"05fefb1f2329cfe012af8b772e7400e776014274284f839793f68ec83c91dedb\",\"account_uuid\":\"\",\"session_id\":\"993bb523-92d8-415e-b9bd-bbab91591501\"}"
+ "user_id": "{\"device_id\":\"<redacted>\",\"account_uuid\":\"\",\"session_id\":\"<redacted>\"}"
},
"max_tokens": 32000,
"thinking": {
diff --git a/bench/harnesses/prompts/codex/analysis.md b/bench/harnesses/prompts/codex/analysis.md
index 179ff56573..7197d4c0c3 100644
--- a/bench/harnesses/prompts/codex/analysis.md
+++ b/bench/harnesses/prompts/codex/analysis.md
@@ -19,6 +19,7 @@ All of the following lives in `instructions` (system.txt); lines refer to system
| 10 | `# Tool Guidelines` / `## Shell commands` (L187-194) | 0.4k | static |
| 11 | `<skills_instructions>` (L197-207) | 2.0k | per-install (skill list, root `/tmp/bench-home/.codex/skills/.system`) |
| 12 | `<permissions instructions>` (L208-211) | 0.4k | per-run config (sandbox/approval) |
+
Sections 11-12 appear at the tail of system.txt AND as the first `developer` input message (msg 3799a981), i.e. captured system.txt is instructions+developer-message merged for display; on the wire they are input items.
Per-session volatile context goes in the first user message, not the system prompt: `<environment_context><cwd>/work</cwd><shell>bash</shell><current_date>2026-10-02</current_date><timezone>Etc/UTC</timezone>...` then the real task as a separate user message. Message order: developer(skills+permissions) -> user(env context) -> user(task).
Model-facing metadata (turn_id, installation id, git hash) goes in `client_metadata`/headers, not in the prompt (good for caching).
diff --git a/bench/harnesses/prompts/codex/tool-table.json b/bench/harnesses/prompts/codex/tool-table.json
index e824696a30..0d1d3c13a1 100644
--- a/bench/harnesses/prompts/codex/tool-table.json
+++ b/bench/harnesses/prompts/codex/tool-table.json
@@ -1,6 +1,7 @@
[
{
"name": "exec_command",
+ "type": "function",
"desc_chars": 82,
"params": 10,
"required": 1,
@@ -8,6 +9,7 @@
},
{
"name": "write_stdin",
+ "type": "function",
"desc_chars": 80,
"params": 4,
"required": 1,
@@ -15,6 +17,7 @@
},
{
"name": "request_user_input",
+ "type": "function",
"desc_chars": 120,
"params": 1,
"required": 1,
@@ -22,6 +25,7 @@
},
{
"name": "view_image",
+ "type": "function",
"desc_chars": 124,
"params": 1,
"required": 1,
@@ -29,13 +33,22 @@
},
{
"name": "multi_agent_v1",
- "desc_chars": 43,
- "params": 0,
- "required": 0,
- "schema_chars": 2
+ "type": "namespace",
+ "desc_chars": 5930,
+ "params": 13,
+ "required": 4,
+ "schema_chars": 9812,
+ "nested_tools": [
+ "close_agent",
+ "resume_agent",
+ "send_input",
+ "spawn_agent",
+ "wait_agent"
+ ]
},
{
"name": "get_goal",
+ "type": "function",
"desc_chars": 122,
"params": 0,
"required": 0,
@@ -43,6 +56,7 @@
},
{
"name": "create_goal",
+ "type": "function",
"desc_chars": 265,
"params": 2,
"required": 1,
@@ -50,15 +64,18 @@
},
{
"name": "update_goal",
+ "type": "function",
"desc_chars": 1541,
"params": 1,
"required": 1,
"schema_chars": 536
},
{
+ "name": "web_search",
+ "type": "web_search",
"desc_chars": 0,
"params": 0,
"required": 0,
- "schema_chars": 2
+ "schema_chars": 28
}
]
\ No newline at end of file
diff --git a/bench/harnesses/prompts/deepseek-harness/params.json b/bench/harnesses/prompts/deepseek-harness/params.json
index 248e9079e3..3cdba5a96b 100644
--- a/bench/harnesses/prompts/deepseek-harness/params.json
+++ b/bench/harnesses/prompts/deepseek-harness/params.json
@@ -336,7 +336,7 @@
"content-type": "application/json",
"accept": "text/event-stream",
"user-agent": "deepseek-harness/0.1.5-rc.1 (+https://github.com/deepseek-ai/deepseek-harness)",
- "x-deepseek-harness-user-id": "147adf17-973f-4a00-bfd7-584effb1a173",
+ "x-deepseek-harness-user-id": "<redacted>",
"x-deepseek-harness-session-id": "bench-1",
"accept-language": "*",
"sec-fetch-mode": "cors"
diff --git a/bench/harnesses/prompts/hermes/analysis.md b/bench/harnesses/prompts/hermes/analysis.md
index 518e5d96c8..63bbec5977 100644
--- a/bench/harnesses/prompts/hermes/analysis.md
+++ b/bench/harnesses/prompts/hermes/analysis.md
@@ -26,8 +26,10 @@ Consequence: the m1/m2/m4 runs get no read-before-edit / run-tests / don't-commi
| 12 | Terminal/CLI formatting + cron note | 870 |
| 13 | `## Skills` index (~70 skills, 16 categories) | 5733 |
| 14 | Active profile / date / model / host / cwd / scratch dir | ~810 |
+
Tools: 40968 chars compact JSON (~10k tokens) vs ~5k tokens system. Request ~14.4k prompt tokens on call 1, so tools+system dominate.
-Static vs volatile: sections 1-9, 12, 13 static; 10-11 per-repo (git branch/commits/status), 14 per-session (`Conversation started: Friday, October 02, 2026 (UTC, UTC+00:00)`, model, cwd). Volatile bits are placed at the END of the system prompt, after the biggest static chunk (skills) - good. The user message carries no injected env/reminders (message is just the task text: `The tests in test_calc.py fail. Fix calc.py so ...`).
+
+Static vs volatile: sections 1-9, 12, 13 static; 10-11 per-repo (git branch/commits/status), 14 per-session (`Conversation started: Friday, October 02, 2026 (UTC, UTC+00:00)`, model, cwd). Only the per-session block (14) sits at the END of the system prompt, after the skills index; the per-repo workspace snapshot (11) sits before the skills index, inside the static region. The user message carries no injected env/reminders (message is just the task text: `The tests in test_calc.py fail. Fix calc.py so ...`).
## 2. Instruction style
- Tone: terse senior-engineer, imperative with hard negatives: `NEVER substitute plausible-looking fabricated output`, `Do NOT print code blocks to the user as a substitute for editing`, `Never invent files, symbols, APIs, or imports`.
@@ -64,7 +66,7 @@ schema_chars (tool-table.json desc/schema): terminal 2075/2574 (heaviest in comb
- Provider auto prefix caching (DeepSeek); no `cache_control` markers (`cache_control_markers: 0`), no `prompt_cache_key` (null). No explicit cache steering at all.
- calls.json (m5, 4 main calls, seq 19-22): system sha and tools sha identical across them (`same_sys: true`, `same_tools: true`), `prefix_reused` 1/1, 4/4, 6/6 (full message-prefix reuse, append-only history).
- cached_tokens / prompt_tokens: seq19 2560/14408 (18%, cold - first request of this new system hash, so only a short prefix from other runs hit), seq20 14336/14744 (97%), seq21 14720/14899 (99%), seq22 14848/14996 (99%). Cost fell from $0.00367 to $0.00018 per call. For m2-read (the 17084 variant) call 1 was already 13568/13710 (99%) because that prefix was warm.
-- Volatile items that bust cross-session cache: the git Workspace snapshot (branch/status/commits) and `Conversation started: Friday, October 02, 2026` (date only, no clock time) - both in the system tail after skills. Because the system hash differs for variant A/B, the tools block (after system in DeepSeek's prefix order: system -> tools -> messages) is never shared across variants despite identical tools_sha; the tools come after system in the serialized prompt so any system change invalidates the whole 10k-token tools block. Putting the volatile workspace/date in the first user message would let system+tools cache cross-variant.
+- Volatile items that bust cross-session cache: the git Workspace snapshot (branch/status/commits, before the skills index) and `Conversation started: Friday, October 02, 2026` (date only, no clock time, at the system tail). The two variants differ by the coding-agent block + snapshot (sections 10-11) which is inserted before the skills index, so everything after it (skills index, session block) and the tools block (system -> tools -> messages in DeepSeek's prefix order) is not shared across variants even though tools_sha is identical. Moving only the snapshot/date to a user message would not make the system prompts identical (the coding-agent block exists in one variant only); a cross-variant cache fix needs the variant-specific block placed after the shared prefix, or moved out of the system prompt entirely.
- The prompt says skill content is loaded lazily (`load one with skill_view(name) only when it carries domain knowledge you lack`), so only the index (5733 chars) is in the prefix.
## 6. Planning / todo / subagents / memory / skills / safety
@@ -77,8 +79,8 @@ schema_chars (tool-table.json desc/schema): terminal 2075/2574 (heaviest in comb
## 7. Aux call: aux-system-0.txt (seq 23, 942 chars, title generation)
- Separate request, NO tools (`tool_count: 0`), `reasoning_effort: 'none'`, `response_format` json_schema `session_title` with `"strict": True`, schema {title: string}, additionalProperties false. User message is the same first user message (same blob a0966a1b1343eaff) - i.e. title is generated from the opening message.
- Prompt style: rules list + Good/Too vague/Too long examples + `Reply with JSON only: {"title": "..."}`. Quotes: `3 to 7 words, sentence case`, `Name what the user wants DONE, not that they asked a question.`, `Never answer the message. Name it.`, `Always produce something, even for a bare greeting.`, `Write the title in the same language as the user's message.`
-- Result: HTTP 404 `No endpoints found for deepseek/deepseek-v4.1-flash. Every candidate endpoint was removed during routing: Filter by Parameters removed ... deepseek` - OpenRouter dropped every provider because none supports the strict json_schema response_format on this model. The title call fails silently (cost null); harmless to the main loop but it is a wasted request each session, and the aux model equals the main model (no cheap-model split visible here). Does not share the main cache prefix (942-char own system, no tools).
-- Idea worth copying: cheap background titling with a tight prompt; avoid: requiring strict json_schema without a fallback to plain-JSON parsing.
+- Result: HTTP 404 `No endpoints found for deepseek/deepseek-v4.1-flash. Every candidate endpoint was removed during routing: Filter by Parameters removed ... deepseek` - OpenRouter's routing removed every candidate endpoint after parameter filtering and fallback filtering; the error does not say which parameter (`response_format` json_schema with `strict`, or `reasoning_effort: none`, are the candidates) and that is unconfirmed. The title call fails silently (cost null); harmless to the main loop but it is a wasted request each session, and the aux model equals the main model (no cheap-model split visible here). Does not share the main cache prefix (942-char own system, no tools).
+- Idea worth copying: cheap background titling with a tight prompt; avoid: an aux request with no fallback when routing finds no endpoint (confirm which request parameter is rejected before dropping strict json_schema).
## 8. Worth copying vs wasteful
Copy:
diff --git a/bench/harnesses/prompts/hermes/aux-system-0.txt b/bench/harnesses/prompts/hermes/aux-system-0.txt
index 37cf676a41..8125ad3166 100644
--- a/bench/harnesses/prompts/hermes/aux-system-0.txt
+++ b/bench/harnesses/prompts/hermes/aux-system-0.txt
@@ -1 +1,18 @@
-"You name chat sessions. Given the user's opening message, write a title that lets them find this conversation again in a list.\n\nRules:\n- 3 to 7 words, sentence case (capitalize only the first word and proper nouns).\n- Name what the user wants DONE, not that they asked a question.\n- Keep technical terms, filenames, numbers, and error codes exact.\n- Drop filler words: the, this, my, a, an.\n- No trailing punctuation, no quotes, no tool names, no 'Title:' prefix.\n- Never answer the message. Name it.\n- Always produce something, even for a bare greeting.\n- Write the title in the same language as the user's message.\nGood: {\"title\": \"Fix login button on mobile\"}\nGood: {\"title\": \"Postgres connection pool exhaustion\"}\nGood: {\"title\": \"Friendly greeting\"}\nToo vague: {\"title\": \"Code changes\"}\nToo long: {\"title\": \"Investigate and fix the issue where the login button does not respond on mobile devices\"}\n\nReply with JSON only: {\"title\": \"...\"}"
\ No newline at end of file
+You name chat sessions. Given the user's opening message, write a title that lets them find this conversation again in a list.
+
+Rules:
+- 3 to 7 words, sentence case (capitalize only the first word and proper nouns).
+- Name what the user wants DONE, not that they asked a question.
+- Keep technical terms, filenames, numbers, and error codes exact.
+- Drop filler words: the, this, my, a, an.
+- No trailing punctuation, no quotes, no tool names, no 'Title:' prefix.
+- Never answer the message. Name it.
+- Always produce something, even for a bare greeting.
+- Write the title in the same language as the user's message.
+Good: {"title": "Fix login button on mobile"}
+Good: {"title": "Postgres connection pool exhaustion"}
+Good: {"title": "Friendly greeting"}
+Too vague: {"title": "Code changes"}
+Too long: {"title": "Investigate and fix the issue where the login button does not respond on mobile devices"}
+
+Reply with JSON only: {"title": "..."}
diff --git a/bench/harnesses/prompts/openclaw/analysis.md b/bench/harnesses/prompts/openclaw/analysis.md
index c0f848c3a2..27feb664b9 100644
--- a/bench/harnesses/prompts/openclaw/analysis.md
+++ b/bench/harnesses/prompts/openclaw/analysis.md
@@ -66,6 +66,7 @@ Danger: compression leaves ambiguity ("Up-front max one." "Promote = restate sch
| write | 49 | 191 | 2 (2) |
| apply_patch | 71 | 153 | 1 (1) |
| tool_describe | 92 | 125 | 1 (1) |
+
Total 5,917 chars of schema JSON as tabulated; tools.json is 12,100 on disk (pretty-printed).
- Heaviest: exec, process, tool_search (3.5k of ~5.9k). The visible set is cheap: edit/write/apply_patch/read/ls total ~1.6k chars.
- Lazy loading is the central design: 30 deferred tools are named in the system prompt (not in tools[]), reached via
diff --git a/bench/harnesses/prompts/opencode/analysis.md b/bench/harnesses/prompts/opencode/analysis.md
index 957954e972..3deb0603d5 100644
--- a/bench/harnesses/prompts/opencode/analysis.md
+++ b/bench/harnesses/prompts/opencode/analysis.md
@@ -61,7 +61,7 @@ Total request prompt = 7370 tokens for first main call, of which system ~2.4k an
| write | 623 | 317 (1051) | content, filePath (2) | |
| glob | 517 | 510 (1138) | pattern, path | |
| skill | 399 | 194 (695) | name | |
-Total 21124 chars. Descriptions are 15-20x larger than param schemas: policy lives in descriptions (bash has 4.6k chars; ~22% of tool bytes, ~1.2k tok).
+Total 21124 chars. Descriptions are larger than the param schemas, by 1.0x (glob) to 9.4x (bash, 4,628 vs 492 chars); policy lives in descriptions (bash has 4.6k chars; ~22% of tool bytes, ~1.2k tok).
- Names: lowercase single words; camelCase params (filePath, oldString, newString, replaceAll).
- Edit primitive: exact str-replace, `replaceAll` bool; errors spelled out ("oldString not found in content", "Found multiple matches...") so the model can self-correct. Whole-file `write` is separate.
- Shell: persistent session, `timeout` ms (default 120000), `workdir` param to avoid `cd &&`; output truncation >2000 lines/51200 bytes saved to file, read with Read offset/limit. No background/pty flag. Schema has silly bounds `minimum: -9007199254740991, maximum: 9007199254740991` on integers (zod defaults, wasted tokens, repeated in read offset/limit).
@@ -73,7 +73,7 @@ Total 21124 chars. Descriptions are 15-20x larger than param schemas: policy liv
## 5. Caching / context layout
- Order: system (static first, env/skills last) -> tools -> messages. Tool order is stable (alphabetical: bash, edit, glob, grep, read, skill, task, todowrite, webfetch, write).
- No cache_control markers (0), no prompt_cache_key (null). Relies on provider automatic prefix caching plus session headers
- `x-session-affinity` / `x-session-id` / `x-opencode-session-id` (same value) to pin the same backend. Smart: affinity header serves cache without explicit keys.
+ `x-session-affinity` / `x-session-id` / `x-opencode-session-id` (same value). Observation only: the headers carry one value and the prefix cache is reused across calls; the capture does not show that the headers cause backend affinity or the cache hits.
- Measured (calls.json): seq16 prompt 7370, cached 0; seq17 7662 / cached 7424 (96.9%); seq18 7797 / 7552 (96.9%); seq19 7869 / 7680 (97.6%).
same_system=true, same_tools=true, prefix_reused 1/1, 4/4, 6/6 messages. Cost fell from $0.00231 to $0.00026/call.
- Cache ratio is block-quantised (7424 = 58*128); the uncached remainder is just the new messages.
diff --git a/bench/harnesses/prompts/opencode/aux-system-0.txt b/bench/harnesses/prompts/opencode/aux-system-0.txt
index 1ddbd8ac0b..62960b2c47 100644
--- a/bench/harnesses/prompts/opencode/aux-system-0.txt
+++ b/bench/harnesses/prompts/opencode/aux-system-0.txt
@@ -1 +1,44 @@
-"You are a title generator. You output ONLY a thread title. Nothing else.\n\n<task>\nGenerate a brief title that would help the user find this conversation later.\n\nFollow all rules in <rules>\nUse the <examples> so you know what a good title looks like.\nYour output must be:\n- A single line\n- ≤50 characters\n- No explanations\n</task>\n\n<rules>\n- you MUST use the same language as the user message you are summarizing\n- Title must be grammatically correct and read naturally - no word salad\n- Never include tool names in the title (e.g. \"read tool\", \"bash tool\", \"edit tool\")\n- Focus on the main topic or question the user needs to retrieve\n- Vary your phrasing - avoid repetitive patterns like always starting with \"Analyzing\"\n- When a file is mentioned, focus on WHAT the user wants to do WITH the file, not just that they shared it\n- Keep exact: technical terms, numbers, filenames, HTTP codes\n- Remove: the, this, my, a, an\n- Never assume tech stack\n- Never use tools\n- NEVER respond to questions, just generate a title for the conversation\n- The title should NEVER include \"summarizing\" or \"generating\" when generating a title\n- DO NOT SAY YOU CANNOT GENERATE A TITLE OR COMPLAIN ABOUT THE INPUT\n- Always output something meaningful, even if the input is minimal.\n- If the user message is short or conversational (e.g. \"hello\", \"lol\", \"what's up\", \"hey\"):\n → create a title that reflects the user's tone or intent (such as Greeting, Quick check-in, Light chat, Intro message, etc.)\n</rules>\n\n<examples>\n\"debug 500 errors in production\" → Debugging production 500 errors\n\"refactor user service\" → Refactoring user service\n\"why is app.js failing\" → app.js failure investigation\n\"implement rate limiting\" → Rate limiting implementation\n\"how do I connect postgres to my API\" → Postgres API connection\n\"best practices for React hooks\" → React hooks best practices\n\"@src/auth.ts can you add refresh token support\" → Auth refresh token support\n\"@utils/parser.ts this is broken\" → Parser bug fix\n\"look at @config.json\" → Config review\n\"@App.tsx add dark mode toggle\" → Dark mode toggle in App\n</examples>\n"
\ No newline at end of file
+You are a title generator. You output ONLY a thread title. Nothing else.
+
+<task>
+Generate a brief title that would help the user find this conversation later.
+
+Follow all rules in <rules>
+Use the <examples> so you know what a good title looks like.
+Your output must be:
+- A single line
+- ≤50 characters
+- No explanations
+</task>
+
+<rules>
+- you MUST use the same language as the user message you are summarizing
+- Title must be grammatically correct and read naturally - no word salad
+- Never include tool names in the title (e.g. "read tool", "bash tool", "edit tool")
+- Focus on the main topic or question the user needs to retrieve
+- Vary your phrasing - avoid repetitive patterns like always starting with "Analyzing"
+- When a file is mentioned, focus on WHAT the user wants to do WITH the file, not just that they shared it
+- Keep exact: technical terms, numbers, filenames, HTTP codes
+- Remove: the, this, my, a, an
+- Never assume tech stack
+- Never use tools
+- NEVER respond to questions, just generate a title for the conversation
+- The title should NEVER include "summarizing" or "generating" when generating a title
+- DO NOT SAY YOU CANNOT GENERATE A TITLE OR COMPLAIN ABOUT THE INPUT
+- Always output something meaningful, even if the input is minimal.
+- If the user message is short or conversational (e.g. "hello", "lol", "what's up", "hey"):
+ → create a title that reflects the user's tone or intent (such as Greeting, Quick check-in, Light chat, Intro message, etc.)
+</rules>
+
+<examples>
+"debug 500 errors in production" → Debugging production 500 errors
+"refactor user service" → Refactoring user service
+"why is app.js failing" → app.js failure investigation
+"implement rate limiting" → Rate limiting implementation
+"how do I connect postgres to my API" → Postgres API connection
+"best practices for React hooks" → React hooks best practices
+"@src/auth.ts can you add refresh token support" → Auth refresh token support
+"@utils/parser.ts this is broken" → Parser bug fix
+"look at @config.json" → Config review
+"@App.tsx add dark mode toggle" → Dark mode toggle in App
+</examples>
diff --git a/bench/harnesses/prompts/openhuman/analysis.md b/bench/harnesses/prompts/openhuman/analysis.md
index 97486e17d4..93c06ae7f1 100644
--- a/bench/harnesses/prompts/openhuman/analysis.md
+++ b/bench/harnesses/prompts/openhuman/analysis.md
@@ -24,7 +24,7 @@ static: the first user message carries the only volatile field, `Current Date &
- Extremely terse, telegraphic, descriptive-imperative mix. Persona is one line: "Warm, direct, no filler; say \"I'm not sure\" rather than guess. The user drives."
- Markdown headers + bullets only; no XML, no caps-lock emphasis, no examples. Few negatives, all short: "Never invent names, ids, paths, URLs, quotes or numbers", "never refuse from the list or paste OAuth URLs", "never say saved without a successful write this turn".
- Priority rule via ordering: "First match wins:" routing list. Good, cheap, deterministic.
-- Style rule: "Never use em-dashes; use commas, colons or two sentences." Ironically 20+ tool descriptions use em-dashes (e.g. build_workflow "Workflow authoring specialist — owns...", composio_connect "inline in the chat**. ... — the user").
+- Style rule: "Never use em-dashes; use commas, colons or two sentences." Ironically 8 tool descriptions use em-dashes (`build_workflow`, `composio_connect`, `discover_workflows`, `goal_complete`, `list_workflows`, `run_workflow`, `shell`, `use_skill`; e.g. build_workflow "Workflow authoring specialist — owns...", composio_connect "inline in the chat**. ... — the user").
- Weakness: it is a consumer-assistant prompt. There is zero coding doctrine in the base prompt: no read-before-edit, no test-then-finish, no minimal-diff, no git rules. All of that is pushed behind `use_skill coding` ("`use_skill` `coding`/`system`/`web3`/`docs` first; edit and verify in the same turn").
## 3. Tool-use policy
@@ -37,7 +37,7 @@ static: the first user message carries the only volatile field, `Current Date &
## 4. Tool schema design
31 tools, ~25.3k chars. Heaviest (schema_chars / desc_chars): use_skill 524/1673 (2424 total JSON), run_workflow 473/988 (1580), build_workflow 321/963 (1418), spawn_async_subagent 968/240 (1360), discover_workflows 1162 total, shell 604/281 (1005), todo 448/476 (1046), memory_store 643/199 (959), apply_patch 464/350 (939).
-- ~11 of 31 tools are workflow plumbing (`await_workflow`, `build_workflow`, `describe_workflow`, `discover_workflows`, `list_workflow_runs`, `list_workflows`, `read_workflow_run_log`, `run_workflow`) = ~7.0k chars (~28% of tools) shipped on every coding turn, plus `juice_*` x3 + `tinyjuice_retrieve` (~1.5k) and 2 memory-retrieval tools + `retrieve_memory`. Irrelevant to the task.
+- 8 of 31 tools are workflow plumbing (`await_workflow`, `build_workflow`, `describe_workflow`, `discover_workflows`, `list_workflow_runs`, `list_workflows`, `read_workflow_run_log`, `run_workflow`) = 6,036 chars of descriptions + schemas (~28% of the 21.5k chars in `tool-table.json`) shipped on every coding turn, plus `juice_*` x3 + `tinyjuice_retrieve` (~1.5k) and two overlapping memory-retrieval tools (`memory_recall`, `retrieve_memory`). Irrelevant to the task.
- Lazy loading: two layers. (a) `tool_search` ("Find a tool that is not in your tool list ... returns the matching tools with their full argument schemas. Invoke a match with `tool_call`") + `tool_call` with `arguments` as a JSON-encoded STRING ("encoded as a JSON string"). (b) `use_skill`: "Their names, descriptions and argument schemas are NOT in your context until you ask for them: call this with `skill` alone to see them". 16 skills listed in an enum inside the description (1673 chars). Good idea; but string-encoded args in `tool_call` lose schema validation and are error-prone for weak models, and double indirection (use_skill -> tool vs tool_search -> tool_call) is two mechanisms for the same job.
- Edit primitive: `apply_patch` is actually multi-file exact-string replace: "Apply a batch of exact-string edits across one or more files atomically. All edits are validated before any are written; validation failure rolls back the whole batch." Create = empty `old_string`. Good: atomic, batch, `replace_all` default false. Misnamed (not a diff patch format; models trained on codex apply_patch will mis-send). Worked first try in capture.
- No read_file, grep, glob, ls tool in the default list: reading is `cat` via `shell` (observed: `pwd && ls -la && ... cat calc.py && cat test_calc.py`). Search/read tools sit behind `use_skill coding`. No line-numbered reads, no offset/limit, no read-before-edit enforcement visible.
@@ -65,8 +65,8 @@ static: the first user message carries the only volatile field, `Current Date &
Copy (to others): "First match wins" intent router; todo description anti-stall text; "Worker summaries are claims"; "say whether an answer came from a tool, memory or general knowledge"; shell `category` can-only-raise risk; atomic multi-file `apply_patch` with create-by-empty-old_string; timestamp on user turn not system; 97%+ cache hit with stable `prompt_cache_key`; whole system prompt at ~1k tokens.
Gaps vs strong coding harnesses (be critical):
1. No dedicated read/grep/glob in the default tool list; coding doctrine hidden behind `use_skill coding` (extra round trip, model-dependent: in the capture it skipped the skill and used `cat`). No read-before-edit rule, no "prefer dedicated tools over shell", no cwd/git/OS/env block (only "Tools resolve in `pwd`", forcing a `pwd` call first, seen in call 1).
-2. ~7.0k chars of workflow tools + ~1.5k juice tools + 3 memory tools always loaded for a non-workflow task (~9k+ chars, about 2.3k tokens, ~30% of tools) while the system prompt is only 1k tokens. Tools : system ratio is ~6:1; move workflow/juice behind `use_skill` or `tool_search` like the others.
+2. ~6.0k chars of workflow tools + ~1.5k juice tools + 3 memory tools always loaded for a non-workflow task (~9k+ chars, about 2.3k tokens, ~30% of tools) while the system prompt is only 1k tokens. Tools : system ratio is ~6:1; move workflow/juice behind `use_skill` or `tool_search` like the others.
3. Two lazy-loading schemes (tool_search+tool_call with JSON-string args; use_skill with `args` object) and `tool_call.arguments` as a stringified JSON: invites escaping errors and defeats provider-side schema validation.
-4. `todo.status` 13-value enum; `apply_patch` name mismatch with its semantics; em-dash rule violated by its own tool text; `memory_search` named in prompt but not provided; 4 web tools with leaky `provider` param.
+4. `todo.status` 13-value enum; `system.txt` tells the model to use `web_answer_tool` with `depth: "deep"` but the schema's `depth` enum is only `["quick"]`; `apply_patch` name mismatch with its semantics; em-dash rule violated by 8 of its own tool descriptions; `memory_search` named in prompt but not provided; 4 web tools with leaky `provider` param.
5. No strict/additionalProperties on 30/31 tools; no `cache_control` markers (fine for DeepSeek, would matter on Anthropic where caching is explicit).
6. Output-verbosity and final-summary guidance is one 228-char style block; no rule on reporting test results/failures honestly beyond "When something fails, try another way, then say what failed."
diff --git a/bench/harnesses/report.mjs b/bench/harnesses/report.mjs
index 6ffc3b0a29..90e23e1c70 100644
--- a/bench/harnesses/report.mjs
+++ b/bench/harnesses/report.mjs
@@ -235,7 +235,7 @@ export function toMarkdown(meta, summary) {
head,
body,
"",
- "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.",
+ "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 the calls of a harness's solved tasks.",
"",
].join("\n");
}