AI agents cost more than they should because they pay frontier prices for legwork and routine decisions, and re-send their context at every step. Across seven preprints, handing easy subtasks to a small local model cut the lead model's spend by 59–67% with no loss in solved tasks, though trimming context under prompt caching raised bills by up to 116%.

What led researchers to measure agent costs now?

Agent bills climb quickly because of how the loop works. An AI agent is a language model calling tools repeatedly: it reads the task, runs a command, inspects the output, chooses the next move and loops until the job is done. A harness, the software sitting around the model, drives that loop, supplies the tools and decides what goes back into the prompt on each turn. Because every turn sends the running conversation all over again, a coding agent that takes a hundred steps ends up paying for a hundred ever-longer prompts.

Two pricing details govern every benchmark number that follows. First, providers bill separately for uncached input, cached input and output. Second, prompt caching lets a provider store a prompt prefix it has already seen and charge a small fraction to read it again, pricing repeated input far below the regular rate. Anthropic's documentation, for example, bills cache reads at 10% of the base input price and 5-minute cache writes at 25% above it. That means what you pay for a task comes down to how many tokens the agent sends in total and how many of them repeat an earlier prompt exactly.

Put that into small-business terms and picture a two-person software shop running a coding agent across fifty support tickets a week. At the $2.11 per task that Gu and Lin measured for a frontier model working alone on their hardest coding set, that adds up to about $105 a week (illustrative, using their figure). Before we walk through each study, keep in mind that all seven are arXiv preprints posted in November 2026, none has been peer reviewed yet, and I pulled every affiliation, setup and number directly from the papers themselves.

What does each paper find?

How Do AI Agents Waste Your Money? (Zeng et al., 2026)

Zeng et al. (2026) set out to measure how much of an agent's reasoning text can safely go. The team, from the University of Illinois Urbana-Champaign, Northeastern University, UCLA and UT Austin, built a framework that records full agent trajectories, asks an LLM judge to mark removable spans and then checks those calls by deleting the spans and letting the agent carry on. They ran six models and five harnesses across τ²-bench, SWE-bench Verified, Claw-Eval and MCP-Atlas. Stripping out restated and padded reasoning removed 41% of reasoning on SWE-bench Verified while the solve rate held at 89.5% against 89.0% untouched, and removed 46% on MCP-Atlas as the solve rate moved from 65.0% to 62.3%. When they deleted all reasoning instead, solve rates dropped to 73.0% and 56.0%, confirming that the judge was finding real padding. For builders picking tools, waste also varied more across tasks and harnesses than it did across models. One boundary to keep in mind is that their controlled reasoning analysis relies on a single model, Kimi-K3, because few providers expose full reasoning traces.

System Optimizations for Cost-Efficient Agent Harnesses (Park et al., 2026)

Park et al. (2026), a team mostly from UC Berkeley with co-authors at Northwestern and Illinois, asked how much money a harness can save without touching the underlying model. To test that, they ran Claude Code and OpenAI Codex unmodified on 100 coding tasks from SWE-bench Verified, SWE-bench Pro and Terminal-Bench 2 plus 100 OfficeQA Pro questions, and built Agency, a layer that sits between an existing harness and the model. Their own measurements show Claude Code and Codex costing roughly twice as much as two bare-bones harnesses on the same tasks, while the often-quoted 2.6x spread actually comes from earlier studies the paper cites. Across Agency's five techniques, metadata-assisted search, which uses a small SQLite index of file paths and document structure so one query replaces a chain of searches, brought cost down to 0.68 of baseline on OfficeQA, while tool-call batching raised cost by 2%. Combined, the five techniques pushed average cost to 0.77 of baseline with accuracy at 0.97 of baseline, making the headline 35% saving the best case. Because the analysis relies on hindsight, those savings represent upper bounds, and 17–29% of tasks still cost more than baseline for one model.

Context Has a Price (Yang et al., 2026)

