📐 CAD with AI

AI-assisted CAD modeling.

This is where I showcase projects like creating new ideas or editing defective ones. Honing an AI pipeline has allowed me to do things I otherwise wouldn't have the time for.

free STL downloads · OpenSCAD · prints on a Bambu X1C or any 256 mm bed
Render of the assembled snap-together picture frame, seen from the front at an angle Render of the baby-bib drying rack assembled: tray, six leg extenders and three arches Render of the rebuilt bib rack tray with its six stem tubes Close-up render of one rectangular stem tube on the bib rack tray
Two projects so far: a snap-together frame sized for your photo, and a baby-bib drying rack tray rebuilt with tubes where the pegs used to snap.

The projects

One flow, two projects so far. The first one worked out the process. The second one proved how much of it carries over.

Project 1 · Frame · the process was built on it

A snap-together picture frame that matches a store-bought frame on your wall (a 22 mm face, 12.2 mm deep), sized to your photo in the browser, printed in pieces on a 256 mm bed, and held together by one printed butterfly key at every joint. Sixteen pictures and the full story are below; the short version is that it took the better part of a day of agent time to work out the process, with me steering at every step.

Size one and download the STLs · how it was built · print and assemble

Project 2 · Bib drying rack · someone else's model, repaired

A countertop rack that dries up to three baby bibs. The design is not mine: Silicone Baby Bib Drying Rack Prototype V1 by Gnocchi Mommy on MakerWorld, a free STL-only download that I printed for a family friend whose bibs were sitting around the kitchen. The tray prints beautifully flat, and the six little pegs on it, the ones that carry the tall legs the arches sit on, snap off along the layer lines. The comments on the model page say the same thing mine did: the parts that connect the base to the holders broke during assembly.

The original bib drying rack as designed: three nested arches standing on the flat tray
The original design as the designer shipped it. The pegs that carry the leg extenders sit on the flat tray, printed as thin vertical stubs, and that is the part that snapped.

The designer only published STLs, so there was nothing to edit. Without an agent, fixing this means reverse-engineering someone else's part from a triangle mesh, and that is exactly the kind of afternoon I would not have started. With the flow from the Frame project already in place, it took under an hour: measure the original mesh, keep the two parts that were fine untouched (byte for byte, pinned by hash in the test suite), rebuild only the tray parametrically, and swap every peg for a through-hole with a rectangular tube collar. The tall leg extenders now slide into those tubes through the floor, so sideways load rides a 13 mm guided sleeve instead of a 10 mm layer-bonded peg.

Render of the rebuilt bib rack tray: rectangular board, perimeter wall, six rectangular stem tubes
The tray, redesigned: same footprint, same walls, tubes where the pegs were.
Render of the bib rack assembled: tray, six leg extenders and three arches
The full rack as it assembles: tray, six leg extenders, three arches.

Print your own bib rack

Three parts. The tray is my redesign and downloads here. The hoop and the leg extenders are the original designer's parts: her license is personal use and asks that her files not be re-hosted, so they download from her model page (a free MakerWorld account gets you the STLs).

  1. Print the tray flat, exactly as exported: 0.2 mm layers, no supports. The tubes print as short open rings and need nothing.
  2. Print one hoop and two leg extenders flat, exactly as the designer exported them; her print profile is 0.16 mm layers, 2 walls, 5 % infill.
  3. Slide two leg extenders, open end down, into the tubes on one row of the tray. They pass through the floor and seat 13 mm into the sleeves.
  4. Drop the hoop's leg sockets over the two extender tips. Hang up to three bibs on the crossbar.

The original design is Gnocchi Mommy's, shared free on MakerWorld under its personal-use license. Her hoop and leg-extender files download from her model page rather than here, the way her license asks; the tray on this page is my parametric repair, offered with the same personal-use spirit and full credit. Her V2 of the rack lives on her Patreon.

Showcase

Every render on this page came out of the same pipeline: the model exports, the pipeline renders, and the pictures land on a dashboard I can review while the agent works.

The assembled snap-together picture frame
Frame · 8x10, 12 pieces, one key per joint
The back of a frame corner with the butterfly key seated
Frame · the one joint, from the back
Exploded view of the frame pieces and keys
Frame · exploded, six rails and six keys
The bib rack hoop, the arch the bibs hang on
Bib rack · the hoop, the original designer's part
The rebuilt bib rack tray with six stem tubes
Bib rack · the rebuilt tray, tubes where the pegs were
Close-up of one rectangular stem tube
Bib rack · one stem tube, sized to the leg's 10 x 5 bottom
The bib rack assembled: tray, six leg extenders and three arches
Bib rack · assembled: stems in the tubes, arches on the stems

More to come. The whole point of this page is that the next model is cheaper than the last one, so this section grows.

What it does

Six printed rail segments, six flat keys, a sheet of glass and a piece of cardboard make one frame. The default 8x10 frame weighs about 110 g in PLA and goes together without tools, glue or fasteners (unless you count the two screws in the wall).

