AvaLovelace1/brickwright
Sobre
Official repository for BrickWright, a framework that enables LLM agents to create physically feasible LEGO® builds from text or image prompts.
Design e mídiaCrescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- +9
- em 15 dias
- +14
- em 1 mês
- +25
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
OriginalBrickWright
Agentic Creation of Physically Feasible Brick Builds
Ava Pun1,
Kevin Dai1,
Sally Chen1,
Maxwell Jones1,
Ruixuan Liu1,
Kangle Deng2,
Changliu Liu1,
Maneesh Agrawala3,
Deva Ramanan1,
Jun-Yan Zhu1
1Carnegie Mellon University, 2Independent researcher, 3Stanford University
![]()
BrickWright enables pre-trained coding agents to generate high-fidelity, physically feasible LEGO® builds from text or image prompts by writing code with BrickLayer, a Python toolkit for build creation and validation. Whereas baseline agents achieve physical validity rates ranging from only 9% (GPT-6 Luna) to 69% (GPT-6 Astra), BrickWright-guided agents achieve 100% validity on a sample of 512 prompts, while improving prompt adherence for lightweight agents and maintaining it for stronger agents.
This repository contains two packages:
| Package | Description |
|---|---|
| bricklayer | An SDK for programmatically creating and validating LEGO builds. Assemble builds from real catalog parts, check them for validity, and export to LDraw. |
| brickwright | A framework that guides an LLM agent to generate LEGO builds with BrickLayer. |
Quickstart
- Download this repo:
git clone https://github.com/AvaLovelace1/brickwright.git. - Ask your favorite agent (Codex, Claude Code, etc.) to create a brick build following the packages/brickwright README.
- Have fun!
Use it in Claude (easy setup)
BrickWright is also packaged as a skill you can upload to Claude: describe a build in chat
and get back an .ldr file, with no clone, no API key, and no GPU.
- Download
brickwright-skill.zipfrom the latest release. - In Claude, turn on Settings → Capabilities → Create and edit files.
- Go to Settings → Customize → Add → Upload skill, choose the zip, and select Add skill.
- Start a chat with
/brickwrightand describe what you want, for example "a small red lighthouse on a grey rocky base, about 10 studs tall".
Claude writes the build, checks it for interpenetrating parts, unsupported parts, and
connectivity, renders a preview to look at, and hands you an .ldr to open in
BrickLink Studio (File → Import → LDraw) or
preview at the LDraw model viewer.
The skill installs its SDK from PyPI the first time it runs, so it needs a sandbox with package access.
Development
Contributing? Make sure to run tests, lint, format, and type-check before submitting a PR:
uv run pytest # run the full test suite
uv run ruff check . # lint
uv run ruff format . # format
uv run ty check # type-check
Related & concurrent work
Check out these other awesome papers on LEGO® generation!
- BrickBench: Evaluating Agentic Brick Design (October 2026)—a benchmark and environment for agentic LEGO® design
- BrickNet: Graph-Backed Generative Brick Assembly (April 2026)
- LegoACE: Autoregressive Construction Engine for Expressive LEGO® Assemblies (December 2025)
- LEGO®-Maker: Autoregressive Image-Conditioned LEGO® Model Creation (December 2025)
- Generating Physically Stable and Buildable Brick Structures from Text (May 2025)
- Learn to Create Simple LEGO Micro Buildings (November 2024)
Citation
If you've used BrickWright in your work, please cite us!
@misc{pun2026brickwright,
title = {BrickWright: Agentic Creation of Physically Feasible Brick Builds},
author = {Pun, Ava and Dai, Kevin and Chen, Sally and Jones, Maxwell and Liu, Ruixuan and Deng, Kangle and Liu, Changliu and Agrawala, Maneesh and Ramanan, Deva and Zhu, Jun-Yan},
year = {2026},
eprint = {2610.31651},
archivePrefix = {arXiv},
}
Acknowledgments
This work is partly supported by the Packard Foundation, Sloan Foundation, NVIDIA Academic Grant, and IITP grant funded by the Korean Government (MSIT) (No. RS-2024-00457882, National AI Research Lab Project). Ava Pun is supported by the Meshy Fellowship, Tata Consultancy Services Presidential Fellowship, and NSERC CGRS D. Maxwell Jones is supported by the Rales Fellowship.
LEGO® is a trademark of the LEGO Group, which does not sponsor, authorize, or endorse this project.
Explore projetos relacionados
Carregando…