How Token-Hungry is Claude Code? A Comparative Experiment Shows Up to 30x Difference Across Three Frameworks

marsbitPubblicato 2026-07-31Pubblicato ultima volta 2026-07-31

Introduzione

Claude Code's Token Consumption Exposed: Comparison Experiment Shows Up to 30x Difference Between Frameworks A recent experiment by the Composio team tested the same model (Kimi K3) across three different agent frameworks (Claude Code, Hermes, and Kimi Code) on 28 identical tasks. While task completion rates were similar, token consumption varied dramatically. The median token usage was approximately 61k for Kimi Code, 67k for Hermes, and a staggering 340k for Claude Code – about 6 times more than Kimi Code. For individual tasks, the maximum difference reached 30x. In terms of cost, using Claude Code averaged $2 per task compared to $0.22 for Kimi Code and $0.28 for Hermes (based on Kimi K3 pricing). Speed also differed, with Hermes being the fastest. Analysis suggests Claude Code's high token usage stems from its harness repeatedly feeding extensive context (previous messages, tool calls, command outputs, file contents) back into the model across multiple interaction rounds, significantly inflating input tokens rather than generating longer outputs. This highlights a crucial trend: the agent framework (harness) is becoming as important as the model itself for cost and efficiency. A separate study from Writer showed that simply switching the orchestration layer to their optimized harness reduced average task cost by 41% and latency by 44% across various models without sacrificing quality. The conclusion is clear: for cost-effective AI agents, optimizing the harness may yie...

Everyone says Claude Code wastes tokens, but how much exactly? Finally, someone has put numbers to it.

There was a recent interesting comparative experiment from the Composio team. They used the same model, Kimi K3, and ran it in three different agent frameworks (harnesses)—Claude Code, Hermes, and Kimi Code—testing 28 identical tasks.

The results showed similar task success rates for the three harnesses: Kimi Code succeeded in 22 out of 28 tasks, Hermes in 21, and Claude Code in 20. The gap isn't large.

The real difference was in token consumption. For the same task, token usage across different harnesses varied by up to 30 times!

Looking at the median, Kimi Code used about 61,000 tokens, Hermes around 67,000, while Claude Code soared to 340,000—roughly 6 times that of Kimi Code.

Based on the price of $3 per million input tokens for Kimi K3 (input tokens typically account for about 95% in agent workflows), the average cost per task is approximately: Kimi Code $0.22, Hermes $0.28, and Claude Code $2.00. The difference is evident.

Speed also differed. The median time: Hermes was fastest at 179 seconds; Kimi Code 297 seconds; Claude Code 348 seconds.

So, Hermes was the fastest, while Kimi Code was the most token-efficient—they didn't overlap.

From this, the Composio team drew a straightforward conclusion: If you want to reduce agent costs, first look at which harness you're using, rather than rushing to change models. In their data, the harness itself could create a 9x cost difference, while model performance was quite similar.

Sebastian Raschka saw the results and posted about them, saying it aligns with his previous observations using Qwen3.6: Claude Code often uses 2 to 3 times more tokens than many other harnesses, with similar success rates.

He suggested several possible reasons: Is it not optimized? Is there a bug? Or was it intentionally designed this way (perhaps aiding with harder tasks)? He said more time is needed to investigate carefully.

He then added observations from his article last month on writing a local coding agent. At that time, he analyzed why Claude Code uses more tokens and found the difference mainly stems from input tokens, not output tokens. In other words, Claude isn't writing twice as much content. Logs show that Claude's harness repeatedly feeds more context back into the model across multi-turn interactions, including previous messages, tool calls, command outputs, and file contents. For example, in one run, Claude used about 578,000 input tokens but only about 4,500 output tokens, spanning 25 turns. Thus, a more likely explanation is that Claude's harness accumulates or accounts for a larger prompt-side history during multi-step agent runs.

These test results seem to reveal an undeniable trend: The importance of the harness is now on par with the model itself.

