Other Blogs
Every time I post about GrandpaCAD, someone on Hacker News tells me OpenSCAD is a toy and I should be using CadQuery or build123d instead. So I wired all three into the agent and ran them through the same eval suite. In June the answer was easy: OpenSCAD, by a mile. In September I ran it again with newer models and the answer got a lot less comfortable.
First a correction, because the earlier version of this post got it wrong: CadQuery and build123d are not kernels. They're two Python libraries that sit on the same kernel, OpenCASCADE, which is also what's under FreeCAD. The kernel does the geometry. The library is just the way you ask for it.
| Engine | What the AI writes | Kernel underneath | Geometry is |
|---|---|---|---|
| OpenSCAD | Its own small language: primitives, transforms, booleans | Manifold (CGAL in older builds) | A mesh (triangles) |
| CadQuery | Python, one long method chain on a workplane | OpenCASCADE | B-rep (exact faces and edges) |
| build123d | Python, objects you add and subtract with operators | OpenCASCADE | B-rep (exact faces and edges) |
That split matters for reading the results. OpenSCAD against the other two is a kernel question: a mesh engine can't select an edge and round it, a B-rep kernel can. CadQuery against build123d is purely an API question, because the geometry underneath is identical. Any difference between those two is about what the model can write, not what the kernel can do.
Same 19 scenarios, same agent, same harness, one attempt each. Only the engine changes. The scenarios are ordinary requests: a cable clip, a Raspberry Pi 4 case, a mug, a pegboard hook, plus a few multi-turn chats where the part gets edited. The methodology post covers how they're scored, and every run is on the evals page.
The number I care about most is failed builds: how often the AI sends code that doesn't compile or throws at runtime. The agent sees the error and tries again, so you rarely notice. But every retry is another model call, which is latency and money.
On Gemini 3.5 Flash, the cheap workhorse I was benchmarking at the time, OpenSCAD had 7 failed builds across the suite. CadQuery had 21 on one run and 27 on another. build123d had 28 and 30.
That surprised me. Every model writes Python fluently, so I expected the Python engines to win. The error log explains why they didn't. On the 30-error build123d run, about a third were names that don't exist:
TypeError: Cone.__init__() got an unexpected keyword argument 'radius1'
TypeError: Cone.__init__() got an unexpected keyword argument 'r1'
AttributeError: 'Plane' object has no attribute 'shiftedBy'
NameError: name 'KeepMode' is not defined
Those first two are the same generation. It guessed radius1, got told no, and guessed r1. (It's bottom_radius.) It reads like plausible Python, and it's the model filling in an API it has only half seen.
Another third I didn't expect at all. The code was valid and the kernel refused the geometry:
ValueError: Failed creating a fillet with radius of 2.0, try a smaller value
StdFail_NotDone: BRep_API: command not done
This is the flip side of "real fillets". A B-rep kernel can round an edge properly, and it can also tell you that this particular edge can't take a 2 mm radius. OpenSCAD has no such operation, so it has nothing to fail at. CadQuery showed the same pattern: 7 of its 27 errors were OpenCASCADE refusing a fillet. A few more were selector strings the model made up a grammar for, like ">Z and (not (circle or loop))".
Two things closed part of the gap. I generated an exact-signature API reference straight from the build123d library and put it in the agent's authoring skill, which took failed builds from 28 to 22. Then I hardened the harness (a fillet helper that retries with a smaller radius instead of throwing, fixes for the errors that were my exporter's fault and not the model's), which got it to between 12 and 15. Still about double OpenSCAD.
So in July I wrote that OpenSCAD wins and the B-rep engines would have to wait for better models. One line in my own data should have made me more careful: a month earlier, Opus 4.8 had written build123d with a single failed build. It was never that models can't write build123d. Cheap models can't.
By September the default model had moved on, so I ran build123d again.
Claude Opus 5.5 had 7 failed builds on OpenSCAD and 6 on build123d. More interesting than the count is what the errors were. On both engines, nearly all of them were the same mistake: the code used a parameter (baffle_count, tray_width) that the agent never defined. That's an agent bug. It has nothing to do with the CAD language.
GPT-6.1 Sol, the current default, went further:
| GPT-6.1 Sol, 19 scenarios | OpenSCAD | build123d |
|---|---|---|
| Failed builds | 0 | 2 |
| My adherence grade (0 to 1) | 0.66 | 0.72 |
| Cost per model | $0.13 | $0.18 |
| Time per model | 111 s | 140 s |
Two failed builds in the whole suite, and I graded the build123d models slightly higher: better on 8 scenarios, worse on 3, the same on 8. Here are four of the pairs, same prompt and same model:

The build123d planter has a taper and a rolled rim, and the mug handle is a closed loop instead of a chevron. This is roughly what the build123d source looks like when the model gets it right (the cable clip, trimmed):
foot = extrude(Pos(foot_x, 0) * RectangleRounded(base_length, clip_width, wall), amount=base_thickness)
ring = Pos(0, 0, center_z) * Cylinder(outer_r, clip_width, rotation=(90, 0, 0))
body = foot + ring - bore - slot - mount_hole
lip_edges = [e for e in body.edges().filter_by(Axis.Y) if e.center().Z > center_z]
result = fillet(lip_edges, radius=wall / 4)
The last two lines are the thing OpenSCAD can't do: pick the edges along the lip and round exactly those.
So the people telling me to switch were more right than my July post admitted. With a frontier model, build123d is a real option. OpenSCAD is still what runs in production today, for three reasons.
The quality lead is one run with one attempt per scenario. 0.72 against 0.66 across 19 hand grades is a hint, not a result, and I've been burned by single runs before.
The cost isn't a hint. build123d was 40% more expensive per model and 26% slower, in a product where you're watching a spinner.
And it has no floor. On the cheap model OpenSCAD had 7 failed builds and build123d had 28. GrandpaCAD has had seven different default models so far, and being able to swap one in without the engine falling over has been worth a lot.
All three engines stay wired into the agent behind a one-line switch, so re-running this costs me an afternoon. The next step is a three-attempt run of build123d on the current default. If the quality lead holds up, the question becomes whether rounder parts are worth 40% more, and that one I'd rather answer with users than with a benchmark.
On a cheap or small model, use OpenSCAD. It's the only one of the three that stays reliable there.
On a frontier model, build123d is worth it when the part needs real fillets, chamfers on chosen edges, sweeps or revolves. Give the model an API reference generated from the version you have installed, and wrap fillets so a refused radius retries smaller instead of killing the build.
Between CadQuery and build123d I can't give you a clean number. They failed about equally on the cheap model, and build123d is the only one I carried forward to the newer models, so it's the one I have evidence for. They share a kernel, so nothing the part can be is lost either way.
Try what GPT-6.1 Sol can do with OpenSCAD