🧩

One joint everywhere

Every side is the same module and every end is the same socket. A flat butterfly key (14 by 7 by 1.5 mm) joins any two ends, at the corners and at the mid-side splits.

📏

Sized like a store frame

It has a 22 mm face and sits 12.2 mm from the wall by default, with a 7.5 mm rebate for glass, photo and backing and 1 mm of clearance around the photo.

✂️

Splits to fit your bed

Rails longer than the bed split into equal segments on their own. The console lists every piece to print, one STL each.

🪵

Cardboard backing

Fixed teeth on the back hold a sheet of cardboard behind the photo. You bow it in, and it flattens with its edges trapped behind the teeth.

🔩

Two ways to hang

A keyhole pair in the top rail takes two screws or nails (small frames such as 4x6 get one centred keyhole), or you pick a flat back for Command strips.

🖨️

Prints face down

The rails print front-face down with no supports and no bridging, so the front takes the texture of the build plate instead of showing layer lines.

🧪

158 tests

Every export is checked: watertight meshes, one solid body per piece, joints that go together and stay put in every direction but one.

🎛️

Basics first

Five dropdowns do most of the work. The numbers live in Advanced sections that start collapsed, out of the way.

The back of a frame corner, with the butterfly key seated in the pockets of both rails
A corner seen from the back has one butterfly key seated in the pockets of both rails. Every joint in the frame is this one.

Size a frame and download the STLs

The customizer runs OpenSCAD in your browser as WebAssembly, so your settings and your STLs never leave your machine. Click into it to start, or open it in a full tab if you want more room.

The five steps

These steps describe a laptop or desktop screen. On a phone the customizer has tabs at the top: the settings are under Customize, the code and the console under Edit, the model under View. Render stays at the bottom left.

  1. Read START HERE.

    It is the first section of the panel on the right: four numbered steps, from picking a photo size to downloading the pieces. The steps below walk through them once for an 8x10 frame. Step 3 changes one setting, so the numbers in the step 4 and step 5 pictures are not the defaults.

    The customizer panel with the START HERE section open
  2. Pick the Basics.

    Photo size is a dropdown of standard print sizes (4x6, 5x7, 7x9, 8x10, 8.5x11, 11x14, 16x20 and A4), or Custom, with the millimetres typed in the Advanced section called Custom photo size. Portrait or landscape, the key look, what holds the photo (printed teeth or sliding clips) and how it hangs are one dropdown each.

    The Basics section with its five dropdowns
  3. Matching a frame you own? Set the overhang.

    Open the Advanced section called Photo fit. The overhang is how far the frame covers the photo on each side: 22 minus half the gap between the frame's outside and the photo. A true 8x10 print is 203.2 by 254 mm, and an overhang of 5.6 gives a 236.0 by 286.8 mm frame.

    The Photo fit section under Advanced, with the overhang set to 5.6
  4. Press Render.

    The button is at the bottom left of the screen, under the console. The console prints FRAME OUTER in millimetres, which you can check against a tape measure before printing anything.

    The customizer after Render: the whole frame in the 3D viewer, FRAME OUTER 236 x 286.8 x 12.2 mm in the console, and the button at the bottom left reading Download STL
  5. Export every piece.

    In Print pieces and view (scroll the right-hand panel to the bottom), set Piece to 1 and press Render. When the render finishes, the Render button reads Download STL. Press it. Change Piece to 2 and the button is back to Render. Repeat up to the number in the PRINT LIST line. The console names each piece as it renders (PIECE 1 of 12: top0).

    The console showing FRAME OUTER 236 x 286.8 x 12.2 mm, PRINT LIST 12 pieces and PIECE 1 of 12

Print and assemble

The fit coupons use the same geometry as the frame joints, so they settle the key fit on a 60 or 70 mm offcut instead of a 290 mm rail. The customizer on this page exports the frame's pieces only. It does not list the coupons, so this page cannot give them to you yet; they come from the project's command-line export (build.py export --preset 8x10 --coupons).

🎟️

Coupons

coupon_butt_a and coupon_butt_b with key_demo make one butt joint. coupon_corner_a and coupon_corner_b with one corner key make one mitered corner. coupon_wedge is a 60 mm offcut with one tooth, for trying a scrap of your own cardboard. The key will not go in? Raise the key fit clearance (in Advanced, under Custom butterfly key; 0.2 to 0.3). It rattles? Lower it.

🖨️

Rails

Print the rails front face down, exactly as exported, so the key pockets open upward and the tooth ramps face down. Use 0.2 mm layers, 3 walls and 15 % infill, with no supports. PLA is fine (black, if you are matching my wall).

🦋

Keys

Print the keys flat as exported, with 0.2 mm layers and 100 % infill or at least 4 perimeters. The waist has to carry shear in the plane of the print, not across layer bonds. PETG works if you want a softer key.

