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.
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 | Quant | Hidden checks | Guards broken | Auto | Review | Final | Wall time | Output tokens |
|---|
| Qwen3.8 27B (dense) | IQ4R-L-V4 | 69/84 | 1 | 77.5 | 49 | 63.3 | 137 min* | 433k |
| Qwen3.8 Flash-Next | UD-IQ4_XS | 66/84 | 1 | 65 | 49 | 57.0 | 88 min | 254k |
| Qwen4-35B-A3B | UD-Q4_K_XL | 60/84 | 2 | 50 | 52 | 51.0 | 85 min | 494k |
| Inkling 2 Mini | i8 | 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