r/VibeCodeDevs • • Oct 12 '26

I tried using Claude Code to orchestrate local coding models (9B–100B+). After millions of tokens, Claude alone is still cheaper. What am I missing?

I'm trying to make local LLMs useful for actual software development, with Claude Code handling orchestration and a local model doing the implementation.

Hardware / software:

- RTX 4070 Ti, 16GB VRAM, 64GB RAM

- OpenCode + Strata backend

- Ornith 1.5 35B as the current local model

- Claude Code as orchestrator

- Tested models ranging from 9B to 100B+

Strata actually made a massive difference in inference performance, increasing throughput from around 50 to 150 tokens/sec.

OpenCode also has full access to the repository, including reading/writing files, running commands, and executing tests.

So the problem isn't simply speed or tool permissions.

The problem: Claude is doing all the thinking.

When I ask Claude to delegate coding tasks, it eventually starts micromanaging my local model:

"Edit this file, change this function, insert this code at this location..."

At that point, the local model is basically a glorified patch applicator.

I wanted to know whether the local model was actually saving me anything, so I ran some comparisons.

Actual test results (Claude tokens):

Approach| Claude tokens/task| Result

Claude plans + pinned edits, local model implements (round 43)| ~2.8M| Pass

Claude writes everything itself (round 40)| ~2.3M| Pass

Claude provides prose-only spec, local model implements| ~170K| Fail, no files written

The third test was particularly disappointing.

I tried giving the local model more autonomy instead of having Claude specify exactly which edits to make.

First attempt:

- Specification covered four modes.

- Local model spent 10–14 minutes exploring the codebase.

- Never wrote a file.

- Timed out.

Second attempt:

- Split the specification into just two modes.

- Explicitly instructed the model to write the test file first.

- Same result. It explored the code and never implemented anything.

This reproduced an earlier failure from round 42.

I stopped the experiment there rather than running the remaining tasks.

What I've learned so far:

  1. Smaller specifications helped reduce Claude token consumption dramatically, from millions of tokens to roughly 80K in some cases.

  2. However, smaller specifications don't necessarily mean the local model can execute them.

  3. The local model only reliably completes the work when Claude has already done the difficult reasoning and provides pinned edits.

  4. But understanding the codebase and determining those edits is exactly where most of the Claude tokens are consumed.

  5. For actual coding, letting Claude work independently has been cheaper and more reliable.

  6. Local models are still useful for simpler bulk operations, such as translations.

What I've also tried:

- Different model sizes, from 9B to 100B+

- Removing Strata

- Removing OpenCode (this made orchestration worse)

- Breaking tasks into smaller specifications

- Giving the local model more independence

I'm not expecting a 35B model to perform like Claude. I just want my local hardware to contribute meaningful work instead of increasing costs.

My questions:

- Is anyone actually getting reliable coding work out of a local 30B–35B model in a hybrid Claude Code workflow?

- How are you structuring tasks so the local model can implement changes without line-by-line instructions?

- How do you prevent local coding agents from spending 10+ minutes exploring a repository without ever writing code?

- Is the problem the model, the context being provided, or how the agents are orchestrated?

- Are there specific categories of development work where local models consistently save Claude tokens?

Right now, my conclusion is that the local model saves tokens only when it's given work that doesn't require much reasoning.

But if Claude needs to do all the reasoning first, I'm struggling to see the economic benefit.

I'm curious whether others have solved this, or whether I'm simply expecting too much from current local models.

7 Upvotes

10 comments sorted by

•

u/endofthread-bot Oct 12 '26

Hey u/Punksp81, thanks for posting in r/VibeCodeDevs! Join our Discord: https://discord.gg/t7SD4ThKuE

• This community is designed to be open and creator‑friendly, with minimal restrictions on promotion and self‑promotion as long as you add value and don’t spam.
• Please follow the subreddit rules so we can keep things as relaxed and free as possible for everyone. • Please make sure you’ve read the subreddit rules in the sidebar before posting or commenting.
• For better feedback, include your tech stack, experience level, and what kind of help or feedback you’re looking for.
• Be respectful, constructive, and helpful to other members.

