{"by":"antelocnova","descendants":51,"id":49937916,"kids":[49938490,49939755,49938219,49943192,49938628,49943200,49938500,49938259,49938345,49938699,49941607,49938782,49938956,49969987,49939886,49941588,49941704,49938877,49937917,49942522,49941744,49939483,49939558],"score":170,"text":"Hi there :-) New on HN, first time posting.<p>Past year, around December, I started experimenting with making ChatGPT and Claude generate source code in LDraw language.<p>This LDraw is literally an &quot;assembly&quot; language, a low-level programming language that describes how to assemble LEGO pieces together into models, one placement instruction at a time.<p>When executed by specific tools, like e.g. LDView, LeoCAD, Studio... these instructions become LEGO CAD models, that can be interacted with, modified, etc.<p>Or, in other words: one LDraw source file in .mpd or .ldr format is equivalent to one LEGO CAD model.<p>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?<p>Then, after months of iterations and trying one thing after the other... it worked!!!<p>Long story short: using GPT-6 Astra and Opus 5.5, I&#x27;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.<p>I&#x27;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.<p>Here&#x27;s a bunch of exmaples: <a href=\"https:&#x2F;&#x2F;anteloc.github.io&#x2F;index-samples.html\" rel=\"nofollow\">https:&#x2F;&#x2F;anteloc.github.io&#x2F;index-samples.html</a>.<p>If you are curious about the internals of an .mpd model, the &quot;what was the agent picturing on its mind&quot;, open the .mpd file that got your attention on a text editor, and read the first line under the ones starting with &quot;0 FILE&quot;.<p>I&#x27;d really appreciate feedback and comments, let&#x27;s see where this goes =)","time":1790971215,"title":"Show HN: Made an open-source Lego AI generator","type":"story","url":"https://github.com/anteloc/ldraw-nova"}