Cross-section through a key sitting in its two pockets
A key in section: it sits in a pocket on the back of each rail, flush with the wall side.
Cross-section through the rebate, photo stack and wedge tooth
The rebate in section: glass, photo and backing sit under the lip, held by the tooth.
A close-up of the back of the top rail, showing one keyhole slot
One of the two keyholes in the back of the top rail. The pair keeps the frame level.

Assembly

Exploded view of the frame pieces and keys
The default frame is 12 pieces: six rails and six keys.
  1. Lay the pieces face-down on a smooth surface. Press a key into each corner and each mid-side joint. The key sits flush with the back, hidden against the wall.
  2. Drop in the glass (2 mm) and the photo. The stack sits in the rebate, 1 mm under the lip.
  3. Bow the cardboard (2.5 mm) slightly, centre toward the wall, and slip its edges in behind the teeth on all four sides. It flattens and holds the stack.
  4. Hang it on two #8 screws or nails in the keyhole pair, or stick it up with 3M Command Large strips.

A key is held in every direction except straight out the back. To separate a joint, push the key out from behind. The keys are the sacrificial part.

How AI was used

I did not write the OpenSCAD. I brought the measurements, the photos, the constraints and a tape measure, and a team of AI agents built the rest over two days.

🧭

What I did

I measured the frames I wanted to match (22 mm face, 12.2 mm deep, about 7 mm of overhang) and said what was wrong at every step. Each turn from me was a direction, a refusal or an approval.

🤖

What the agents did

One orchestrator ran the model, the tests, the renders and the docs. Specialists were dispatched with tight briefs: a sourced research pass on butterfly keys, a verified toolchain probe, independent reviewers for geometry and for test honesty, and a browser driver that clicks through the real customizer.

🐛

How errors were caught

The checks were tests that read only the model's own numbers, mutation sweeps that prove a test can fail, reviews by separate agents, and real clicks in a real browser. The bug that survived all of that was caught by comparing two independent paths: the browser's download against the command line's export. A second one was found by looking at a screenshot of this page: every dropdown value was cut off while every test passed.

The directions that changed the project

The process, v1 to v7.2.3

Every version from v7 on has a git tag, and the worklog covers all of them, so I can check any claim on this page against what was actually built.

v1 · 2026-11-23

The first model

A parametric frame, a part splitter and a manifest the tests could read. A smoke test found three bugs.

v4 and v5 · 2026-11-23, the pivot

Fewer pieces, 2D first

The frame became four identical sides with a socket at every end, joined everywhere by one butterfly key. The joint was designed and unit-tested flat before any depth existed. The 3D test suite then found five more bugs.

v6 · 2026-11-23, that night

A re-review on a stronger model

It found the topology contradicting my wording and moved the pockets to the back. An OpenSCAD preview bug that swapped colours pushed the section views to true STL slices. The suite grew from 75 to 94 tests.

v7 · 2026-11-24

Fixed-wedge backing

The wedge idea replaced the clips. A section probe found the first tooth layout floating off the mitered corners. 108 tests passed.

v7.1 · 2026-11-24

The overhang becomes a parameter

A printed frame can now match a store-bought frame's outside size, with the outer size derived and printed on every run. Verifying the browser build found two bugs in the vendored panel and one in the pipeline. 117 tests passed.

v7.2 · 2026-11-24

The plain-language pass

A probe of the customizer's export format came first, then Basics and Advanced sections, plain names for every parameter, key looks, and the numbered piece picker. 144 tests passed.

v7.2.1 · 2026-11-24

The "are you done?" check

The browser download and the command-line export of the same piece differed by 0.2 mm. The command-line size table had been rounding 8x10 to 203 mm (a true print is 203.2). One size table now feeds the browser and the command line, and the piece numbering is the same everywhere. 155 tests passed.

v7.2.2 · 2026-11-24

Caught by a screenshot

The pictures for this page showed every Basics value cut off after a character or two, with 155 tests passing. None of them had asked whether the current value could be read. Each dropdown now takes more of its row, and a new check measures the built page in a real browser. 157 tests passed.

v7.2.3 · 2026-11-24

Read the directions against the screen

Proofreading this page against the running app found the customizer's own START HERE panel pointing at a button that does not exist. The Render button is the one that turns into Download STL. The text now says so, names the tabs a phone shows, and a test pins the wording. 158 tests passed.

Lessons learned

Each of these cost a cycle. They are written down so the next CAD project starts past them.

The second one took an hour

The bib rack above is the test of everything below. The first project took the better part of a day to work out the process. The second one, on someone else's STL, took under an hour end to end. If every project cost what the first one cost, I would have kept re-printing the broken rack instead of fixing it.

What actually carried over, in the order it carried:

What did not carry over: any of the frame's geometry. Nothing from the picture frame appears in the bib rack. The process is the reusable part, and the process is free once it exists.

What is not done yet

This list is current as of v7.2.3.

Size one, print it, hang it

Start with the default 8x10, or match a frame you already own. The customizer tells you the outside size before you print a thing.

Size a frame
OpenSCAD (WebAssembly) · 256 mm bed · PLA · no supports · no account