Skip to content
Proyectos

Acerca de

Official repository for BrickWright, a framework that enables LLM agents to create physically feasible LEGO® builds from text or image prompts.

Diseño y multimedia

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
+9
in 15 days
+14
in 1 month
+25

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

BrickWright

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

Paper Project Page PyPI Licence


An agent builds a lighthouse, Van Gogh's The Starry Night, and a crab from real LEGO® parts, with no collisions or floaters, fully connected

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

  1. Download this repo: git clone https://github.com/AvaLovelace1/brickwright.git.
  2. Ask your favorite agent (Codex, Claude Code, etc.) to create a brick build following the packages/brickwright README.
  3. 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.

  1. Download brickwright-skill.zip from the latest release.
  2. In Claude, turn on Settings → Capabilities → Create and edit files.
  3. Go to Settings → Customize → Add → Upload skill, choose the zip, and select Add skill.
  4. Start a chat with /brickwright and 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!

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.

Explorar proyectos relacionados

Cargando…