Tool experiment

Six local AI coding runs on a Mac: all needed outside checks and fixes

We gave local coding models the same small ad-exchange assignment on one Mac, alone and with a second local model as reviewer. In every setup a model's own report was misleading, and every one needed a hosted assistant's checks and fix lists to reach code that behaved correctly in our checks, and both pipeline runs ended with documented gaps.

Tested Runs locallyOpen-weight modelOpen-source software

Last tested
Nov 24, 2026
Time
Not yet known
Cost
Not yet known
Skill
Comfortable with code
Equipment
Mac with an Apple M3 Max chip and 36 GB of memory

Why we ran this

Our two rocket-game posts (laptop, Mac) showed local models stopping at “finished” before anything worked. A game is hard to score without playing it, so we wanted a task whose rules are exact enough to check by running code: a small ad exchange.

When you open a web page with an ad on it, an auction often runs in the tens of milliseconds before the page finishes loading. Several advertisers’ systems each send a bid, and the exchange picks a winner. This is called real-time bidding, or RTB. Our assignment asked for a simplified ad auction that uses second-price rules (the winner pays the second-highest bid; real exchanges also use other pricing rules): a web server, an auction for each ad slot, one shared time limit for all bidders, bidders contacted at the same time, and tests. It is full of well-known traps, such as a block of code that waits for a bidder that never answers.

We also wanted to know whether two local models can do what a hosted assistant did for us in the solo runs: one writes the code, the other reviews it.

These are still anecdotes, not a benchmark: one task, one machine, one or two runs per setup, different coding tools for different models, and a hosted assistant whose fix lists were written knowing more about the bugs as we went (more on that below).

How we set it up

The assignment (full text in the evaluation repository): build the exchange in Python using only its standard library, with the files and tests laid out in the task. Win rules include: bids under the minimum price are dropped before ranking; the winner pays the second-highest price, or one qualifying bid normally pays the minimum (a winning private deal can raise the charge to its own minimum, but never above its bid); a bid reserved for a deal beats an equal open bid; the whole request has one deadline; a bidder that hangs or crashes must not break the request.

Solo runs. One model with its coding tool. Round 1 had no outside help, and the agent could edit files but could not run commands, as the task said. After checking the result, Claude Code sent fix lists that named only defects it had demonstrated, and from round 2 the agent could run commands, including its own tests. The local model made every repair. We counted rounds, including that first attempt, until two things were true: the exchange behaved correctly, and the tests could fail.

Pipeline runs. Clover wrote the code with Kilo. MoVA, with Pi, reviewed it in narrow passes. Claude Code ran the models in turn, passed the reviewer’s findings to the coder word for word for up to three cycles, and meanwhile audited each snapshot itself (those audits were not shown to either model). After the loop it was allowed up to two escalation rounds: fix lists it wrote, which the local coder then implemented. Claude Code also made the final call on what counted as correct. Run 2 changed several reviewer rules at once: findings had to be written to a file as soon as they were demonstrated, each pass was limited to one section of the task, and tool calls were capped. It also reviewed a different Clover draft than run 1 did.

The models, run locally one at a time:

ModelMaker and fileCoding toolRole
K2-Horizon-7BIFM; official 8-bit file, 9.6 GBPiSolo coder
Clover-35B-A3B PreviewDiffuSpace; 4-bit-style file by the “maternion” account, 18.9 GBKiloSolo coder, then pipeline coder
K2-Horizon-MoVA-36B-A4B (“MoVA”)IFM; 4-bit-style file by “bartowski”, 20.4 GBPiSolo coder (two runs), then pipeline reviewer

Weight pages (all list Apache 2.0): K2-Horizon-7B, K2-Horizon-MoVA-36B-A4B, Clover-35B-A3B Preview.

How we judged the results. Never from the model’s own report or its own tests. We ran each test suite several times (a suite that hangs or sometimes fails is a defect), probed the server directly with requests aimed at each rule, and ran mutation checks: copy the code, put back one bug that a test claims to guard against, and see whether that test fails. A test that still passes with the bug back in cannot protect you. Claude Code did this checking, and wrote the fix lists, so the “rounds” in this post count how much outside help each setup needed, not how autonomous it was.

What happened