If you have been tempted to write custom context-trimming logic to keep prompts lean, Yang et al. (2026) make a strong case for measuring before you touch anything. This team, listing Huawei Technologies, treated context management as a strict measurement problem across more than 20,000 runs of seven open models, mainly Qwen3.6-27B, on SWE-bench Verified, SWE-bench and Loc-Bench, counting uncached input, cached input and output separately. Adding a package of retrieved code cut read and search commands by 18–34%, yet it raised cost by 33–42% when cached input was priced at a tenth of uncached input, with no measurable gain in resolved issues. Removing old tool outputs saved 19–36% when there was no cache discount, and then raised cost by 38–116% under a tenth-price cache, because trimming breaks the cached prefix and the agent goes on to take more steps. Across 33 combinations of method, model and scaffold, none beat doing nothing across the range of current API prices. They also caught an evaluation pitfall where running experiments side by side let one condition warm the cache for another, shifting one comparison from +8% to +36%. Bear in mind that their prices are reference values and the cache accounting ignores expiry.

Delegent (Gu and Lin, 2026)

The approach that caught my eye most for indie builders comes from Gu and Lin (2026) at the University of Waterloo, who tested whether a frontier model can stay in charge while handing legwork like reading code, running tests and searching a corpus to a small local model. Their harness, Delegent, is built on Claude Code with GPT-6.1-Sol as the lead model and either Qwen3.8-27B-FP8 or MiniCPM5-2B as the helper. On DeepSWE, the frontier model working alone solved 29 of 50 tasks at $2.11 each, while pairing it with the 27B helper solved 29 at 33% of the frontier cost, and pairing it with the 2B helper solved 30 at 34%. Across 694 search questions, both setups answered 663 correctly at 41% of the frontier cost. Those headline numbers count only what the lead model costs, though even when you price the 27B helper at third-party API rates, total spend lands at 38–57% of frontier-only across the three coding sets, coming out to $0.81 against $2.11 per DeepSWE task. A short instruction telling the frontier model to delegate tool-heavy work and keep core coding for itself accounted for about three-fifths of the saving, and without that instruction the 2B helper solved only 22 tasks. The trade-off shows up in runtime, since delegation made short coding tasks about twice as slow at the median, taking DeepSWE from 25 minutes to 38 minutes, and the 2B model was tested on coding only. If you want a local helper of that size to test yourself, our write-up of NariQ, a 10 GB 3-bit Qwen3.8-27B covers one option.

Reducing Inference Cost of Coding Agents with Timeout Cascades (Zhou et al., 2026)

For coding jobs where nobody is watching a live terminal for an answer, Zhou et al. (2026) at AMD Singapore and NTU Singapore tested a plain fallback rule that skips complex routing altogether. After running 36 open-weight models on SWE-bench Verified, they found that the accuracy gap between small and large models is concentrated in hard tasks. Their cascade starts every task on GLM-4.7-Flash (30B) and escalates to GLM-4.7 (355B) only if the smaller model times out, returns an empty patch or fails the tests. Measured in GPU-hours on AMD MI300X hardware across 466 tasks, that cascade cut total cost from 2,585 to 2,160 GPU-hours, a 16.4% reduction overall and a 33.5% cut on easy tasks, while the resolve rate climbed from 71.2% to 73.4%. A router supplied with perfect difficulty labels saved 17.9%, putting the simple timeout rule within 1.5 points of it. There are clear constraints on those figures, because each model ran each task once, the hybrid numbers are simulations replayed from traces, and average time per task rose from 41.6 to 84.5 minutes at the 120-minute timeout, which fits work nobody is waiting on.

The Control-Flow Tax (Cheng et al., 2026)

Part of an agent's bill goes toward deciding what step to take next, and Cheng et al. (2026), with Talkdesk listed as an affiliation, measured that overhead directly. In a three-step documentation workflow, routing decisions handled by the general model made up 42.5% of baseline reference cost and 66.5% of input tokens. Handing those choices to Jev, a specialised decision model that picks from a fixed list of actions, cut mean cost by 49.6% (95% interval 42.9–56.3%) and elapsed time by 33.2%, and cut cost by 40.5–42.9% across three further tasks over 480 valid runs. Using cheaper general-purpose models as routers fared worse, as one cut routing cost by 87.9% yet raised full-run cost by 3.7% by triggering extra generation calls, and another hit the 80-request cap on every run. Keep the scope of the experiment in mind, since the authors wrote all four tasks themselves, each condition had ten paired runs, output quality was not graded and the costs carry no cache discount.

Beyond Leaderboard Ranks (Srinivasan and Menzies, 2026)

