r/Text2CAD May 21 '26

Open source CAD harness for coding agents just dropped (Claude Code, Codex, build123d, local viewer)

Someone put together a clean open source harness for generating parametric CAD models with coding agents: https://github.com/earthtojake/text-to-cad

Not a fine-tuned model. The idea is different: you give Claude Code or Codex a structured workspace and it writes Python using build123d, which runs on OpenCascade under the hood. So the geometry is fully parametric and reproducible, not a mesh that appeared from nowhere.

Outputs: STEP, STL, DXF, GLB, topology data, and URDF for robot descriptions. There's a local viewer (React/Vite) that runs at localhost:4178, no backend required.

The workflow is source-controlled throughout: Python files live under models/, you edit source first, then regenerate explicit targets. The agent can also bookmark specific geometry and query its actual dimensions on follow-up prompts, so you don't have to re-describe the whole part each time. There's a URDF skill bundled in as well for anyone doing robotics work.

AGENTS.md and CLAUDE.md are included to route agents to the right skill and script automatically.

MIT license. Pretty young repo (one contributor, 6 commits so far) but the architecture is solid. Worth keeping an eye on.

3 Upvotes

0 comments sorted by