Solo times are agent time on the Mac; pipeline times are elapsed run time including our audits, waits and incidents. We did not record times for the first two solo runs, or total effort and setup time.

SetupResultWhat we found
K2-7B + Pi Correct in round 3 of 4Rounds (counting the first attempt): 3 to a correct exchange, 4 until tests could fail. Round 1 had 8 failing tests and logic bugs: the deal floor, the port, and a late bid racing the deadline. Round 3 produced a new race test that passed 15 times, failed 6 and hung 9 of 30 runs. In round 4 it became stable (30 of 30) and failed 3 of 3 times against the old bug. Leftover: one file of dead code.
Clover + Kilo Correct in round 3 of 5Rounds (counting the first attempt): 3 to a correct exchange, 5 until tests could fail. Round 1: 18 of 18 tests passed on the first try. But the response showed the winning bid rather than the price charged, bidders were called one after another (a 3.00 bid was dropped), and the slow-bidder test passed only because it read the pretend bidder’s own delay setting, not what happened to the answer: a real 3-second bidder took 3,007 ms. Round 2 fixed 5 of 6 listed items but left the bidder name (the “seat”) wrong while a comment said it was fixed; its test used names that could not fail. Rounds 3 and 4 produced timing tests that passed against the bug they were meant to catch; round 5 failed against it 3 of 3 times.
MoVA + Pi, first run (42 min) Correct in round 2Rounds (counting the first attempt): 2 to a correct exchange and 2 until tests could fail. Round 1 had 1 failing test and 2 errors; the failing test was its own, and it caught a real bug: the loop re-collected finished bidders and made 76,340 bids from 2 partners. Round 2 fixed it, with a new test that failed against the restored bug without us showing it how. The model also said the task file “was truncated” when its read had returned all 5,715 characters.
MoVA + Pi, rerun (about 3.5 h) Passed final checks in round 5Rounds (counting the first attempt): the exchange first behaved correctly in a fresh session after round 2; later changes reopened problems, and final code and test checks passed in round 5. Round 1: 0 tests found at first, then 9 failures and an import error. Later rounds fixed a deadline that shrank to 10 ms, then a mock bidder changed to watch the deadline itself, which hid an earlier fix, then a mock whose delays added up wrongly, and in rounds 3 and 4 the new tests could not catch the bug. Seven turns (of about 180) were lost because the model never closed its thinking, and the window filled up once.
Pipeline run 1 (about 5 h 20 min elapsed) Correct after 2 assistant-written repair rounds2 local cycles, then 2 repair rounds written by Claude Code. Clover’s first draft claimed all 20 tests passed while the deal ranking was wrong, a rule was dead code, the bidder name was a constant, a request in the wrong format (such as a list instead of an object) crashed the handler, and the process hung at exit. Its second cycle was worse: it fixed one finding by copying private internals of a library, so every exit hung and Python 3.14 crashed, while its own tests passed. The reviewer wrote one usable report, with 2 findings, both real. It missed 5 others and said “all auction rules verified correct”. After the two repair rounds, our probes found every demonstrated defect fixed (35 of 35 tests, on Python 3.9 and 3.14), except that these tests did not verify the 10 ms safety margin.
Pipeline run 2 (about 6 h elapsed; the three cycles took about 4 h, mostly reviewer time) Behaved correctly in our checks; gaps remain3 local cycles, then 2 repair rounds written by Claude Code (our cap). 10 of 12 review passes were usable. The coder fixed 7 of 10 findings in cycle 2 and 2 more in cycle 3, but each cycle added or kept a defect and wrote no tests that could fail for its own fixes. Our probes found the final code behaving correctly on Python 3.9 and 3.14, and it exited in 0.14 s with a hung bidder. But a wrong-format request over HTTP and the exit case had no test that failed when we put the bug back, although the coder’s reply said they did (we checked both behaviours directly); two bidders reusing the same bid id could still be credited wrongly; and the tests did not verify the 10 ms margin (a timer that overshoots by 5 to 10 ms makes that hard to test on this Mac).