Before you plan an infrastructure change around public benchmark tables, read Srinivasan and Menzies (2026) at North Carolina State University, who audit everyone else's numbers. Working from 58,197 run-task records on the Holistic Agent Leaderboard, they found that 27 of 35 steps along the accuracy-cost frontier across seven benchmarks are statistically unresolved. On SWE-bench, a run costing $34.16 trails a $170.78 leader by 14.6 points, yet the shared tasks cannot separate the two. Their cost audit turned up wide discrepancies too, with published costs differing from standardised token-based estimates by up to 11.7x (median 1.00), and the largest gap looking like cached tokens counted twice. For teams trying to evaluate candidates without overspending, successive halving, which spends a little on every candidate and drops the weaker half each round, reached their selection target on SWE-bench for $353.62, or 6.6% of the $5,399.89 an exhaustive evaluation would cost, though that figure assumes task costs are known in advance.

How do the seven papers compare side by side?

Because these seven papers measure costs in different units (frontier API dollars, reference dollars and GPU-hours), I laid out the table below to show each study on its own terms instead of forcing a single ranking.

Paper

Question

Setup

Headline number

Main caveat

Zeng et al., 2026

How much of an agent's output is removable waste?

6 models, 5 harnesses, 4 benchmarks; LLM judge checked by deletion

41–46% of reasoning removed, solve rate roughly held

Reasoning analysis on one model (Kimi-K3)

Park et al., 2026

What can the harness save without changing the model?

Claude Code and Codex; 100 coding tasks + 100 OfficeQA questions

Up to 35% cheaper; 23% on average at 0.97 accuracy ratio

Hindsight analysis; some tasks cost more

Yang et al., 2026

Does adding or trimming context lower the bill under caching?

20,000+ runs, 7 open models, 3 SWE benchmarks

Trimming: −19–36% without cache discount, +38–116% with one

Reference prices; simplified cache model

Gu and Lin, 2026

Can a frontier model delegate legwork to a local small model?

Claude Code harness, GPT-6.1-Sol lead, 27B or 2B helper; coding and search

−67% lead-model cost on coding, −59% on search, same tasks solved; total 38–57% of frontier-only with helper at API prices

About 2x slower on short tasks, 1.5x on DeepSWE

Zhou et al., 2026

Can small-first with escalation match a large model?

36 open models; GLM-4.7-Flash to GLM-4.7 on SWE-bench Verified

−16.4% GPU-hours overall, −33.5% on easy tasks

Simulated from single runs; doubles wait time

Cheng et al., 2026

How much does deciding what to do cost?

4 documentation tasks, 480 runs, specialised router vs general model

Control flow 42.5% of cost; −49.6% with specialised router

Ten pairs per condition; quality not graded

Srinivasan and Menzies, 2026

Can leaderboards tell you which agent to pay for?

58,197 run-task records from the Holistic Agent Leaderboard

27 of 35 frontier steps unresolved; costs off by up to 11.7x

Replay of historical runs; API tokens only

Horizontal bar chart of best-case reported agent cost reductions: Delegent coding with 27B helper 67%, Delegent coding with 2B helper 66%, Delegent agentic search 59%, Jev control-flow router 49.6%, Agency harness layer 35%, timeout cascade on easy tasks 33.5%, timeout cascade across all SWE-bench Verified 16.4%

Best-case cost reductions each paper reports at equal task results; units differ (frontier API dollars, reference dollars, GPU-hours), so compare within a bar, not across bars. Delegent's 66–67% counts only the lead model's cost: with the small helper priced at API rates, total cost is 38–57% of the lead model working alone. Source: Gu and Lin, 2026; Cheng et al., 2026; Park et al., 2026; Zhou et al., 2026

Where do the papers agree?

Across all seven studies, the first thing that stands out to me is how much the harness, the task itself and the way you split the work drive your bill compared with which model you pick. Zeng et al. found that waste swings more across tasks and harnesses than across models, while Park et al. found two popular harnesses costing roughly twice as much as bare ones on identical tasks. Cheng et al. saw a similar pattern inside a simple workflow, where close to half the total spend went toward deciding what step to take next instead of actually executing the work.

