Research ·
BrickWright: Agentic Creation of Physically Feasible Brick Builds
BrickWright is a framework that lets pre-trained coding agents generate physically feasible LEGO builds from text or image prompts using an assembly API and a feasibility validator.

A Hugging Face paper introduces BrickWright, a framework for generating physically feasible LEGO brick builds from text or image prompts using pre-trained coding agents. A build counts as physically feasible if it uses only real parts, has no colliding or floating parts, and forms a connected structure when possible. The authors argue that giving agents tools for assembling builds and verifying feasibility is sufficient to produce valid assemblies that still follow the input prompt.
Agents work by writing code with BrickLayer, a Python toolkit with two components: a brick assembly API that halves inference cost compared to working in raw LDraw, and a validator that gives feedback on physical feasibility. Baseline agents achieve validity rates from 9% (GPT-6 Luna) to 69% (GPT-6 Astra), while BrickWright-guided agents reach 100% validity on a sample of 512 prompts, improving prompt adherence for lightweight agents and maintaining it for stronger ones. They also outperform specialized models on the text-to-brick task.
For anyone building with AI, the takeaway is that tooling matters more than model strength: an assembly API plus a validator that catches floating and colliding parts turned weak validity rates into perfect ones without fine-tuning. The same pattern—give agents a programmatic interface and a hard check they cannot argue around—applies to other domains where generated output must satisfy physical or structural constraints.
Code is available at the project page: https://avalovelace1.github.io/brickwright/
References
- Hugging Face · huggingface.co
Read the full story at Hugging Face ↗Like, save or discuss on Buzz