Design jointed 3D CAD objects with a local model that writes and compiles code

Mohammed Terry-Jack gave a local Qwen model in Hermes Agent the Articraft CAD tools; it built a two-joint desk lamp in 44 minutes, 37 calls and 8 compiles, passing 117 checks.

Done withHermes Agent· Nov 20, 2026

What they did

Terry-Jack ran a local model, Qwen3.8-Flash-Next, inside the Hermes Agent harness and connected it to MCP tools from Articraft, a service that compiles CAD code into solid parts with moving joints and tests them. The tools are small: start a job, check it, list jobs, cancel one. The model never draws. It writes build123d Python describing each part, its real dimensions and how it moves, sends it to Articraft to compile, reads the failure report and revises. He gave it plain one-line briefs, such as a desk lamp about 40 cm tall with a weighted base, an arm, a shade and exactly two joints, and a hinged wooden box with a lid that opens to about 110 degrees.

How it went

The lamp took 37 model calls, 8 compiles and 44 minutes. The agent read a template and the joint docs, wrote a plan file and a first draft, then failed six compiles in a row on problems like the arm rod sitting inside the pedestal and the shade hitting the arm at full tilt. It rewrote the file from scratch once. The seventh compile passed 117 checks with no failures or warnings, and the result had an arm tilting from -30 to +60 degrees and a shade tilting 60 degrees each way. The hinged box took 35 calls, 8 compiles and 36 minutes.

Worth knowing

The compiler's report is what makes this work: most of the run was the agent fixing collisions and joint limits it could only find by compiling. Expect many failed rounds before a pass even on a simple object, and budget time accordingly when running a local model. Articraft is not in our app list.

Try it

With Hermes Agent· 4 parts to fill in

Design [a desk lamp about 40 cm high with a weighted base, one arm, a shade and two joints] as a CAD assembly. Write it as [build123d] code with real dimensions in millimetres, and give every moving part a named joint with explicit limits. Before coding, write a short PLAN.md listing parts, sizes and joint ranges. Then loop: compile with [my CAD compile tool], read every reported failure (collisions, parts inside each other, joints outside their limits), and fix the code. Stop when a compile passes with zero failures, or after [10] compiles, and show me the final check report and the joint ranges.

Square brackets are the parts to fill in. The prompt is ours; the story is theirs.

Where they said it

Related