cd /news/ai-agents/show-hn-made-an-open-source-lego-ai-… · home › topics › ai-agents › article
[ARTICLE · art-144120] src=github.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Show HN: Made an open-source Lego AI generator

A developer released an open-source, dockerized web app that uses GPT-6 Astra and Opus 5.5 to generate LDraw source code, which renders as LEGO CAD models in tools such as LDView, LeoCAD and Studio. The toolset, packaged with instructions and docs for agents, supports OpenAI, Claude and OpenRouter providers and was posted to Hacker News, where it drew 14 points and 3 comments.

read1 min views2 publishedOct 2, 2026

Hi there :-) New on HN, first time posting. Past year, around December, I started experimenting with making ChatGPT and Claude generate source code in LDraw language.

This LDraw is literally an "assembly" language, a low-level programming language that describes how to assemble LEGO pieces together into models, one placement instruction at a time.

When executed by specific tools, like e.g. LDView, LeoCAD, Studio... these instructions become LEGO CAD models, that can be interacted with, modified, etc.

Or, in other words: one LDraw source file in .mpd or .ldr format is equivalent to one LEGO CAD model.

So, the idea I had was: if I manage for maybe ChatGPT or Claude to generate high-quality LDraw source files... then, they would actually be generating high-quality LEGO CAD models, right?

Then, after months of iterations and trying one thing after the other... it worked!!!

Long story short: using GPT-6 Astra and Opus 5.5, I've managed to create a python toolset, instructions, and docs for agents in general. Now, these can be used by them to generate LDraw models.

I've packed it all as a dockerized web app for others to try and experiment, with several providers (and agents) to choose from: OpenAI, Claude and OpenRouter.

I'd really appreciate feedback and comments, let's see where this goes =)

Comments URL: [https://news.ycombinator.com/item?id=49937916](https://news.ycombinator.com/item?id=49937916)

Points: 14

── more in #ai-agents 4 stories · sorted by recency
── more on @ldraw 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-made-an-open…] indexed:0 read:1min 2026-10-02 · —