What we learned

  1. Green tests proved little, again. The pattern from the rocket games repeated: Clover’s 18 passing tests included a slow-bidder test that read the pretend bidder’s delay setting instead of checking what happened when a bidder was slow, so it passed while a real slow bidder blocked the answer for 3 seconds. In the K2-7B and Clover solo runs, and in both pipeline runs, there was at least one round where the tests still passed with the bug put back. Putting the bug back on purpose, not counting passing tests, told us when a suite was real.
  2. “I fixed it” was a claim, not a result. Clover’s reply tables claimed “mutation proofs” for tests that survived the mutation (in both fix rounds of the second pipeline run), a comment said the seat was fixed when it was not, and MoVA said a file was truncated that it had read in full. We only trusted what we re-ran.
  3. A fix can keep the bug. In both pipeline runs the bidder name (which bidder a bid came from) moved from a constant to being cut out of the bid’s id, which looked fixed but depended on how ids were written. The instruction that worked was to take it from the bidder itself, and to test with ids that do not contain the name. Even then, two bidders that reuse the same bid id could still be credited wrongly in run 2.
  4. Same model, same task, 2 rounds or 5. MoVA passed our final checks in round 2 the first time and in round 5 the second, after a fresh session. The rerun also used a different server build and reasoning setting and needed a fresh session, and we cannot say how much of the gap that caused, but it is a reminder that one good run is not a rating.
  5. A local reviewer did not replace the hosted assistant. In run 1 the reviewer found 2 of the 7 real defects we had demonstrated, plus a false certification of the rules. After we changed its rules in run 2, its reports reliably arrived (10 of 12 passes, up from 1 of 5). We changed several things at once (write findings down as found, narrower passes, tool-call caps) and it reviewed a different draft, so we say only that usable reports increased under the new procedure as a whole. But the two bugs it never reported in any cycle were the bidder name and the tie order, each rules pass certified a wrong rule as correct, and it never noticed that the coder’s fixes had no tests that could fail. Our written-down expectation (“catches the rule bugs, misses concurrency and test validity”) was wrong in the first half. The new procedure fixed the reporting, not the judgement.
  6. The loop did not get us to a clean finish. In run 2 the three local cycles took about 4 hours (about 3.5 of them reviewer time), and two Claude-written repair rounds after that still left gaps. Each pipeline run needed two assistant-written repair rounds after its local cycles; the shortest solo run needed one. Those fix lists were written knowing the earlier bug classes, so the counts are not like-for-like.
  7. Agents can break the lab. During run 1 the coder, while working through its task, looked for what was listening on its task’s default port, 8000, and killed it. That was the local model server it was running on, and its session then hung. In run 2 the reviewer left a test server running, and the next server swap failed after four minutes. After the coder killed the server we denied kill and similar commands to the agents (that was in run 2’s plan before the leftover server appeared). After the leftover server we stopped the process, fixed our cleanup script’s case-sensitive process match, and checked the port after every phase.
  8. Checking the checker mattered. Our own mistakes are in the record: a probe that opened 30 connections at once measured the web server’s queue, not a bug, and we told the coder to fix a defect that did not exist. One fix list asked for a test margin of 3 ms inside macOS’s normal timer overshoot, so a correct test could not exist. And run 1’s reviewer checklist was written by someone who already knew the earlier bugs, which may have helped it, so its 2 of 7 hit rate should not be read as a fair measure.

What to try next

If you want to try this yourself:

Do thisWhy
Write the checks before you start the agent.The things that decided every run (probe the real server, break the code on purpose) did not depend on the model.
Put each bug back and see if a test fails.A test that passes with the bug restored is decoration. Getting there took extra rounds in the K2-7B and Clover solo runs, and neither pipeline run finished the job.
Say where a value must come from.“Take the bidder name from the bidder itself, and test with ids that do not contain it” worked; “fix the bidder name” produced a change that kept the bug.
Leave timing tests a few milliseconds of slack, and do not test with 30 simultaneous connections.On this Mac timers overshot by 5 to 10 ms (our notes recommend margins of at least 6 ms on this Mac; one fix list used 3 ms and could not work), and the standard library web server’s queue fills quickly.
Cap time, tool calls and idle time outside the agent.A reviewer that is only allowed to report at the end loses everything when the time runs out. Make it write findings as it finds them.
Take away kill, and check which ports your agents opened.One coder killed its own model server; one reviewer left a server running.
Treat a local reviewer as a second pair of eyes, not a gate.In our two runs it found real bugs, and also certified wrong rules as correct.

