frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Made an open-source Lego AI generator

https://github.com/anteloc/ldraw-nova
34•antelocnova•1h ago
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

antelocnova•1h ago
Hi there :-)

New on HN, first time posting, and (I guess) my post on Show HN was rejected...

Anyway, I hope I'm not bothering anyone by posting this outside Show HN, or posting almost the same thing twice.

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 =)

dang•1h ago
This project is perfect for a Show HN! I moved (most of) your text to the top and added "Show HN" to the title. I'll respond to this bit here:

> and (I guess) my post on Show HN was rejected... Anyway, I hope I'm not bothering anyone by posting this outside Show HN, or posting almost the same thing twice.

Unfortunately we had to put some barriers in place (https://news.ycombinator.com/showlim) because we got flooded, and still are, with Show HNs from new accounts which lack the spark of curiosity that is most important here. The hope is people will take the time to read the site, participate in threads, get a feel for the culture, and eventually post a Show HN that is a better fit.

None of that applies to your project, and if we had a better way to screen these things, we'd write software that let posts like yours through the first time. In any case I'm glad I randomly saw this one, and welcome to HN!

antelocnova•1h ago
Thanks dang!

I really appreciate you helping me with this, and totally get the bit about getting flooded.

Anyway, I hope HN community will like this, and maybe contribute, have some crazy ideas about how and where to move forward =)

dang•57m ago
(Normally I'd email, but maybe it's fun for others to be in on the conversation.)

I think this post would be even better if there were more visual examples to look at. Would it be possible to link to more pictures, or even a demo video, showing different cool and/or weird things produced by the tool?

(In terms of video, you don't need anything fancy - what works best is raw and direct, with zero production values.)

Also, another thing that isn't clear to me is whether you've built any of these structures physically. If so, it would be particularly cool to see that in action! If not, it would be interesting to know what it would take to do so.

vunderba•59m ago
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

antelocnova•6m ago
Hi there, thanks!

I'm taking a look at this paper right now, didn't came across it before.

I think it's really good, and also an approach I tried.

In my case, it was working pretty well in terms of geometry and correctness, but not in terms of creativity: too many constraints and an agentic LLM would end up building very similar buildings all the time. Too few ones, and it would drift into unbuildable models.

In the end, I think the current iterative process gives it a good balance: let it try things first and be creative, parts will be placed incorrectly at the beginning, but it will fix their placements, colours and so on bit by bit, until the end result is (hopefully!) correct.

And regarding Opus, according to my experience, I'd say definitely models quality is way better when produced by Opus 5 and even better by Opus 5.5

dy•56m ago
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!
CptBroccoli•48m ago
Any estimates for token costs to generate these models? Curious about costs for Astra, Opus and Jev for some of the examples you have in the video.
ash_091•35m ago
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.

antelocnova•25m ago
Thanks!

I've been experimenting with FreeCAD and freecad-mcp too, even managed for Claude to create a new LDraw benchmark for it.

However, given the amount of parts some LDraw models have, FreeCAD performance would not be enough, something to do with its solver trying to work out too many constraints at once.

The thing about how to assemble the parts, yes, that drove me crazy for quite a while.

A way I found that helps is to provide the agents information about contacts, e.g. what parts of a brick are actually connectors.

With that in place, it can create tools to automatically check if two parts are connected "the right way" ;-)

I got LEGO connectors info from here: https://www.melkert.net/LDCad/tech/shadowLib

ash_091•13m ago
I just added another comment under my original as you were replying- I'll try not to spam you with too many questions, this is just so cool though!