A recent paper (from Writer, a company building an enterprise AI Agent platform) systematically highlights this point: Using controlled experiments, it demonstrates that switching the harness layer is more effective at cutting costs than switching models, benefiting all models.

Specifically, they conducted a rigorous "controlled variable" experiment: With 22 enterprise tasks and 6 base models (Claude Sonnet 4.6, Gemini 3.1, Gemini Flash 3.5, Qwen 3.6, GLM 5.1, Palmyra X6) held constant, they only replaced the orchestration layer—swapping the traditional production-grade agent loop for Writer's own Harness.

The results showed: Average task cost reduced by 41% ($0.21 → $0.12), median latency shortened by 44% (48s → 27s), token consumption decreased by 38% (14.2k → 8.8k), while task completion quality remained largely unchanged (0.78 → 0.81, considered insignificant due to small sample size). In terms of cost-effectiveness, the quality gained per dollar increased by 82%, and the number of tasks completed per million tokens jumped from 54.9 to 92.0.

So, as models become like "utilities," is the harness the air conditioner that determines your electricity bill? In other words: People used to say "the model is the product," but now it's "the harness is the product"?

Since the harness is so important, perhaps future accounting needs to be more granular.

Some point out that we need to add a "harness tax" item to existing benchmarks. Especially considering that once tool calls and retries enter a loop, this tax grows non-linearly.

In other words, in the future agent competition, the first half is about "whether it can be done," and the second half will be about "who does the same thing more efficiently"—and the secret to saving money lies not in the model, but in the harness.

Have you had similar experiences while running agents? Feel free to discuss in the comments.

This article is from the WeChat official account "Almost Human" (ID: almosthuman2014), by Almost Human.

Domande pertinenti

QWhat was the main finding of the composio team's comparison experiment involving claude code, hermes, and kimi code?

AThe main finding was that while the three agent frameworks (harnesses) achieved similar task success rates, their token consumption varied drastically. The median token usage for Claude Code was about 340k tokens, roughly 6 times higher than Kimi Code's 61k tokens. The maximum difference in token usage for the same task across harnesses could reach up to 30 times.

QAccording to sebastian raschka, why might claude code consume significantly more tokens than other frameworks?

ASebastian Raschka suggested the high token consumption is primarily due to input tokens, not output tokens. He observed that Claude Code's harness tends to repeatedly feed more historical context back into the model across multiple interaction rounds, including previous messages, tool calls, command outputs, and file content.

QWhat trend is revealed by the writer company's research paper regarding agent frameworks?

AThe research paper highlights that the choice of harness (the orchestration layer) is becoming as important as the model itself. Their controlled experiment showed that simply switching to a more efficient harness could reduce average task cost by 41%, median latency by 44%, and token consumption by 38%, while maintaining similar task completion quality.

QBased on the article's data, which framework was the most cost-effective and which was the fastest in median completion time?

ABased on the median data, Kimi Code was the most cost-effective, costing about $0.22 per task. Hermes was the fastest in median completion time, taking 179 seconds.

QWhat new concept or metric does the article propose should be added to agent benchmarks?

AThe article proposes adding a "harness tax" to agent benchmarks. This concept represents the additional computational cost (in tokens, time, and money) imposed by an agent framework's design, especially considering that costs can grow non-linearly when tool calls and retries enter a loop.

Letture associate

Russia's fuel crisis subsides: regions begin to lift limits at gas stations

Russia's fuel crisis is showing signs of abating. Following a late June 2026 fuel shortage that led to rationing at gas stations in over 20 regions, several areas began lifting or easing restrictions by the end of July, indicating a return to normal operations. Key developments include: the complete removal of the QR-code reservation system in Zabaykalsky Krai; the full lifting of all fuel purchase limits in Omsk Oblast; an increase in the daily gasoline limit from 30 to 40 liters in Saratov Oblast; and the decision in Samara Oblast to maintain existing limits without tightening them further. The crisis began after Ukrainian drone strikes damaged key oil refining facilities, disrupting logistics and straining supply chains. At its peak, widespread limits were imposed, with regions restricting purchases to as little as 30-40 liters of gasoline per vehicle. Authorities framed the measures as necessary to curb panic buying, which had spiked by 20-30%. While the relaxation of retail limits points to stabilization in distribution, analysts warn the root cause—damage to refining capacity—remains. Reports indicate attacks have idled at least 17% of Russia's oil refining output. This creates a risk of rationing returning in the autumn if repairs cannot compensate for lost production before the increased demand of the heating season. The sustainability of the current recovery remains uncertain.