The papers also agree that a big chunk of that spend pays for routine work a cheaper model can handle once you narrow the job down. Delegent hands file reading and test runs to a helper, Zhou et al. send easy and medium tickets to a small model, and Jev simply picks from a short list of actions. Every one of those setups gives the cheap model a bounded job with a clear finish line. Earlier research on single prompts instead of full agents pointed in the same direction, since the FrugalGPT cascade matched GPT-4 with up to 98% cost reduction (Chen et al., 2023) and RouteLLM's routers between a strong and a weak model cut costs by over 2 times in some cases without losing response quality (Ong et al., 2024).

The third place these papers line up is that simple rules produce most of the cost savings on their own. A short instruction delivered three-fifths of Delegent's saving, a basic timeout came within 1.5 points of a perfect router, and successive halving reached the lowest selection cost on six of seven benchmarks while tying on the seventh.

Where do the papers conflict?

The sharpest clash comes down to whether sending fewer tokens automatically lowers your bill, because under prompt caching it often does not. On paper, Zeng et al.'s finding that 41–46% of reasoning is deletable looks like an immediate saving, yet Yang et al. show how quickly that maths falls apart once you price cached input properly. Stripping out old observations does shorten later prompts, but it also changes the prefix the provider has cached, so your next call pays full price for tokens that would otherwise have cost a tenth as much, and the agent may take extra steps to recover what it lost. That is why the exact same trimming method saved up to 36% with no cache discount and ended up costing up to 116% more with one.

Range bar chart of change in cost per task versus leaving context alone: removing old observations with no cache discount minus 36% to minus 19%; removing old observations with cached input at one tenth price plus 38% to plus 116%; adding retrieved code with no cache discount plus 25% to plus 33%; adding retrieved code with cache at one tenth price plus 33% to plus 42%

Cost change from adding or removing context, with and without a cache discount, across seven open models on SWE-bench Verified, SWE-bench and Loc-Bench. Source: Yang et al., 2026, Context Has a Price

Part of this disagreement stays hidden because the teams do not price their runs the same way. Delegent prices frontier calls at real API rates with $0.10 per million cached input tokens and keeps every frontier call on the same cache key, which means its savings still hold up when caching is active. Cheng et al. leave out cache discounts altogether, while Park et al. rely on list pricing fed into their own cost formula. When you read a 49.6% cut measured without caching next to a 67% cut measured with caching, you are really comparing answers to two slightly different questions.

A second tension sits between Cheng et al., who saw cheap general-purpose routers push the total bill higher, and both Gu and Lin and Zhou et al., who found that cheap models worked well. What separates those two results comes down to scope. When a cheap model makes open-ended decisions about what the expensive model should do next, it can send the pricey model off on extra calls, whereas a cheap model assigned to a bounded subtask, or to a whole task with a hard stop and a test to pass, has very little room to create extra work.

Srinivasan and Menzies give me good reason to treat every percentage above with caution. If most gaps on a public leaderboard already sit inside the noise, and published costs can be off by 11.7x purely because of how cached tokens were counted, any single paper's 35% or 67% saving needs to be repeated on your own tasks before you plan around it. Every headline number in this review comes from one paper and none has been independently replicated, so while the older cascade and routing studies back up the general direction, they do not confirm how large those savings will be.

What is still unknown?

I still see big gaps outside coding, search and short documentation tasks, because none of the seven papers measures a sales, support or bookkeeping agent running on real customer data. We also have no clear picture of how these techniques behave together. Delegation, cascades, specialised routers and harness changes each cut costs on their own, yet no paper stacks them, and Yang et al.'s findings suggest some pairings could cancel each other out if one change breaks the cache another relies on. Latency carries no price in any of the papers either, even though Delegent doubles short-task time and the timeout cascade doubles average time per task, which becomes a real problem the moment a customer is waiting on a reply. Quality checks beyond a basic pass or fail remain thin too, since Cheng et al. did not grade the finished documents, and a passing test still does not prove a patch is actually right.

What does this mean for builders, creators and small businesses?

What stands out to me is that the cheapest agent comes from how you split the work and feed it context, which means you can fix your bill right now without waiting for cheaper models to arrive. Going back to the two-person shop above, Delegent's DeepSWE figures imply that their $105 weekly bill could drop to about $35 of frontier spend, or about $40 once you include the 27B helper at third-party API prices, assuming their tasks resemble DeepSWE (illustrative, and dependent on their own measurement).

