The question

Where has local AI caught up with the cloud?

Where local stands, November 2026

Local hasn't caught up on any coding work measured so far.

Mahoraga is a long-term study of local against cloud AI on the same real commits. Each attempt is graded by the repository's own tests, and every number here is recomputed from committed data.

Real commits resolved

  1. qwen3.5, 9.7B, 32k contextFits a 16 GB laptop

  2. qwen3.5, 9.7B, 131k contextFits a 16 GB laptop

  3. qwen3.6, 35B, 131k contextNeeds 24 GB or more

  4. qwen3.5, 9.7B, 131k contextRun on the 16 GB laptop itself

The first three rows are one setting each on the same 92 commits from more-itertools, click and attrs, run on a Mac Studio with the laptop's exact model file for qwen3.5. The last row is the laptop's own run on the 47 of those commits from more-itertools and attrs, and on the same 47 the Studio resolved 18.12

One row for each kind of work, with both sides on the same tasks.

Local has caught up with a cloud tier when the cloud's lead on the same tasks stays under 10 points across its whole 95% interval. No row has crossed yet.

WorkLocal, best measuredCloud, same tasksCaught up?At today's prices
Real commits from attrs and more-itertools (47 tasks)aider and qwen3.5 (9.7B) on a 16 GB MacBook: 17 of 47, 36% (95% interval 24% to 50%)Claude Code and Opus 5.5: 47 of 47, at $0.21 a taskSonnet 5.5: 43 of 47, at $0.07 a taskHaiku 5.5: 47 of 47, at $0.01 a taskOpus 5.5: behind by 64 points (50 to 76)Sonnet 5.5: behind by 55 points (38 to 69)Haiku 5.5: behind by 64 points (50 to 76)Stay on the cloud. To break even at what each tier spent, local needs 95% against Opus, 98% against Sonnet and 100% against Haiku.
The 19 of those committed after June 2026, past Opus 5.5's stated training cutoff3 of 19Opus 5.5: 19 of 19Sonnet 5.5: 18 of 19Haiku 5.5: 19 of 19Opus 5.5: behind by 84 points (53 to 94)Sonnet 5.5: behind by 79 points (49 to 91)Haiku 5.5: behind by 84 points (53 to 94)Not priced on its own
The same 47, with Claude Code driving the local model tooClaude Code and qwen3.5 (9.7B, the laptop's model file) on a 64 GB Mac Studio: 34 of 47, 72% (95% interval 58% to 83%)Opus 5.5: 47 of 47Sonnet 5.5: 43 of 47Haiku 5.5: 47 of 47Opus 5.5: behind by 28 points (17 to 42)Sonnet 5.5: not settled at 19 points (5 to 34)Haiku 5.5: behind by 28 points (17 to 42)Not priced on its own
Real commits from attrs, more-itertools and click (92 tasks)aider and qwen3.6 (35B) on a 64 GB Mac Studio: 31 of 92, 34% (95% interval 25% to 44%)Not run yetNo standing until a cloud tier runs these tasksStay on the cloud. Local needs 77% at an assumed $0.75 a cloud task.

Being measured now

  • New commits mined every night, so each new model meets work made after its release.

Coding comes first because a commit grades itself with its tests. Another kind of work joins the map only when it has a check just as mechanical, and real tasks behind it.

Every number in the table is recomputed in CI from the committed attempts. Read the report

Each task is a real commit with the fix taken out.

The agent starts from the code as it stood before the fix, and the commit's own tests decide whether its attempt counts.

more-itertoolsf89d7a3

Issue 1304: make ichunked match chunked for n=0 and negative n

The fix the bench took out of more_itertools/more.py
@@ -3718,6 +3718,11 @@ def ichunked(iterable, n):
     [8, 9, 10, 11]
 
     """
+    if n is not None and n < 0:
+        raise ValueError('n must be at least 0')
+    if n == 0:
+        return
+
     iterator = iter(iterable)
     for first in iterator:
         rest = islice(iterator, n - 1)
What the agent wrote in its place
@@ -3718,6 +3718,11 @@ def ichunked(iterable, n):
     [8, 9, 10, 11]
 
     """
+    if n < 0:
+        raise ValueError('n must be at least 0')
+    elif n == 0:
+        return
+    
     iterator = iter(iterable)
     for first in iterator:
         rest = islice(iterator, n - 1)

Resolved

Both of the commit's tests now pass, and none of the 765 tests that passed before broke.

  • 45.6 minutes for the attempt
  • About 210,000 tokens read and 2,200 written, over 2 model calls
  • Apple M4, 16 GB (Mac16,1), the night of October 28

This is the first task of the laptop's own run at 131k. It was picked by its position and not by its outcome, and one attempt says nothing about the rate.

Most of the gap was the context window.

On a 64 GB Mac Studio, a 131k window took the laptop's 9.7B model from 9 to 28 of 92 commits, near a 35B model's 31. All three fall well short of the 95% that local needs to pay for itself at the measured $0.15 a cloud task.

28 of 92 commits solved. This is the same model file, given a window big enough for the files it reads. Compared with qwen3.5 at 32k, 21 commits went from unsolved to solved and 2 went the other way. A paired test gives p below 0.001, so a split this uneven would be rare if the two settings did equally well.

Point at or tap a square to see its commit and how each setting did on it.

SolvedNot solvedChanged with this settingSquares run by repository and then by commit date, so no outcome decides where one sits.
92 commits from attrs, click and more-itertools, one square each
Commitqwen3.5 at 32kqwen3.5 at 131kqwen3.6 35B at 131k
attrs 7373d88 2024-08-06Not solvedSolvedNot solved
attrs 6fda0a4 2024-08-06Not solvedNot solvedNot solved
attrs 5d6d21a 2024-08-06Not solvedNot solvedNot solved
attrs 1921da6 2024-10-26Not solvedNot solvedSolved
attrs e21793e 2024-11-17Not solvedNot solvedNot solved
attrs 13105a6 2024-11-25SolvedSolvedSolved
attrs 1e07f46 2024-12-10Not solvedNot solvedNot solved
attrs 75723b7 2025-02-09Not solvedNot solvedSolved
attrs e048efc 2025-02-09SolvedSolvedSolved
attrs 1c962d1 2025-03-08SolvedNot solvedSolved
attrs 3b0378d 2025-03-13SolvedSolvedSolved
attrs 577c782 2025-06-18Not solvedNot solvedNot solved
attrs 937b1e2 2025-07-27Not solvedNot solvedNot solved
attrs cbaef3f 2025-07-28SolvedSolvedNot solved
attrs 5bab46d 2025-07-29Not solvedSolvedSolved
attrs 6e3786c 2025-08-04Not solvedNot solvedNot solved
attrs 862696a 2026-03-07Not solvedNot solvedNot solved
attrs ce89f5d 2026-03-14Not solvedNot solvedNot solved
attrs af9c510 2026-03-14Not solvedSolvedSolved
attrs a572c3a 2026-03-14Not solvedNot solvedNot solved
attrs 48b8611 2026-03-14Not solvedNot solvedNot solved
attrs 0f758fe 2026-04-16Not solvedNot solvedNot solved
attrs 97f8d17 2026-07-31Not solvedSolvedSolved
attrs 4b5b295 2026-08-01Not solvedNot solvedNot solved
attrs 5aa76a4 2026-08-01Not solvedNot solvedNot solved
click 665736b 2026-05-27Not solvedNot solvedNot solved
click 684b3f5 2026-05-28Not solvedNot solvedNot solved
click 399919f 2026-05-29Not solvedNot solvedSolved
click 051bb0f 2026-06-03SolvedNot solvedNot solved
click 27b3ee2 2026-06-26Not solvedNot solvedNot solved
click 93ba007 2026-07-01Not solvedNot solvedNot solved
click 9f9b149 2026-07-07Not solvedNot solvedNot solved
click 07c909f 2026-07-08Not solvedNot solvedNot solved
click 3495fba 2026-07-09Not solvedNot solvedNot solved
click 71f2baf 2026-07-09Not solvedNot solvedNot solved
click 7a0a344 2026-07-16Not solvedNot solvedNot solved
click 051725f 2026-07-17Not solvedNot solvedNot solved
click fbdd434 2026-07-17Not solvedNot solvedSolved
click 8ee83dd 2026-07-17Not solvedSolvedSolved
click c2ed414 2026-07-20Not solvedSolvedSolved
click 047adef 2026-07-31Not solvedNot solvedSolved
click a2ac583 2026-08-13SolvedSolvedSolved
click f316d5c 2026-08-15Not solvedNot solvedNot solved
click 1f9cd54 2026-08-15Not solvedNot solvedSolved
click bc32a92 2026-08-17Not solvedNot solvedNot solved
click a6256bf 2026-08-19Not solvedNot solvedNot solved
click a1d8785 2026-08-19Not solvedNot solvedNot solved
click f58ca3e 2026-08-29Not solvedNot solvedNot solved
click fc518e4 2026-08-31Not solvedNot solvedNot solved
click 271effb 2026-09-02Not solvedNot solvedNot solved
click 22177f8 2026-09-08Not solvedNot solvedNot solved
click f25f697 2026-09-10Not solvedSolvedNot solved
click 05f6fd0 2026-09-10Not solvedSolvedSolved
click f67c2bb 2026-09-11Not solvedNot solvedNot solved
click e2bddbc 2026-09-11Not solvedNot solvedNot solved
click b90faad 2026-09-22Not solvedNot solvedNot solved
more-itertools 073d234 2025-12-30Not solvedNot solvedNot solved
more-itertools b0aa91e 2025-12-30Not solvedSolvedNot solved
more-itertools d9adeb4 2025-12-31Not solvedNot solvedNot solved
more-itertools def2d82 2026-01-02Not solvedNot solvedNot solved
more-itertools 06f3181 2026-01-02Not solvedSolvedNot solved
more-itertools f91c733 2026-01-28Not solvedNot solvedSolved
more-itertools be5793a 2026-02-02Not solvedNot solvedNot solved
more-itertools db4f41b 2026-02-09Not solvedSolvedNot solved
more-itertools 18c57c7 2026-03-31Not solvedNot solvedNot solved
more-itertools 8089263 2026-03-31Not solvedNot solvedNot solved
more-itertools d63a26e 2026-03-31SolvedSolvedSolved
more-itertools 93c1cf8 2026-03-31SolvedSolvedSolved
more-itertools 71b46b0 2026-03-31Not solvedSolvedSolved
more-itertools 52cfcfe 2026-04-02Not solvedSolvedSolved
more-itertools edb3346 2026-04-10Not solvedSolvedSolved
more-itertools ba7ef94 2026-05-13Not solvedNot solvedSolved
more-itertools 842a2b1 2026-06-09Not solvedSolvedNot solved
more-itertools 43decdd 2026-06-17Not solvedNot solvedSolved
more-itertools f51a53b 2026-06-29Not solvedSolvedSolved
more-itertools d64a7d6 2026-06-30Not solvedSolvedSolved
more-itertools 958990e 2026-07-02Not solvedSolvedSolved
more-itertools d992be0 2026-07-12Not solvedSolvedNot solved
more-itertools 069b300 2026-07-16Not solvedNot solvedNot solved
more-itertools 0e6acdf 2026-07-19Not solvedSolvedNot solved
more-itertools dc2664b 2026-09-02Not solvedNot solvedNot solved
more-itertools 7847d43 2026-09-03Not solvedSolvedSolved
more-itertools ce676d2 2026-09-04Not solvedNot solvedNot solved
more-itertools 1fd388b 2026-09-07Not solvedNot solvedSolved
more-itertools 6b1907d 2026-09-09Not solvedNot solvedNot solved
more-itertools 752799b 2026-09-11Not solvedNot solvedNot solved
more-itertools e426d25 2026-09-12Not solvedNot solvedNot solved
more-itertools def2dab 2026-09-14Not solvedNot solvedNot solved
more-itertools 2b8d5cd 2026-09-17Not solvedNot solvedNot solved
more-itertools 670b715 2026-09-18Not solvedNot solvedSolved
more-itertools 3eb4053 2026-09-22Not solvedNot solvedNot solved
more-itertools f89d7a3 2026-09-29Not solvedNot solvedNot solved

If you run a local agent, check its context window before you buy more memory. On a 16 GB laptop the larger window is much slower, but the laptop's own run solved about as many of the same commits as the Studio.

Every result is in the log, and so is every correction.

Each entry is dated and links to the attempts it came from. A correction also says what was wrong and what changed.

November 2026

  1. With the same agent on both sides, local solved 34 of the 47.

    Claude Code drove qwen3.5 through Ollama on the Mac Studio, with the laptop's own model file and the cloud run's version, flags and prompt. It resolved 34 of the 47 tasks, where aider with the same model on the same machine resolved 18, so the agent accounts for much of the gap to the cloud. The cloud still leads, by 28 points against Opus and 28 against Haiku, while Sonnet's lead of 19 points is not settled. It is the first standing on the map that isn't "behind", and it isn't a crossing. On the 19 tasks committed after June 2026, local solved 17.

  2. Caught up is now measured by the gap on the same tasks.

    Priced at what Haiku 5.5 spent, the break-even line asked local to resolve 100% of the queue, which measured the cloud's price more than local's ability. Each tier is now compared with local on the same tasks, as the gap between their resolve rates with its 95% interval. Local has caught up when the whole interval sits under 10 points, a margin fixed before any new run, and a crossing is printed only after freshly mined tasks confirm it. Local is behind every tier today, by 64 points against Opus, 55 against Sonnet and 64 against Haiku. Even Sonnet against Opus is too close to call on 47 tasks, so the coding row will grow toward about 150. The break-even verdict keeps its own column, as the answer to whether moving work to local pays.

  3. The cheapest cloud tier solved every task as well.

    Claude Code ran the laptop's 47 tasks again on Sonnet 5.5 and Haiku 5.5. Haiku resolved all 47 at about $0.01 a task, and Sonnet resolved 43 at $0.07. A cheaper tier makes local's case harder, since each task local takes off Haiku's bill saves less than a cent. Priced at what each tier spent, local would need 95% against Opus, 98% against Sonnet and 100% against Haiku.

  4. The study now asks where local has caught up, one kind of work at a time.

    Each kind of work is now a row, with local and cloud measured on the same tasks, and local has caught up on a row when even the low end of its interval clears the break-even line. No row has crossed yet, since on the 47 paired tasks local still needs 95%. The cloud side now includes Sonnet 5.5 and Haiku 5.5 beside Opus 5.5, because local may reach a cheaper tier long before the best one. Coding comes first because a commit grades itself with its tests, and another kind of work joins only with a check just as mechanical.

  5. Each task is now checked against the fix that shipped.

    A commit used to become a task when its tests failed without the fix and passed with it. Mining now also grades the real fix like an attempt, so a test the fix itself breaks no longer counts against an agent. Each check can run several times, and a test whose result changes between runs is left out of the grade. Mined again this way, with each check run five times, all 47 published tasks came out the same, so no published result changes.

  6. Measured on the same tasks, the cloud solved every one.

    Claude Code running Claude Opus 5.5 resolved 47 of the laptop's 47 tasks, so its rate is at least 92% at 95% confidence. The cloud alone solved 30 of those tasks and the laptop alone solved 0 (McNemar p < 10⁻⁸). On the 19 tasks committed after the model's June 2026 knowledge cutoff it still solved 19, against the laptop's 3. Claude Code can run the tests itself and aider can't, so this compares the two agents as they ship.

  7. Priced at what the cloud spent, local needs 95% to pay.

    At API list prices the cloud spent $0.21 a task, and only $0.15 on the tasks the laptop also solved, against $0.24 on the rest. Each task local takes off the bill saves only that $0.15. The laptop would then have to resolve 95% of queued tasks to pay, compared to 77% at the assumed $0.75.

  8. Measured on the laptop itself, the answer is still to stay on cloud.

    The 16 GB laptop resolved 17 of 47 outside tasks at 131k (36%), short of the 77% that local needs to pay at $0.75 a cloud task. Only 2 of its failures ran out of time, so the verdict calls the stay decided.

  9. With the clocks fixed, the laptop solves what the Studio solves.

    On the 47 tasks both machines ran with one model file at 131k, the laptop solved 17 and the Studio solved 18. A 4 to 5 split of the tasks they disagree on is what chance alone would produce (McNemar p = 1.00), so the laptop reaches the same answers, only slower.

October 2026

  1. The laptop began its own run at 131k.

    The 16 GB laptop ran qwen3.5 on 47 outside tasks, with 90 minutes an attempt and no shorter clock inside the agent.

  2. Granite 4.2 writes code no better than 4.1.

    On HumanEval+ the laptop's granite 4.1 passed 132 of 164 tasks and granite 4.2 passed 130. A 20 to 18 split of the tasks they disagree on is what chance alone would produce (McNemar p = 0.87).

  3. The first granite run measured the harness.

    Granite 4.2 seemed to answer only 46 of 164 tasks, because its reasoning outran a two-minute client limit. The cascade had also sent 25 of granite 4.1's tasks to Claude. The rerun records every answer's reasoning, escalation and errors, and 0 of its 328 answers came from the cloud.

  4. A clock inside the agent set the laptop's numbers.

    On 28 tasks both machines ran with one model file, the laptop solved 8 and the Studio solved 14. The logs showed aider cutting each long request at 10 minutes, so a request now gets the attempt's whole limit.

  5. A 20-minute limit measured the clock.

    The laptop's first night at 131k timed out on 26 of 38 attempts, since reading one long prompt takes it over ten minutes. The verdict now refuses to call a stay decided when most failures are timeouts.

  6. Most of the hardware gap was the context window.

    A 131k context took the model that fits 16 GB from 9 to 28 of 92 outside tasks. The 35B model that needs 24 GB resolves 31, so the wider window accounts for 19 of the 22 tasks between them.

  7. At the same context, the two models are hard to tell apart.

    They disagree on 21 of the 92 tasks, and a 9 to 12 split is what chance alone would produce (McNemar p = 0.66).

  8. An agent could read the answer, so its attempt was discarded.

    The first opencode attempt ran git show on the commit that held the fix, so every task clone is now rebuilt without it. Aider can't run shell commands, so no aider result was affected.

  9. One model's replies measured the interface.

    Ornith-1.5 answered aider in tool-call markup that aider can't apply, so those attempts were set aside and never scored.

  10. The larger model also leads on commits it can't have seen.

    On 56 outside commits made after its release, qwen3.6 resolves 17 against qwen3.5's 2, and the two intervals don't overlap.

  11. The same tasks reversed a reading from the day before.

    The first Studio comparison gave the two models different tasks and concluded that more memory only made attempts faster. On the same 92 tasks the larger model resolved 31 to the smaller model's 9.

  12. A developer's time sets the bar for local.

    At $0.75 a cloud task, local pays only once it resolves 77% of queued tasks, because each failure costs 3 minutes of triage. On a flat subscription, the engine's answer for most people is that they aren't wasting money.

  13. Only more tasks narrow the interval.

    An interval counts tasks, so the 18 tasks of the first probe leave it between 12% and 51% however often they rerun. The bench therefore grew to three outside repositories.

  14. A src-layout bug tested the wrong copy.

    In two repositories the tests imported the original checkout, and the benchmark's own gates rejected every affected task.

September 2026

  1. A second agent ran in the wrong folder.

    All 17 of its first attempts were voided, and every agent now runs inside an operating-system sandbox.

  2. The laptop never generated 30 tokens a second.

    Measured idle, qwen3.5 reaches about 14.5 tokens a second on the laptop, so speed readings now wait for an idle machine.

  3. About one real edit in four landed.

    On 18 of Mahoraga's own commits, aider with qwen3.5 resolved 5, and the tests caught every failed attempt. A median attempt took 8.3 minutes, which is why the engine runs as an overnight queue.

  4. The best model at prompts was the worst at edits.

    Granite 4.1 resolved 0 of the same 18 commits, since most of its edits targeted code that wasn't in the file.

  5. The small local tier stopped getting new models.

    From June to September the flagship open models grew past what a 16 GB machine can run, and no smaller release showed a verified gain.

  6. A second pass corrected the first on the same day.

    Granite 4.1's HumanEval+ score was logged as 80.49, which no source supports, and the model card says 79.88. The first pass also called the small tier vacated, although releases had continued without a verified upgrade.

  7. The usage meter read zero because the tool was unplugged.

    The integration it measured had broken a month earlier, so that window was voided, and a liveness check now tells "not used" from "not there".

August 2026

  1. Every published number is bound to its data.

    Each figure names the per-attempt file it came from, and CI recomputes it from that file on every change.

  2. The cascade's result replicated, and a stronger judge bought nothing.

    An independent rerun of all 164 tasks reached the same 0.921 pass@1. A stronger judge raised fail-recall from 0.688 to 0.784 and cost $6.27 more per thousand tasks without changing quality.

  3. A local-first cascade kept 94% of cloud quality at 24% of the cost.

    On 164 HumanEval+ tasks, a free local model went first and a local judge sent what it rejected to the cloud. The cascade reached 0.921 pass@1 at $8.47 per thousand tasks, against 0.976 at $35.97 for cloud alone.

  4. The learning router never beat taking turns.

    On two banks the bandit scored below simple round-robin between the two local models, so the repository claims no gain for it.

July 2026

  1. A heuristic quality score didn't track working code.

    Checked against hidden tests, the score barely followed correctness, so grading moved to running the code against tests.

April 2026

  1. Mahoraga started as a router in simulation.

    The first version learned which agent should take each task, and it was tested on synthetic traffic only.

The findings ledger in the repository has every experiment since April, including the ones this log leaves out. Read the findings ledger

Follow new entries in a feed reader

Notes

  1. The first three rows ran from 2026-10-06 to 2026-10-14 on a Mac Studio M5 Max, 64 GB (Mac17,14), and the laptop's row ran from 2026-10-28 to 2026-11-01 on a MacBook Pro M4, 16 GB (Mac16,1) with 90 minutes an attempt. Each used aider 0.86.2, diff edit format, blind, with one attempt per task. Rates are task-weighted with a 95% Wilson interval over tasks (agentbench/stats.py), and CI recomputes them with orch bench verify from experiments/agentbench/studio-2026-10.jsonl and experiments/agentbench/laptop-2026-10-131k.jsonl.
  2. The break-even line and the verdicts come from audit/verdict.py. The line is priced at what Claude Code on Claude Opus 5.5 spent, at API list prices, on the tasks the laptop solved (report §4). The verdicts' assumptions are listed in the verdict section, and the plan prices are the dated observations in audit/pricing.json.

Numbers from docs/site/site.json at commit 8c130c0.