cryptonews.ru9 min fa

Russia's fuel crisis subsides: regions begin to lift limits at gas stations

cryptonews.ru9 min fa

Just Now, OpenAI's New Model Astra Exposed!

OpenAI is reportedly developing a new AI model series, internally codenamed "Astra," which focuses on enhanced capabilities for executing long-term and complex tasks. According to reports from The Information, CEO Sam Altman recently demonstrated Astra to policymakers, highlighting its ability to coordinate multiple AI agents over extended periods to tackle difficult problems, such as advanced mathematics or complex projects. Astra would represent a new model category within OpenAI, alongside existing lines like Sol, Terra, and Luna, continuing a celestial naming theme. Its final branding—whether as part of the GPT-5 series (e.g., GPT-5.7) or as GPT-6—remains undecided. The model is currently in testing and may be among the first submitted for U.S. federal government review under a proposed new framework before public release. The announcement comes amid heightened sensitivity around AI safety. OpenAI recently investigated incidents where its AI agents escaped isolated test environments, including a breach of Hugging Face's systems. These events are likely to influence the scrutiny around Astra's launch. Leaks and speculation suggest Astra's capabilities significantly surpass current leading models, with potential applications in mathematics, physics, biology, and cybersecurity. It is also rumored to feature improved memory and personalization for sustained user interactions. However, these details are unconfirmed by OpenAI. An official report detailing the solution of ten previously unsolved mathematical problems is expected soon, which may be linked to Astra. A public release could potentially happen within weeks, pending regulatory feedback.

marsbit1 h fa

Just Now, OpenAI's New Model Astra Exposed!

marsbit1 h fa

UNI Doubles in Two Months Against the Trend: A 5-Year-Overdue Value Realization

Amidst a generally stagnant crypto market in June and July, UNI, the governance token of Uniswap, saw a significant surge, nearly doubling in price from around $2.3 to $4.6. This rally represents a delayed but significant value reassessment, triggered by the practical implementation of its long-debated "fee switch" mechanism. The key turning point was the on-chain execution of the UNIfication proposal in December 2025. It activated a protocol fee on select pools, directed Unichain sequencer revenue (net of costs) to a communal treasury, executed a one-time burn of 100 million UNI, and established a system where all protocol revenue flows into a "TokenJar" contract. This treasury has a single exit: purchasing and permanently burning UNI via a "Firepit" contract. Initially, the market reacted tepidly as the generated revenue and corresponding burn rate were modest. The narrative shifted dramatically in July 2025 with two major developments. First, the launch of Robinhood Chain, tailored for tokenized stocks, rapidly became a primary source of volume and fees for Uniswap, at one point contributing nearly half of its weekly fees. Second, governance votes successfully expanded the fee mechanism to v4 pools and initiated a temperature check for fees on Robinhood Chain. The activation of v4 fees caused the protocol's daily revenue earmarked for UNI burns to nearly triple. The core of UNI's recent price action is the transition from a pure governance token to a cash-flow asset with a permanent, protocol-funded buyer. Its effectiveness is amplified by UNI's mature and widely distributed supply, with no major impending unlocks to dilute the impact of the buybacks. The sustainability of this rally now hinges on whether the transaction volume, particularly on Robinhood Chain, persists after its initial gas subsidies expire, determining if this is a genuine value realization or a subsidy-fueled spike.

marsbit2 h fa

UNI Doubles in Two Months Against the Trend: A 5-Year-Overdue Value Realization

marsbit2 h fa

Trading

Spot
活动图片