Wink Pings

Claude Code costs 2.1x as much as Pi, with no gap in success rate: it's time to account for the Harness tax

UC Berkeley's HarnessTax tested 8 models, 3 Harness stacks, and 4 benchmarks: when switching Harness for the same model, success rates often differ by only a few points, while cost can differ by up to 5.1x. Microsoft Freehand hands rules, tools, timeouts, and context management back to the model; strong models benefit, while weak models see the opposite.

Choosing Claude Code, Codex, or Pi looks like choosing a tool, but in practice you are choosing a layer of Harness. UC Berkeley's HarnessTax breaks this question down and tests it: hold the model fixed, change the Harness, and see what happens to success rate and cost.

The results are straightforward. In 72 same-model comparisons, 36 task success rates differed by no more than 5 percentage points, while costs differed by as much as 5.1x. On Terminal-Bench 4.0, Claude Fable 5 with Claude Code cost 2.1x as much as Pi, with no statistically significant difference in success rate. Pi has only four tools—read, write, edit, and bash—and still made the Pareto frontier of cost and success rate across all four benchmarks.

HarnessTax 实验结果

Where does the money go? Short tasks are mainly consumed by the system prompt and tool definitions; long tasks consume more through continuously accumulating context and model output. Even tools that are never called still incur cost because their definitions are repeatedly sent to the model. The longer the tool list, the thicker the bill.

Subagents are not free either. After enabling Subagent in Codex, cost on Terminal-Bench 2.0 became 3x the original, with no significant improvement in success rate. Compressing context early does not necessarily save money. In Claude Code's long-task experiments, lowering the compression threshold from 167K to 100.8K actually increased cost by 70%; lowering the threshold further clearly hurt task success rate.

Someone in the discussion asked whether enabling Subagent is only to shorten task time. Xudong Han replied that another use is maintaining a clean context. This reminder is useful: the value of Subagent is not only speed, but also context isolation; the cost will show up first on the bill.

Freehand 原推配图

Microsoft's Freehand pushes this idea to a more extreme position. It gives the model about 200 words of operating instructions, one Bash tool, editable conversation history, and feedback on tokens, cost, and time. How the task is executed, how long commands wait, which history is worth keeping—all are decided by the model, and it can even write tools on the fly when needed.

Freehand 与各 Harness 的基准结果

Across 5 benchmarks and 11 frontier model/task setups, Freehand led the corresponding native Harness in all cases, improving average success rate by 5.1 percentage points and reducing cost by 49%. With less capable models, the result flips, and the native Harness instead leads by 5.1 to 6.7 percentage points. Someone in the Freehand discussion mentioned that running Freehand with small models does not work, and attached a GitHub issue.

主流 Harness 与 Freehand 的设计差异

This brings the question back to the engineering ledger. Every additional tool, Subagent, or context management strategy should have its benefits and costs evaluated separately. Strong models can be paired with a thin Harness, while weak models still need scaffolding. The design space of Harness will not disappear, but cramming preset rules into the model may not be worth it.

The paper also has boundaries: costs are calculated using API prices, and it does not evaluate real user interaction experience or safety. The Freehand repository states that it has no sandbox, commands run with your permissions, and untrusted code should be run in a container or virtual machine. Permissions, sandboxes, and security boundaries still need to be guaranteed by the system.

Original: Xudong Han's tweet link. Papers: HarnessTax, Freehand, code: microsoft/FreeHand.

发布时间: 2026-12-05 22:30