Engineering Notes · agent operations · cad for printing
Same Nine Parts, Two CAD Engines
Lucas van Staden · ProxiBlue · November 2026 · proxiblue.com.au
My agent models the parts I 3D print. It started in OpenSCAD and hit the limits of what that can do. So I had it build the same nine parts in two code-driven CAD engines, both locked in Docker, and then measured the results. The geometry matched to 0.01%. One kernel refused a basic operation, and that decided it.
Why I needed a better CAD engine
Ok, so the parts are for an enclosure I am building around my 3D printer. Clear panels, a printed fan housing, and a duct that takes the fumes out through a window.
The first outside duct was round 100 mm pipe with printed elbows. It worked on paper. In real life it stood well off the wall, right where I walk.
So I swapped to the beige air-conditioning conduit you see on most Australian houses. It has a flat back, so it hugs the wall. That needs printed fittings: a boot over the window bulkhead, 90° and 45° bends, a rain and insect cap, wall brackets, and a small fit gauge. Nine parts in total. While I was at it, the fan got a proper on/off switch in its own printed box.
The agent had been doing all of this in OpenSCAD. OpenSCAD is pure constructive solid geometry. No real fillets, no sweeps, and STL is the only export. Rounded edges and swept bends become workarounds. I wanted a proper solid-modelling (B-rep) kernel that the agent could drive from code.
The rules
- Docker only. Nothing gets installed on my host. A seven-week-old CAD binary does not get to run next to my client work.
- Pinned versions. The image, the package versions and the base image digest are all fixed.
- No network at run time. Non-root user, read-only root filesystem, and only the project folder mounted.
- The same parts, the same numbers and the same coordinate frames in both engines. Then compare the meshes, not the screenshots.
Contender one: SolidCraft
SolidCraft is a new parametric CAD app written in Rust. It has a desktop app, a headless CLI and a built-in MCP server.
The standout feature is that the agent can drive the app you have open. I ran the desktop app in a container, drawn on my screen, and watched every sketch, extrude and fillet appear as the agent sent it. Each part got its own tab, with a history timeline and a parameters panel I could change myself.
That part was genuinely good. Seeing the model build live caught a real problem early. The first boot had nothing holding it to the wall, and that was obvious in the model before a single print.
Then the kernel ran out. Rounding the front edges and then shelling the part hollow is the obvious order. SolidCraft refused:
solid.fillet edges=front radius=5 ok
solid.shell faces=back,top t=2.4
not supported yet: SMLib shell for this geometry
The workaround was to shell first and use flat 45° chamfers instead of rounds. That works, and chamfers actually print better (no overhang). But that was the kernel choosing the design, not me.
There were smaller things too. A sketch offset needed a tiny second offset to close the ring. Headless mode has no tabs. It could not import a GLB to render the full assembly, so I had to flatten the scene to STL first.
Contender two: build123d
I had a research agent survey what people actually use for agent-driven CAD. The pick was build123d. It is a Python library on OpenCascade (the same kernel FreeCAD uses), with an MCP server that has render, measure and printability tools. (For the record, the tool I half-remembered as "miodcad" turned out to be µcad. It is a minimal CSG language with no fillets and no STEP export, so it did not make the cut.)
The agent rewrote all nine parts as 127 lines of plain Python. The SolidCraft version is a 249-line generator that emits about 260 JSON command steps.
The fillet-then-shell that SolidCraft refused took two lines, and 0.13 seconds:
p = fillet(front_edges, 5)
p = offset(p, amount=-2.4, openings=[back, top]) # valid solid
It was not flawless. The agent made two API mistakes from older versions of build123d (a method that is now a property, and a helper that no longer exists). Both showed up on the first run and were fixed on the second.
The numbers
geometry
Every part matched within 0.01% by volume. The symmetric difference (volume that is in one mesh but not the other) was 0.2 to 15 mm³ per part. That is just two tessellations disagreeing on curved faces.
bounding boxes
Identical to the micron, part for part.
robustness
build123d: fillet then shell works, all parts valid single solids. SolidCraft: shell after a fillet is not supported yet.
source
127 lines of Python against about 260 JSON command steps.
speed
build123d builds each part in 0.02 to 0.7 s, the whole set in about 5 s including container start. SolidCraft runs tens to hundreds of milliseconds per feature. Neither is a bottleneck.
mcp tools
build123d-mcp has 48 (render, printability, compare, cross-sections). SolidCraft has 27, and they drive the open app.
image size
build123d 2.0 GB, SolidCraft 1.0 GB.
print checks
Both sets are watertight single bodies. Both slice in Bambu Studio with zero supports, with the same grams and the same print time within two minutes.
assembly
92 solids clash-checked (the enclosure plus the whole duct run up a demo house), 0 interferences with either set.
The decision
build123d is the engine of record now. The parts are plain code I can diff, the kernel does what I ask, and the MCP server understands printability.
What I give up is the live view. Watching the agent build in a real CAD window is great, and build123d has nothing like it out of the box. The SolidCraft image is stopped, not deleted. I may well use it as a viewer, or come back to it. It releases almost daily, so that shell limit could be gone next month.
Same part means same mesh. A boolean symmetric difference between the two exports is a cheap and honest test. Screenshots can look identical while the parts are not.
Things I learnt
- Print a fit gauge first. The conduit's real corner radii are not published anywhere. A 6 mm slice of the socket profile will tell me more than any listing.
- A young tool is fine in a box. Running it in a locked-down container meant I could try it the same day, without caring what it pulls in.
- The agent's mistakes were version drift, not logic. Running the code is still the only check that counts.
- Watching it build is worth more than I expected. Next step is to give build123d a local viewer, so I don't lose that.
Want to do this yourself?
- Build an image with pinned versions (build123d, its OCP kernel package, build123d-mcp) on a pinned slim Python base.
- Run it with
--network none --read-only --cap-drop ALL and your own uid. Mount only the project folder, at the same path as on the host, so paths in scripts match.
- Keep one parameter set for anything that has to fit something you bought, and print a gauge before the real parts.
- Compare engines (or versions of the same engine) mesh against mesh. Volume, bounding box, symmetric difference.
The enclosure project itself is private. These are the tools it uses.
- build123d — the Python CAD library on OpenCascade, now the engine of record
- build123d-mcp — the MCP server, with render, measure and printability tools
- SolidCraft — the Rust parametric CAD app with the live, agent-driven desktop view
- OpenSCAD — where the project started
I use my tooling predominantly on Mage-OS (Adobe Commerce / Magento) e-commerce projects, and my own AI Booking Agent. If you have not swapped to Mage-OS yet, you are falling behind ;)
More in this series: Test Debt Is The New Tech Debt — where technical debt goes when every ticket writes its own tests, and the weekly review that pays it down. ·
Four Hours Is Too Long To Wait For A Security Fix — splitting a 4-hour Magento test suite across isolated full-stack copies of the site, built on request by a host-side agent. ·
QuietBookCut: The Hard Part Wasn't the Code — building QuietBookCut, and why getting the word out in a guarded craft niche is harder than writing the code. ·
Copies, Not Subscriptions — why every plugin and MCP server my agents load comes from a copy I hold, never live from upstream. ·
The Whole Stack, Reviewed Cold — a cold, independent critical review of the whole agent-operations stack, layer by layer, weaknesses included. ·
Logs Without the SSH Session — shipping Hypernode logs to self-hosted VictoriaLogs so agents can read them without SSH. ·
The Hour My Agents Spent Waiting For Nothing — why my agents are not allowed to background work they need the result of. ·
Smaller, Then Green — a mandatory cut-then-test loop that trims over-built code out of every plan's diff before any reviewer sees it. ·
Plans Run By A Fleet — how features run through a planned, adversarially-reviewed, parallel TDD pipeline instead of one long agent chat. ·
Hooks, Not Hopes — sorting every agent rule into prose or a blocking hook, and proving the hooks still fire. ·
The Agent Chatroom — giving the agents across my fleet a threaded chatroom so I stopped being the message bus. ·
The Commit That Has To Prove Itself — gating every commit behind recorded, state-hashed test evidence. ·
My AI Is Not Allowed To Guess — forcing blast-radius-first investigation and banning blame-shift excuses. ·
The Near-Miss That Banned Summaries — banning summarised page-fetches fleet-wide after a near-miss on a security advisory. ·
The Code Quality Checks Nobody Runs — coding standards, static analysis and comment hygiene moved into the commit path. ·
The ProxiBlue Debugger Discipline — blocking var_dump and wiring in real breakpoint debugging. ·
The ProxiBlue Domain Graph — giving my AI coding agents long-term domain knowledge with a temporal knowledge graph. ·
The ProxiBlue Falsifiable Rulebook — testing the rules and guard hooks that govern my AI coding agents.