If I were building a product around this research, I would build a plain cost ledger long before I touched a clever router. Every saving in these papers depends on knowing your cost per solved task broken down by token type, whereas most small teams only ever look at a single monthly invoice. Anyone selling agent services to small businesses can also put that ledger straight onto a client proposal as a quoted cost per completed job, showing the split between expensive and cheap models right up front. For a wider look at when a single agent outperforms a group of them, read our review of multi-agent versus single-agent research.

How do I cut my agent bill this week?

Start by measuring your baseline, then change one variable at a time and measure again under your provider's actual cache pricing so you can see what truly moved your bill.

  1. Measure cost per solved task. Log uncached input, cached input and output tokens on every call, price them using your provider's actual rates, and divide the total by the tasks that passed. Run 20–30 of your own tasks once as a baseline, sequentially, because Yang et al. found that parallel runs can share cache and distort your comparisons.

  2. Check your cache pricing before trimming anything. Look at what your provider charges for cached input before you touch the prompt. When cached input costs a quarter of uncached input or more, Yang et al.'s break-even analysis showed savings of 10–26% from masking old observations, whereas at a tenth of the uncached rate you are better off leaving the prefix alone. Whenever you do trim context, cut only from the end of the prompt and never from the middle of the cached part.

  3. Delegate legwork to a small model. Hand file reading, test runs and search to a 27B-class local model (or a 2B model for coding), and add a single-paragraph instruction telling the lead model to pass off tool-heavy work while keeping the main edits for itself. In Gu and Lin's work, that instruction alone produced about three-fifths of their saving.

  4. Try small-first with a timeout before building a router. On batch jobs where nobody is watching the output live, send each task to the small model first with a hard time limit (Zhou et al. used 120 minutes) and escalate only when it hits a timeout, returns empty output or fails tests. Plan for your overall wait times to roughly double when you run this way.

  5. Give routing decisions to a narrow model rather than a cheap general one. When your workflow moves through a fixed set of next steps, Cheng et al. found that a specialised model picking from that list cut cost by 40–50%, while dropping in a cheaper general chat model as the router actually pushed total cost higher.

  6. Add a search index for document-heavy agents. If your agent works across a large set of documents, take a cue from Park et al., whose metadata-assisted search brought OfficeQA cost down to 0.68 of baseline using a plain SQLite table of file paths and document structure.

  7. Re-cost any agent you plan to buy on your own tasks. Test contenders with successive halving, where you give every candidate the same small budget, drop the bottom half and repeat the round. Srinivasan and Menzies reached their target at 6.6% of full evaluation spend using this approach, and our piece on the Harness Leaderboard shows just how far the wrapper alone can move scores.

Whenever you leave a frontier model to read every file and run every test by itself, you are paying frontier prices for work a small model can already do, and in Gu and Lin's coding runs that portion came to 43–62% of the total bill even after paying for the helper.

Key facts

  • A frontier model that delegated legwork to a 27B local model spent 67% less on long-horizon coding and 59% less on agentic search with the same tasks solved; counting the helper at API prices, total cost was 38–57% of frontier-only (Gu and Lin, 2026).

  • Removing old observations saved 19–36% without a cache discount but raised cost 38–116% when cached input cost a tenth of uncached input (Yang et al., 2026).

  • Routing decisions took 42.5% of baseline cost in a documentation workflow, and a specialised decision model cut mean cost by 49.6% (Cheng et al., 2026).

  • A small-first cascade with timeout escalation cut GPU-hours by 16.4% across SWE-bench Verified, within 1.5 points of a perfect router (Zhou et al., 2026).

  • 27 of 35 steps on leaderboard accuracy-cost frontiers were statistically unresolved, and published costs differed from standardised estimates by up to 11.7x (Srinivasan and Menzies, 2026).

Sources

Prompt caching, Claude Platform Docs

I spent a good decade or so in marketing, product owner and growth roles at IBM, LinkedIn, SAP and Adobe, and now lead AI go-to-market for startups, mid-market and SMBs across Asia Pacific and Japan at a frontier technology company. This is where I curate detailed how-tos and DIY tutorials. Follow me on LinkedIn and X.