Workshop
A CAD made for AI agents: models written as named parts
The problem
AI agents are good at writing text but bad at pushing vertices around in a 3D editor. Asking one for a game prop usually gives you a blob, with no named parts and nothing you can fix one piece at a time.
StellusOS wanted props an agent can describe and change the way it writes code: as a readable file, rebuilt in seconds, with every part named and measured so a person can check the result.
What I built
- My own small modelling language: a model is JSON of named parts made of boxes, cylinders, cones, spheres, extruded or revolved 2D outlines, joined, subtracted, rounded, mirrored or repeated.
- Every shape is a signed distance field, so the viewer can raymarch the exact shape on the GPU while it is still being built.
- A build turns the spec into a mesh step by step, simplifies it to a triangle budget, paints a texture from the exact shape and writes a GLB file for games.
- Every part is listed with its size in millimetres, and you can hide it, focus it, explode the model or show its wireframe.
- An agent can draw a blueprint first and you approve it before the 3D build starts (needs the local language model).
What it does
- A 9-part lantern built from a short spec in about 15 seconds, into 20k triangles.
- A parts list with thumbnails and real dimensions.
- Views for the raymarched shape, the textured game mesh and the wireframe.
- Hide parts to see inside, and switch between dark and light backdrops.
- Replay a build slowly to watch each step.
Built with JavaScript (ES modules), Node.js worker threads, WebGL raymarching (GLSL), Signed distance fields, glTF/GLB export, 2026.