Show HN: Made an open-source Lego AI generator
Ldraw-nova is an open-source tool that allows AI agents to iteratively design and generate 3D LEGO models using the LDraw assembly language and Python scripts.
summary is enough The project offers an interesting architectural approach to LLM-driven CAD generation, but the core workflow can be fully understood from the README summary.
summary
Ldraw-nova provides a structured framework allowing high-end LLMs to generate functional LEGO models via the LDraw assembly language. Instead of writing raw 3D coordinates, agents create a JSON plan and a Python generator script, iteratively rendering and inspecting images until the model is correct. The system relies on high-end models and requires a local Docker setup to handle the rendering loop. The creator actively discusses token economics, spatial limitations, and future Technic mechanism support in the comments.
key points
- Agents avoid direct 3D geometry math by writing Python generator scripts that output LDraw assembly code.
- The workflow is iterative: the agent plans, generates code, renders a preview, inspects it visually, and refines the design.
- Complex models like Technic mechanisms require high-end LLMs and significant token costs, currently estimated around five dollars per build.
who should read it
Software engineers and hobbyists interested in LLM agent workflows, CAD automation, and generative 3D design.
discussion warm
consensus
Commenters are impressed by the technical implementation, drawing parallels to similar LLM-driven CAD automation projects like FreeCAD integrations.
pushback
A minority of commenters express concern that automating LEGO building with AI takes away the manual, imaginative aspect of the hobby.
Neat! Perhaps I'll finally get around to doing something with the 51515 Lego set I have laying around collecting dust.
> I did this in order to get agentic LLMs capable of designing buildable, physical things!
I've been experimenting with FreeCAD + freecad-mcp + Claude recently and have been similarly surprised how well this works. I've produced three useful parts from Claude's designs: a 3d printed case for an OLED display + some inputs + an ESP32, and a milled aluminium hotend mount adapter for a 3d printer, and a printed pen + pressure sensor mount to use the printer as a plotter. I just …
It shares a parallel real-world success story using LLMs for CAD design, providing practical context on assembly challenges.
Generated by an LLM from the article and thread. Check the sources before relying on it.