Do you find the models generally manage to avoid making errors when placing parts (e.g. placing parts which intersect, don't connect properly, etc) or do they rely on validation and correction cycles?

1e1a•34m ago
Can it create functional mechanisms using LEGO Technic parts?
ash_091•30m ago
It seems to be able to! https://github.com/anteloc/ldraw-nova/blob/master/examples/m...
ttul•20m ago
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..
ash_091•9m ago
https://brickit.app/ :)
khazhoux•11m ago
Fun idea. Congrats on building and releasing!

That said, LLMs encroaching into the pure-imagination world of Lego gives me a bit of the icks...

ash_091•24m ago
> the 51515 Lego set

On that note- have you considered adding constraints for part availability? It would be useful to be able to create designs using only parts which are on hand.

I recall seeing a project a while ago which could take a photo of a pile of lego as input and produce models that could be made with those parts. Although I think in that case the models were sorta just random arrangements.

nico•6m ago
> I've been experimenting with FreeCAD + freecad-mcp + Claude recently and have been similarly surprised how well this works

Yup. I’ve been getting some pretty decent 3d models directly on stl format + the slicer file with all the right configs for my printer

It’s cool to create a simulation, run some visualizations on web directly from Claude desktop, and then choosing a model to print and build

I also added some genetic algorithms to make it fun iterating on different shapes/mechanisms

I really enjoy how much creativity these tools are unlocking by enabling bridging so many elements together

Show HN: Made an open-source Lego AI generator

https://github.com/anteloc/ldraw-nova
34•antelocnova•1h ago•19 comments

Show HN: Giving Opus 5.5 a simulated paint canvas

https://stillwet.art/
161•alstonite•21h ago•54 comments

Show HN: Pyxel – A Python retro game engine with built-in art and sound editors

https://github.com/kitao/pyxel
42•kitao•22h ago•4 comments

Show HN: Our space game has a built-in RISC-V emulator that runs Linux

https://againstallodds.games/
11•nor-and-or-not•10h ago•2 comments

Show HN: Audionaut – an open-source cross-platform multitrack audio editor

https://github.com/kvoltmer/Audionaut
131•vltmrkls•13h ago•45 comments

Show HN: Use all Codex Plugins inside Pi

https://github.com/wileai/pi-codex-connectors
10•alexandroskyr•18h ago•0 comments

Show HN: Enki – Write GPU compute kernels in pure stable Rust

https://github.com/enkiruntime/enki
7•enki_runtime•2h ago•1 comments

Show HN: Breadcrumb, record everything on your mac + context manager for AI

https://innerloop.works/breadcrumb
40•jv22222•1d ago•5 comments

Show HN: Graphene – Data analysis toolkit for your coding agent

https://github.com/graphene-data/graphene
7•kcmarr•23h ago•1 comments

Show HN: PhreshOS – OS for Web Apps

https://github.com/PhreshOS/system
8•zouhirdx•22h ago•4 comments

Show HN: Open-source Git server that runs on Cloudflare Workers

https://github.com/choyiny/gitorange
2•choyiny•1h ago•0 comments

Show HN: pi pod – run your pi coding agent in sandboxes on your own server

https://pipod.dev/
5•edverma2•2h ago•2 comments

Show HN: Draw from your friends' Claude quota

https://github.com/jaynlabs/jaynshare
3•hugopuybareau•2h ago•0 comments

Show HN: Bise – a multi-agent harness, made for humans

https://bise.dev/
6•gvergnaud•7h ago•1 comments

Show HN: DynamicTune – Closed-form trajectory weight surgery from 4B into 0.8B

https://github.com/dsadawq3/DynamicTune
2•fermlon30000•2h ago•0 comments

Show HN: Another stock screener without AI, news, or analyst ratings

https://holderdashboard.com/
2•caiocmpaes•2h ago•0 comments

Show HN: We built a real-time desktop companion for patient's telehealth visits

https://openhand.health
8•nikilr•1d ago•5 comments

Show HN: Janus – Go binary that runs GGUF models via Vulkan on AMD/Intel/Nvidia

https://github.com/Vibra-Ingenn/Janus
95•Maverick617•1d ago•17 comments

Show HN: Spotlight Off – Automatically Disable macOS Spotlight Indexing

https://github.com/titleunknown/Spotlight-Off
2•titleunknown•2h ago•0 comments

Show HN: Snip – Terminal notes app that Claude can read and write via MCP

https://github.com/jerichosiahaya/snip
2•ikigaineo•3h ago•0 comments

Show HN: Arda – Marketing agents to help brands win Google and AI Search

https://www.ardainc.com
4•daneshbadlani•3h ago•0 comments

Show HN: Open-source model routing for coding agents at Astra-level performance

112•adchurch•2d ago•39 comments

Show HN: GPT-6 Astra and Claude 5.5 Opus race to create the best StarCraft bot

https://starskirmish.com/hillclimb/
2•__cayenne__•4h ago•0 comments

Show HN: VeriSigil AI – Cryptographic identity and trust network for AI agents

2•VeriSigilAI•1h ago•0 comments

Show HN: Outis – Fight AI spam by sending fake "user unknown" bounce emails

https://github.com/dtonon/outis
3•dtonon•5h ago•0 comments

Show HN: What's Agent Doing – a Claude Code UI mod that explains each step

https://github.com/tzafrir/whats-agent-doing
2•tzafrir•6h ago•0 comments

Show HN: Open-Source M&A Tools

https://opensource.mainstreetwealth.ai
3•novateg•2h ago•0 comments

Show HN: What 482 hospitals charge vs. what insurers pay, from their own files

https://www.billmender.com/hospital-prices
26•curatedmcp•1d ago•11 comments

Show HN: UtilsDock – 200 free tools that run in the browser

https://utilsdock.com/
3•JaumeGar•7h ago•2 comments

Show HN: A working 3D model of an Enigma machine

https://enigma.design
112•primitivesuave•3d ago•40 comments