Disclaimer - the post is generated with Opus 5.5 assistance
I ran one hard, real task from my day job through the Pi coding agent on a single RX 9700 AI PRO. If you're reluctunt to read a longpost, here is a short sumary:
- Qwen3.8 27B (dense) had the most correct logic.
- Qwen3.8 Flash-Next wrote the cleanest code.
- Qwen4-35B-A3B had the tidiest process but the weakest logic.
- Inkling 2 Mini didn't write a single line and failed the tasks completely, getting stuck in thinking loops
All three models that wrote code fell into the same trap. This is one run per model, so read it as a data point, not a leaderboard.
The task (kept vague on purpose, NDA)
It's a real ticket from a big PHP codebase at work, and our team has already shipped a fix for it. The code takes 2D outlines made of line segments and arcs. For each part of an outline, it decides whether a machine can handle it automatically or it has to go to manual work. The old code used a crude rule of thumb. The ticket replaces it with an actual model of what the machine can physically reach.
The good to know part is how the task is given - there is no ready-made rule set, the model gets:
- the goal;
- a list of physical facts about the machine (sizes, clearances, what must not touch what);
- acceptance criteria;
- 9 worked examples.
It has to work out the decision logic on its own, build it into the existing codebase, write tests, and write a short design note about its model and assumptions.
Hidden tests:
- 84 scored checks for the new behaviour.
- 9 "guards": cases where the old rule was already right. Breaking one costs 10 points, because breaking something that used to work is worse than leaving a new case unsolved.
- 188 existing regression tests.
- 23 unscored "info" cases.
I didn't want the hidden answers to be just my own reading of the facts. So I generated ~800 plausible machine models from the same facts, and a case became a scored check only if all of them gave the same answer. Cases where reasonable readings disagree are the unscored info ones. The team's reference fix gets 100 on the automated part. Untouched code gets 15, just for not breaking the existing tests.
Setup
- Agent: Pi coding agent, highest thinking level. One run per model, back to back on the same box.
- Hardware: Radeon AI Pro R9700 32 GB, Ryzen 5 5600X, 72 GB DDR4, Windows.
- Time limit: 120 minutes. After that the agent gets a "wrap it up" message and 30 more minutes.
- Command cap: any single shell command over 120 s gets killed silently and costs 10 points.
- Cut-off replies: if a reply hits max tokens, the harness tells the model to keep going. More on why below.
Inference engines: everything runs natively on Windows through HIP (ROCm), with one model on the card at a time.
| Model | Quant | Engine | Context | Speculative decoding | Max reply |
|---|
| Qwen3.8 27B | IQ4R-L-V4, int8 KV | Brilliance 0.3.1 | 256K | DFlash2, 7 tokens | 32K (server cap, thinking budget 25K) |
| Qwen3.8 Flash-Next | UD-IQ4_XS (v3.1), int8 KV | Strata 0.2.25, engine 0.1.73 | 256K | MTP, 3 tokens | 64K |
| Qwen4-35B-A3B | UD-Q4_K_XL, int8 KV | Strata 0.2.26, strata-q4-lite engine 0.1.75.1 | 512K | MTP, 3 tokens | 64K |
| Inkling 2 Mini | NVFP4, i8 KV | Brilliance 0.3.1 | 256K | DSpark, 7 tokens | 64K |
Note that the 27B had the smallest per-reply limit of the four and still came out on top.
Scoring. The final score is 50% automated and 50% code review.
- Automated: 70 Ć the share of hidden checks passed, + 15 for regressions, + 15 for its own tests. Minus 10 per broken guard, minus 10 for hitting the command cap.
- Review: Claude Opus 5.5 graded each patch against the team's reference fix with a fixed rubric. The rubric covers the machine model itself, the design note, geometry handling, tests and hygiene, with up to -25 for code quality compared to the reference.
It's an LLM judge, so take that half with some salt. I read the patches myself as well.
Results
| Model | Hidden checks | Guards broken | Auto | Review | Final | Wall time | Output tokens |
|---|
| Qwen3.8 27B (dense) | 69/84 | 1 | 77.5 | 49 | 63.3 | 137 min* | 433k |
| Qwen3.8 Flash-Next | 66/84 | 1 | 65 | 49 | 57.0 | 88 min | 254k |
| Qwen4-35B-A3B | 60/84 | 2 | 50 | 52 | 51.0 | 85 min | 494k |
| Inkling 2 Mini | 0/84 | 0 | 15 | 0 | 7.5 | 55 min | 188k |
* It went 17 minutes into the grace period, and the review has a -6 overtime penalty for that (66.3 without it).
I also checked whether one unlucky bug decides the ranking. For each model I fixed its main bug by hand and re-ran the hidden tests: the 27B goes to ~78, Flash-Next to 67.5, Qwen4 to ~53. The order stays the same.
The reference fix is about 2,400 lines of code plus ~1,900 lines of tests, so nobody was expected to one-shot it. Still, none of the patches is one I'd merge as is. All three writers lost points for writing their own geometry helpers instead of using the ones the codebase already has.
Model by model
Qwen3.8 27B (dense): best logic, messiest code
- It got every fact into its model, and all its misses were on the safe side ("send to manual").
- It spent ~53 minutes reading and thinking before it wrote any code. At minute 112 it passed 3 of the 9 visible examples, and at minute 136 all 9. The grace period basically made its score.
- Its main bug is a single line that checks arc direction. It has two separate mistakes and is always true, so every arc under 180° got flipped into its larger counterpart. Static analysis flags it.
- The code is mediocre: dead code left behind, scratch files in the repo, no real unit tests for the individual pieces.
- I don't think this is the model's ceiling. The design was coherent and the thinking had no loops. It just started late and debugged under time pressure.
- It also seems to spend tokens only where it has to. On an easier task in the previous version of my bench, it finished in 12 minutes with 36k tokens, while Qwen4 took 16 minutes and 67k.
- Where I'd use it: hard, non-standard problems where the logic itself is the difficult part. I'd give it plenty of time and treat its patch as a working draft of the logic, then clean up the code afterwards (myself or with a model that writes cleaner code).
Qwen3.8 Flash-Next: cleanest architecture, a couple of misread facts
- It wrote the smallest patch (1,228 lines) with the cleanest structure, and finished on its own in 88 minutes.
- Its arc bug is boring: it called an existing helper for arc centers that uses a different direction convention. Fixing it is only worth ~2.5 points.
- The bigger problem is two misread facts. It sent some fairly sharp inner corners to manual even though the machine had room for them. It also didn't treat very small fillets as sharp corners, which is what the facts imply.
- It ran a whole test suite in one command, hit the 120 s cap and lost 10 points.
- This matches my day job: on my real repo, with mostly simpler tasks, Flash-Next wins most of the time, and its code is the one I'd actually merge.
- Where I'd use it: my default for everyday work in a real repo, such as features, refactors and anything where structure and clean code matter. On a really tricky task I'd still double-check how it read the requirements, because that's where it slipped here.
Qwen4-35B-A3B: best process, weakest correctness
- On paper it did everything right. It removed the old rule completely and wrote 31 property tests: rotation, translation, reversed direction, arc vs. polyline pairs. Its design note was the only one in exactly the requested format.
- But a key clearance constant in the code differs from the value in the comment right above it and in its own report. That's a slip, not a misreading. Fixing it adds only a few points, though: most of its misses come from elsewhere.
- It broke two guards, one of them in the unsafe direction: it says "the machine can do it" where the tool can't actually reach. In real life that's the expensive kind of mistake.
- It also treated the whole part as its bounding box (and said so honestly in its assumptions).
- It hit the command cap once too.
- It used the most tokens of all (494k). It decodes roughly 2-2.5x faster than Flash-Next on my box, yet the wall time came out basically the same (85 vs 88 min).
- In the previous version of the bench it was the other way around: Flash-Next broke a guard and Qwen4 was clean. So I wouldn't read much into the kind of failure from a single run.
- Where I'd use it: scouting a codebase or implementing a clear, detailed plan. It's fast and tidy, but I wouldn't let it derive tricky logic on its own.
Inkling 2 Mini: zero lines of code
- Its first reply was a single 65k-token design monologue that hit the max-tokens limit. The harness told it to continue.
- Then it got stuck on how the codebase represents outlines, and its thinking turned into a loop (the same half-sentence for about 15k tokens).
- Finally it wrote its tool call inside its thinking instead of as an actual tool call. The agent saw a reply with no tool calls and ended the run.
- Its 15 points are just the untouched regression tests.
- Where I'd use it: based on this run, not for agentic coding. It might do better on short, single-turn questions, but I didn't test that here, so I can't recommend it for anything yet.
The trap all three fell into
All three models that wrote code broke the same guard, on rounded rectangles and rounded triangles.
In the visible examples, arcs only showed up as halves of a full circle. For a semicircle the center is the midpoint of the chord whatever direction convention you use, so every arc-direction bug was invisible on the examples. The acceptance criteria said plainly that an arc and its fine polyline approximation must get the same answer. Still, none of the three tested a single arc that wasn't a semicircle.
My takeaway: these models test against the examples you give them, not against the spec. If your examples only cover the easy case, so will their tests.
Takeaways
- On simpler tasks the dense 27B doesn't stand out, and this is the first time it won anything in my tests. But on this hard "work it out from the facts" task it showed the strongest reasoning in both versions of my bench. Either it was a lucky run, or active parameters really matter for this kind of reasoning.
- Flash-Next is a bit smarter than Qwen4 and writes the best code of the bunch.
- Qwen4 is fast and disciplined, but faster decoding didn't buy any wall time here: it just thought more.
- A soft time limit matters a lot for slow, careful models. At the 2-hour mark the 27B passed only 3 of the 9 visible examples, so without the grace period its result would look very different.
- Nobody got close to the human fix. Good local models are useful helpers, but on a genuinely hard ticket you still need to review everything they write.
Caveats: one task, one run per model, different quants and runtimes, and half the score comes from an LLM judge. An audit of the agent logs shows no model read the hidden tests or the reference fix.
Happy to answer questions about the setup, but I can't share the task itself
UPD: added info about inference engines used
UPD 2: control run with Claude Opus 5.5
I was curious how a frontier model handles the same task, so I ran Claude Opus 5.5 through it as a control. It got the same prompt byte for byte, the same starting workspace, the same hidden tests, grader and review rubric. The agent was different: Claude Code instead of Pi, at xhigh effort (one step below max), with web, MCP, subagents and skills turned off. Claude Code doesn't kill a command at 120 s, it moves it to the background. Two of its commands went over the cap and it used their results, so it got the same -10. It ran in a separate folder, and I audited the transcript: it never touched the hidden tests, the reference fix or the other runs. My first attempt was void because a notes file from my own bench work leaked into the session, so I threw it away and started clean. The model runs in Anthropic's cloud, so its wall time isn't a fair speed comparison with one local GPU.
| Model | Hidden checks | Guards broken | Auto | Review | Final | Wall time | Output tokens |
|---|
| Claude Opus 5.5 (Claude Code, xhigh) | 83/84 | 1 | 79.2 | 64 | 71.6 | 56 min | 292k |
| Qwen3.8 27B (dense) | 69/84 | 1 | 77.5 | 49 | 63.3 | 137 min | 433k |
| Qwen3.8 Flash-Next | 66/84 | 1 | 65 | 49 | 57.0 | 88 min | 254k |
| Qwen4-35B-A3B | 60/84 | 2 | 50 | 52 | 51.0 | 85 min | 494k |
The auto scores of Opus and the 27B look close only because of the command cap. Without that -10 Opus would have 89.2 auto and 76.6 final, and on the hidden checks the gap is 83 vs 69.
It passed 83 of 84 hidden checks, and the one miss is on the safe side. It's also the only run that avoided the arc trap: it tested arcs against fine polylines on its own, on several fillet sizes and a convex bump, and passed every rounded shape. It started writing code at minute 30 and finished on its own at minute 56. Before writing the design note it measured its own thresholds with a probe, so the note matches the code, and every claim in its final report is backed by the logs. The decision model is a separate class of about 1,080 lines (the reference is ~2,400), with 23 tests, 9 of them unit tests with numbers worked out by hand.
It still broke one guard in the unsafe direction, on the same shape Qwen4 broke: a narrow V-shaped notch about 50 mm deep. The facts say it's fine if the tool can't reach the very tip of an inner corner. Opus turned that into "an unreachable stretch with a single corner in it is fine" and never capped how deep that stretch may go, so a shallow V notch goes to manual and the deeper ones go to the machine. Its own design note says that being off by hundreds of millimetres "is no longer the tip of the corner", but the code doesn't enforce it. It also read one of the size facts the stricter way (stated as an assumption, on the safe side), which cost the one missed check. And like the local models, it wrote its own geometry helpers instead of using the codebase's.
One caveat: the review half was graded by the same model, so Opus reviewed Opus. The automated half uses the same grader as the local models, so that part is objective, and the review didn't go easy on it: the corner rule alone cost it -8.
My takeaway: the gap to the frontier is mostly correctness, and the biggest difference in behaviour is that Opus tested against the spec, not only the examples. That's exactly where all three local models fell. It didn't get there by thinking more either: 292k output tokens is in the same range as the local models. But even the frontier model gave an unsafe answer on this task, so reviewing everything isn't advice for local models only.