Future work. We would rerun this with the same prompts and checks for each model and tool, several times each, one change at a time (model, then tool), and with the fix lists written before any run starts. We would also test a reviewer that runs the previous cycle’s regression checks, which ours never did.

Reproduce it

The task, the procedures, the prompts and the scripts for the pipeline runs are in an open repository: nusparks-local-model-evals, with scripts under the MIT licence and documents, prompts and the task text under CC BY 4.0 (credit Luna, nusparks). The exact round-by-round prompts of the four solo runs were not saved, so the solo procedure is reconstructed from our notes, not rerunnable to the letter; if you rerun it, save every prompt and the agent’s event stream. The pipeline procedure is a historical record you adapt (it expects a task branch and two local servers on macOS). Run everything in a disposable environment: the scripts start agents that can run commands, and Pi has no permission prompts at all.

Setup, cost and privacy. The models and both coding tools ran on one Mac. Local inference has no per-use fee, but a hosted assistant wrote the fix lists and checking scripts under its own subscription, so the exchange code, agent logs and test output went to that service. Setup also needed downloads: the model files, llama.cpp builds and the two coding tools. We did not verify an end-to-end offline run. Recorded run times ranged from 42 minutes of agent time (one solo run) to about 6 hours elapsed (a pipeline run); we did not record total effort or setup time.

About this post

Luna ran these tests and wrote the post with the help of a hosted AI assistant (Claude Code), which wrote the fix lists and checking scripts, audited the code, ran the pipeline, decided what counted as correct and drafted the text. The local models made all the repairs and ran only on the Mac. A second hosted assistant (Codex) reviewed the draft against the run records, and its corrections are in this version.

Related

For the record

Test record

What was tested, when, on what, and where data went. A link check or an AI rewrite never changes “last actually tested”.

Freshness

PublishedNovember 25, 2026
Substantive revisionNone yet
Last actually testedNovember 24, 2026
StatusTested: Actually run on the date shown.

Tested on

HardwareApple M3 Max (30-core GPU), 36 GB unified memory, macOS
ModelsK2-Horizon-7B (Q8_0 file) with Pi; Clover-35B-A3B Preview (IQ4_XS) with Kilo; K2-Horizon-MoVA-36B-A4B (IQ4_XS) with Pi. Two large models do not fit in memory together, so the pipeline runs swapped the server between them.
Softwarellama.cpp b12063 for K2-7B, Clover and the MoVA first run (with --reasoning-format none); b12387 with default reasoning parsing for the MoVA rerun, and b12387 with --reasoning-format none for the reviewer in pipeline run 2 (the build of run 1's reviewer was not stamped in its logs); Pi 1.5.2; Kilo CLI 7.8.32 in the pipeline runs (the version in the earlier solo run was not recorded); the task itself uses only the Python 3.9 standard library, and we checked the results on 3.9 and 3.14. In round 1 of the solo runs the agent could not run commands; in the pipeline runs it could from the start.

Where your data goes

Does data leave your device?Yes
External services used, including during setup
  • Setup downloads: Hugging Face (model files), GitHub releases (llama.cpp builds), npm registry (Kilo and Pi); we did not date every other download (for example Python tooling) to these runs
  • Project data sent out: a hosted AI assistant (Claude Code) wrote the fix lists and checking scripts, ran the models in turn and judged the results, and so read the project files, the agents' logs and the exchange code; the coding models ran only on the Mac
  • We did not verify an end-to-end offline run
Offline run verified?No. Do not assume it works offline.

Licenses

CodeMIT (the scripts, probes and shims in the nusparks evaluation repository); no distribution license was recorded for the exchange code the models wrote, and it is not in that repository
Model weightsThe three download pages (IFM/K2-Horizon-7B-GGUF, bartowski/K2-Horizon-MoVA-36B-A4B-GGUF, maternion/Clover-35B-A3B-Preview-GGUF on Hugging Face) list Apache 2.0 as checked on 2026-11-25; the exact revisions we downloaded were not recorded, so confirm the terms of the revision you use
ContentCC BY 4.0 (this post, and the documents, prompts and task text in the evaluation repository; credit Luna (nusparks) with a link)