
Harness overhead benchmark: tokens 11 coding agents send before the task starts
TestDino turns raw Playwright traces into short failure summaries
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
TestDino turns raw Playwright traces into short failure summaries
This harness overhead benchmark found a 16.8 times spread in what 11 coding agents send before they do anything: 1,894 tokens for Pi, about 2,500 for Aider, 5,382 for Cline, 9,290 for Gemini CLI, a 13,000 to 17,100 band for Cursor, OpenCode, Qwen Code, Codex CLI, and Copilot CLI, and over 31,000 for Claude Code and Kiro.
Tool schemas, not instructions, explain most of the top.
Five independent studies then show that number is re-sent on every one of 50 to 90 steps, that caching discounts it without removing it, and that the heavier harness almost never buys accuracy.
The practical response is to treat ai coding agent token overhead as something you measure and manage, starting with the one-command test in this post.
Then pick the lightest harness whose failure modes you can live with, defer tools, trim always-on instructions, filter tool output, and use the cheaper tool surface for the browser. The numbers here are a snapshot from 8 October 2026 at the versions listed, so rerun the method before you decide.
For QA teams, the biggest single lever is the data the agent reads, which is why shorter failure summaries matter as much as shorter prompts. That is the same discipline behind good AI agent testing: control what goes into the loop, and the cost and the quality both follow.
--> What is a harness overhead benchmark?
It is a measurement of the input tokens a coding agent sends that come from the agent itself rather than your task: the system prompt, tool schemas, instruction files, memory, and environment data. The cleanest version measures the first model call on a trivial prompt, which is what this post does for 11 agents.
--> Which coding agent burns the fewest tokens before the test starts?
In our 8 October 2026 run, Pi sent 1,894 tokens on its first call, followed by Aider at about 2,500 and Cline at 5,382. Kiro CLI and Claude Code sent the most at 31,798 and 31,480. The full table, versions, and default models are in the results section above.
--> How large is claude code token usage per request on an empty prompt?
With a clean profile and Claude Code 2.1.293, the first call on a one-word prompt was 31,480 input tokens, median of 3 runs. With a global CLAUDE.md, auto memory, and 3 MCP servers it rose to 34,161. The /context command shows your own number live.
--> What is the coding agent harness tax?
The harness tax is the term the HarnessTax study from UC Berkeley Sky Lab and Arena uses for the extra cost a harness adds for the same model and task. In its data, Claude Code cost about 2.0 times Pi and 1.6 times Codex per attempt on SWE-bench Lite while success rates stayed within 2 points.
--> Does a bigger harness make the agent more accurate?
Not in the published data. Liu and Han found the heaviest and lightest harness equal within 5 points on 447 SWE-bench Verified tasks, and Vats and Golev saw a 0 to 8 point pass-rate spread against a 40x token spread. A heavier harness mostly buys fewer ways to lose a task, such as avoiding context overflow, rather than more wins.
--> How to reduce token usage in coding agents?
Pick a lighter harness, defer tool schemas, prefer CLI tools over MCP servers, keep CLAUDE.md under 200 lines, and filter test output with hooks. The Playwright skill for Claude Code routes the agent to the cheaper CLI surface, and reduce Playwright CI runtime shrinks the logs it reads.
--> Can I rerun this harness overhead benchmark on my own setup?
Yes, and you should, because the numbers move with every release. Send a one-word prompt in headless JSON mode, add uncached input, cache writes, and cache reads, and repeat 3 times. To price the result in CI, the flaky test cost calculator turns per-run cost into an annual number.
Ayush Mania
Forward Development Engineer
Ayush Mania is a Forward Development Engineer at TestDino, focusing on platform infrastructure, CI workflows, and reliability engineering. His work involves building systems that improve debugging, failure detection, and overall test stability.
He contributes to architecture design, automation pipelines, and quality engineering practices that help teams run efficient development and testing workflows.
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。