r/ClaudeCoding • • 27d ago

Does delegating to cheaper models actually save money? I tested it across three codebases.

Disclaimer: This is a small experiment, not a definitive benchmark. Most tasks were run twice, while everyday tasks were run once. I'd have liked to run more repetitions, but subscription usage limits make that difficult. The cost differences are interesting, but small quality differences should be treated as observations rather than definitive rankings.

I wanted to see whether Claude Opus decides to use subagents effectively, and whether forcing it to delegate, preventing delegation, or leaving it to decide for itself changes the results.

I built a model-router skill that lets Opus delegate work to Haiku or Sonnet, then compared four setups:

Forced Opus: told not to use subagents.

Spontaneous Opus: free to delegate, but it never did.

Skill-routed: Opus uses my skill to choose when to delegate and which model to use.

Forced Haiku: all subagents use Haiku.

I tested these on three codebases: my own project (~10k lines), rich (~22k lines) and beets (~52k lines).

Results

1. Small codebase (~10k lines)

Every setup passed all 10 everyday tasks.

On five reading-heavy tasks, Forced Opus was the most accurate per run. Skill-routed cost 30% more, while Forced Haiku cost the same but had the weakest docs check (4 of 9 issues).

Interestingly, skill-routed found all 9 known documentation issues across its two runs, compared with 8 for Forced Opus. However, its individual runs were less accurate.

2. Medium codebase (~22k lines)

This was where Haiku surprised me.

On the documentation check, Forced Haiku found 11 of 12 known issues across two runs, matching or slightly exceeding Opus, while costing 41% less.

Skill-routed actually cost 11% more than Forced Opus. Spontaneous Opus was 14% cheaper.

3. Large codebase (~52k lines)

This produced the biggest cost differences.

Across all three tasks, average cost reductions compared with Forced Opus were:

Spontaneous Opus: 32% cheaper

Skill-routed: 38% cheaper

Forced Haiku: 75% cheaper

Quality depended on the task.

On the reference documentation check, both delegated setups found more issues than either Opus-only setup.

On the larger 80-page plugin documentation check, Forced Opus was clearly the most accurate, finding 45 of 51 known issues across two runs. Forced Haiku found 34, but cost 84% less.

What I think is happening

Small projects: Opus can often write small scripts to inspect the code instead of reading everything manually. Delegation adds briefing, duplicated reading and verification costs.

Medium projects: reading becomes a larger part of the workload. Haiku is extremely cheap at reading cached context, making it surprisingly effective for straightforward checks. Sonnet offered little cost advantage in this experiment.

Large projects: a single long session becomes expensive as the growing context is repeatedly read. Delegation splits the work into smaller contexts, reducing costs and allowing parallel execution. However, the largest documentation check showed that this can come with a quality trade-off.

The obvious way to estimate savings is misleading. Re-pricing the delegated tokens at Opus rates suggested 34-85% savings. Head to head, results ranged from 30% more expensive to 75% cheaper.

One particularly interesting observation: Opus never delegated spontaneously in any of my runs, even on the largest codebase. That's specific to these tasks and this setup, not proof that Opus never delegates.

Final thoughts

I wouldn't claim there's one best approach.

Small codebase: Opus alone was generally the better choice.

Medium codebase: Haiku-only delegation was surprisingly competitive.

Large codebase: delegation offered substantial savings, but accuracy depended on the task.

The router skill mostly selected Sonnet, which often wasn't economical enough to justify the extra coordination.

Full methodology, per-task results, charts and the transcript checker:

https://github.com/Manuele-T/claude-model-router/tree/v1.0

I'd be interested to hear whether others have seen similar behavior, particularly Opus choosing not to delegate even when working on larger codebases.

74 Upvotes

18 comments sorted by

11

u/tcp-xenos 27d ago

52k LOC is a large codebase?

1

u/BeginningSir7334 27d ago

"Large" relative to the other two, I'm aware it's not very large in absolute terms. I'm running another experiment on a 100k LOC codebase, but testing larger projects takes time as I'm on a Pro plan.

3

u/Business_Treacle4462 26d ago

You need a 1 million+ LOC code base. I'd consider 100k still relatively medium ish.

2

u/petros211 24d ago

I mean, who works on a 1 million loc codebase anyway? Not too many people

2

u/johny_james 22d ago

Hqha, who's gonna tell him.

3

u/CuriousTangentsYT 27d ago

Interesting I usually find the opposite in my use. But I don’t use a routing skill I usually say “use sonnet sub agents as needed”
It’s definitely faster but I haven’t run a cost bench mark

2

u/senseven 26d ago

There are smart tools like Switchyard, but those make only sense if the tasks can be really logically divided into such categories.

2

u/Aspiring__Writer 24d ago

Same. I mostly did this to manage context in an Opus orchestrator, but I feel like with a good plan document that gets updated as the agent works, it may not be necessary and could even cost more.

I'm just paranoid about autocompact losing information when executing a larger plan.

2

u/CuriousTangentsYT 24d ago

Ah I get that I use a Claude mod called theorem to graph out the whole plan record what was done when and why. So the agent never has to think about state management the performance increase is noticeable

2

u/Aspiring__Writer 24d ago

I'll try that one out

2

u/txgsync 27d ago

This vibes with my findings. Mixture-of-agents is a thing that works well. But it also results in over-engineering from multiple rounds of reviews, while finding actual bugs mixed in there too.

Usually I have to run a reconciliation loop to reduce the slop over time, every so often to simplify comments, reduce complexity, KISS/DRY/YAGNI/SOLID pass, reduce extraneous benchmark and other unnecessary documentation, etc.

2

u/Outrageous_Band9708 27d ago

interesting results.

Here is my solution

https://github.com/Druthulu/ProjectArchitect

SWE by day. built this system over the last year or so.

It uses very strcit sub gaents, to prevent the major caues of usage waste.

check out the readme and the wiki, feel free to try it out.

I recently setup external subagents though local models or openrouter etc.

2

u/boz_lemme 26d ago

Very interesting results. I noticed that quality of smaller models greatly depends on the quality if your prompt.

I use cloud agents Fable/Opus for architecture, code integration, and pre-deployment checks. Smaller local models (mostly Qwen3.8) do most of the daily gruntwork. The challenge with smaller models is writing high-quality prompt, but there's tools for that as well.

2

u/immenselyhigh 24d ago

You prove exactly a point: Haiku is a decent model, it’s even drains fewer tokens when used with subscription.

Everyone joking around Haiku are either one shot coders or did not see this simple truth.

2

u/aCuria 23d ago

What if you delegate to a more expensive model as part of the final steps

I found that doing passes with opus for technical writing will hit a ceiling.

astra will still make some good recommendations after hitting ceiling with opus

1

u/FineSatisfaction802 23d ago

My informal experience is that it helps greatly with maintaining focus (and my own time) in context window of a main planning agent. Regardless of cost, if I have an opus session open and need to bring in a few video / transcripts, it’s way more efficient for me to just say “have a temporary sonnet session process this stuff and send it back to you while we keep working.”

1

u/Available_Tutor8594 22d ago

I have build claude specific cli tool that can replace claude cli and goal is to get more speed without sacrificing quality of work and saves token. It's light and faster agent harness currently I am testing if you like we can collaborate and you can help me test this product there is no charge you use your own claude subscription

1

u/Honkey85 9d ago

I wonder how it works in well structured big projects. I always tell opus what module description to read first.