If your post was removed (either automatically or by a mod) and you believe it was a mistake, please contact the mod team. We will review it and, when appropriate, approve it within 24 hours.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

3

u/jonah_omninode Oct 12 '26

Your 2.8M versus 2.3M result suggests Claude is doing the implementation work twice: once to work out the edits, then again to supervise another model applying them. I wouldn't keep pushing the local model through that same task if Claude alone is already using fewer tokens.

This is the routing problem we're working on in OmniNode too. I'd start with a repeatable task where the relevant files and acceptance test are already known, then let the local model attempt it without a fresh Claude planning session. Give it a fixed exploration budget and hand the task back when it stalls, rather than having Claude dictate every edit. Compare the whole workflow, including failed attempts and review, against Claude doing the same jobs. Have you tried that on a batch of similar changes?

1

u/Punksp81 Oct 12 '26

Yes, that’s my read too. The extra cost is mostly reading: about 72% of Claude’s tokens on a task go to reading code so it can pin exact edits for the local model.

I’ve tried the “let the local model drive” version several times (it’s a 35B model running locally through OpenCode):

Local model writes the code and tests from plain-English acceptance criteria. Claude’s cost fell to about 40K tokens per task (from about 150K), but each small task took 33–195 min instead of 1–3. It stalled reading whole files and never finished a larger screen.

Plain-English spec only, with a 10-min cap per attempt and the task handed back after two failed runs. Claude spent about 0.17M tokens. The model explored for 10–14 min and wrote nothing, twice, even after I split the task.

Claude writes only the failing tests, the model writes the code. About 0.15M Claude tokens. It failed twice, with the same 6 tests failing both times.

One mechanical job across many files (translations). This worked, but it passed every scripted check and still had about 160 real errors that only a human-style read caught.

So far only two setups reliably end with passing tests: Claude writes the scaffolding and pins the edits (2.8M per finished task), or Claude does it all (2.3M). Each experiment above was on a single task, not a batch. I haven’t run a proper batch of near-identical changes (the same feature across 4–5 game modes) with the files and tests known in advance. I also haven’t compared whole workflows, counting failed attempts and review, against Claude doing the same batch. That’s the experiment I’d want to run next. What exploration budget has worked for you in OmniNode before you hand a task back?

1

u/jonah_omninode Oct 12 '26

I don't have a measured OmniNode cutoff to give you for that kind of repository work. My budget suggestion was a way to limit wasted attempts, not a number we've validated. You've already tried a ten-minute cap, and the repeated failures are a good reason not to keep extending it.

For the batch experiment, I'd prepare the shared context once and count that setup cost across the batch, rather than have Claude reread everything for each mode. The translation result also changes what I'd count as a pass: those 160 errors and the review needed to find them belong in the comparison. If the local workflow still loses after that, I'd leave those tasks with Claude.

1

u/KnottyDuck Oct 12 '26

Claude should be used to build roadmaps and your other agents just follow the plan. See how that works out.

1

u/s1mplyme Oct 13 '26

The only way this works is if you're trading Claude input tokens for local model output tokens. So you spend as few tokens as possible writing out condensed specs and then getting local ai to implement each spec, and then Claude to consume the output and validate the spec. Claude operates at a 5:1 output to input cost so as long as the spec + 1/5 of the code produced from it is shorter than the actual code you should come out ahead

1

u/upalse Oct 17 '26 edited Oct 17 '26

You're doing it upside down, try using the dumb model as the orchestrator doing broad strokes. It should be only smart enough to delegate well, that is:

  • route cheap stuff to local
  • stuff it knows is too complex and not worth to run local, delegate to API

API should range from deepseek all the way to opus, and the orchestrator should classify appropriately well. Eg ask opus for spec, then give it to deepseek (or local, if trivial enough) to implement etc.