All work

Workshop

A CAD made for AI agents: models written as named parts

Workshop viewer with a green and brass camping lantern in 3D and a list of its nine named parts with sizes in millimetres

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

  1. 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.
  2. Every shape is a signed distance field, so the viewer can raymarch the exact shape on the GPU while it is still being built.
  3. 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.
  4. Every part is listed with its size in millimetres, and you can hide it, focus it, explode the model or show its wireframe.
  5. An agent can draw a blueprint first and you approve it before the 3D build starts (needs the local language model).

What it does

Built with JavaScript (ES modules), Node.js worker threads, WebGL raymarching (GLSL), Signed distance fields, glTF/GLB export, 2026.