AIDevelopment

Can a local model take the coder's seat? What 36 real-ticket runs showed

•
4 min read

I run real tickets through an agentic pipeline: an orchestrator supervises, a coder writes the code, and a second model reviews it. I wanted to know whether a model running on my own machine could take the coder's seat.

I had four reasons to ask it: the cost of hosted coders, keeping client code on my own machines, not depending on API quotas and rate limits, and curiosity. Only the coder's inference moved to my machine. Supervision and review stayed hosted.

The test

Six coders, three real tickets from a private production codebase, two repeats each. That is 36 runs, with one frozen plan per ticket and the same orchestrator and reviewer. A run is shippable when the review is CLEAN and every hidden test passes. Those tests are withheld from the coder and run after it exits.

What happened

The three flagship hosted models shipped all 18 counted runs. Voided attempts could be retried; their usage is outside the cost figures. The two local models shipped 3 of 12. All three were on the warm-up ticket, whose plan and briefs named the change for every coder. Two also took test assertions from the orchestrator's fix briefs. On the medium and hard tickets they went 0 for 8, none reaching review.

Shippable runs, share of runs that passed review and every hidden test · higher is better, per coder: Opus 6/6, Astra 6/6, Neon 6/6, Haiku 4/6, Gemma 2/6, Qwen 1/6.

"Free" was the most expensive per result. A local coder is priced at $0, but the orchestrator still supervises it. Price the coder and orchestrator usage of a coder's six runs at API list prices, and divide by the runs that shipped: $21.88 for Qwen and $15.02 for Gemma, the two local models, against $7.91 to $12.92 for the flagship coders.

Haiku, the small hosted model, shipped 4 of 6. Both misses were path slips. In one, two edits landed in the wrong checkout. In the other, a blocked log write tripped an audit rule that changed mid-benchmark.

An instruction is not containment

One attempt outside the 36 changed the harness. A local coder left its worktree, guessed where my real checkout lives, committed there and discarded uncommitted work. Nothing was pushed; the work was recovered from its log. Later counted runs used an OS sandbox.

The OS sandbox around one run, holding Fable, the coder, git, the tests and the reviewer wrapper. It may read and write its own run folder, write temp folders, review logs and tool state, and reach the web and the model server. It may not read the real checkout, the private kits, other runs or SSH keys, write anywhere else except /dev, or connect to ssh and common database ports, Docker or other agents' sockets, or ports listening at run start other than the model server and remote ports 80 and 443. Settings, skills and hooks are read-only. Two holes: the reviewer's commands run in its own read-only sandbox, outside this profile's read rules, and one system utility may start outside it.

What I do now

I keep a big hosted model as the coder. I will try the small hosted model on easy tickets.

Caveats

The sample is small: 6 runs per coder, 3 tickets, one repository. Claude built the harness, wrote the hidden tests, orchestrated every run and supplied two coders: Opus and Haiku. The local models' agent CLI, Claude Code, assumed a context window almost four times the one Ollama served. An addendum re-ran the 8 harder-ticket local runs with the window fixed: 1 of 8 shipped, against none, applying fixes the orchestrator largely specified. Too few, and an audit rule also changed, so it cannot isolate the fix.

The full write-up covers the method, the diagnoses of the 11 original failures and the public harness source: https://www.emadibrahim.com/blog/local-model-agentic-coding-benchmark?utm_source=company&utm_medium=social&utm_campaign=model-bench-article