ldraw-nova - Agent tooling for generative LEGO models

Show HN: Made an open-source Lego AI generator

ldraw-nova - Agent tooling for generative LEGO models

ldraw-nova is an open-source tool that lets AI agents design buildable LEGO models. Give an agent a prompt, and it plans, iteratively renders, and adjusts until it produces LDraw source code, a Blender-editable glTF file, and interactive 3D views. Powered by GPT-6 Astra and Claude Opus 5.5, it uses semantic search with re-ranking to find suitable parts and examples. Run it via Docker to generate physical, buildable LEGO creations from simple ideas.

I did this in order to get agentic LLMs capable of designing buildable, physical things!
  1. dchuk

    Not the same but adjacent hobby, I’ve had good success with feeding 3mf files to Claude (usually just fable in desktop app) that I found on maker world to prompt for modifications to the model and it works damn well. Stuff like changing a functional model from press fit only to using inset m bolts and nuts. Way better than doing it by hand in a cad app

  2. vunderba

    Nice job. I actually read a paper on Arxiv last year about this exact thing - using LLMs to drive model building through LDraw that might be worth reading [1].

    They had some interesting experiments like giving the LLM a fixed set of parts as a constraint and asked it to "build" tools out of those available lego.

    I think they were using Opus 4.5 so I'm sure with even more powerful models it'll be even better.

    [1] - https://arxiv.org/pdf/2512.15743

  3. ash_091

    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 provided part/model numbers plus a couple of caliper measurements Claude wasn't able to find online and went through two or three cad revisions before making the parts. All three worked on the first hardware revision.

    The biggest thing I've found it seems to struggle with is understanding how the parts will be assembled. The pen mount in particular was tricky to put together, having a part which needed to fit through a slightly too small space to get to its spot. Although it's hard to blame the AI for that when I didn't notice it either I suppose.

  4. dy

    Thanks for sharing - I'm actually working with my kid on something similar but with physics modeling for First Lego League. Cool to see your approach!

  5. ttul

    Up next: a tool that converts a photograph of your dumped bin of old Lego into a catalogue of all the Lego in your collection..

More from this day

2026-10-02