AgentBrick: Prompt-to-CAD & Voxel Assembly Agents

Open-source framework translating natural language prompts into structured LDraw CAD models and voxel assemblies using LangChain agents and LangGraph.

Technology Readiness Level

Technology Validated in Lab

1
2
3
4
5
6
7
8
9

Key components and software architecture modules are integrated and tested together in a controlled laboratory environment, establishing that disparate elements work together to achieve baseline performance.

Framework alignment: Standardized 9-level TRL (NASA / EU Horizon Europe).

Core Challenge

Generating valid 3D CAD assemblies and physical brick models directly from unconstrained natural language prompts is prone to hallucination, geometrical inconsistencies, and structural syntax violations inherent to discrete modeling standards like LDraw.

System Architecture

A multi-stage agentic CAD pipeline built with LangChain and LangGraph that systematically decomposes prompts into descriptive specifications, topological component graphs, and discrete voxel grids before synthesizing validated LDraw assemblies.

Key Capabilities

  • Conversational CAD Generation: Translates high-level natural language prompts into syntactically valid and modular LDraw CAD models.
  • LangGraph State Machine: Orchestrates multi-phase workflows with deterministic state transitions across description, topology, and voxel resolution.
  • Topological Component Extraction: Derives structural sub-assemblies and interface contact graphs to guarantee coherent mechanical connectivity.
  • Discrete Voxel Discretization: Evaluates coordinate occupancy within configurable 3D bounding grids for precise brick mapping.

Technology Stack

  • Agentic AI & Orchestration: LangGraph, LangChain, Pydantic, Llama 3.2
  • CAD & Spatial Representation: LDraw Standard, Discrete Voxel Grids, Component-Interface Graphs
  • Engineering & Quality: Python, Pyright Static Typing, Black Formatter

Verifiable Outcomes

  • Functional open-source framework demonstrating end-to-end Chat-to-CAD synthesis for discrete brick models.
  • Multi-agent architecture replacing unstructured LLM generation with validated topological and spatial intermediate states.
  • Extensible modular repository with custom agent middlewares, state validation schemas, and reproducible workflow tests.

AgentBrick replaces unconstrained text-to-3D LLM guessing with a stateful LangGraph pipeline that compiles natural language design intents through intermediate textual specifications, topological component-interface graphs, and discrete voxel grids into syntactically valid LDraw CAD models.

This structured state-machine approach builds on our engineering patterns for Reliable Agent Architectures and our Intelligence Engineering practice, while complementing browser-based collaborative brick and CAD workflows in CADdrive.

Project Screenshots

Interface walkthroughs, system diagrams, and visual demonstrations from AgentBrick: Prompt-to-CAD & Voxel Assembly Agents.

Discrete 3D Voxel Model: Volumetric coordinate discretization mapping conversational concepts into discrete voxel cells for physical brick placement.

Discrete 3D Voxel Model

Volumetric coordinate discretization mapping conversational concepts into discrete voxel cells for physical brick placement.

Component & Interface Graph: Extracted topological graph of interconnected physical sub-assemblies and interface boundaries derived by LLM agents.

Component & Interface Graph

Extracted topological graph of interconnected physical sub-assemblies and interface boundaries derived by LLM agents.