cad-gen (philinhphan/cad-agent)

Agentic drawing to CAD tool that turns a technical drawing plus optional text into CadQuery geometry exported as STEP and STL, using a self-refine loop with a vision model critic and geometric reprojection checks.

AgentNot statedMaintainedMCAD

What it does and how it connects

cad-gen turns a technical drawing into real, manufacturable CAD geometry in STEP and STL through a self refine loop. An LLM writes CadQuery code, the code runs in a sandboxed subprocess, the resulting solid is rendered and reprojected against the drawing by a deterministic geometric arbiter, a vision model critic scores it, and the code is refined iteratively until it passes a quality threshold. An optional text description can be supplied alongside the drawing to disambiguate.

The tool is built on PydanticAI, so it is LLM agnostic: any supported provider works by changing one model string, with Gemini as the default. It ships with a CLI, a Python library API, and a Next.js plus FastAPI web dashboard that streams every iteration live and renders the generated solid in 3D in the browser.

The output artifacts are the final STEP and STL files plus a report. The README lists known limitations and future work sections and documents the pipeline stages, the tech stack, and the security notes for the sandboxed code execution.

  • Agent-CAD

    Turns natural language requirements into build123d solids and 2D drawings in a workbench, rather than turning a technical drawing into CadQuery geometry.

  • build123d-mcp (pzfreo)

    A CAD toolbox an AI app uses through MCP to build build123d models step by step, rather than an agent that refines CadQuery code against a drawing.

  • C33D

    A browser based research preview where an LLM authors designs as an editable node graph, rather than an agent that converts drawings to CadQuery.

  • AnkusDrive

    A CLI and MCP server that drives FreeCAD with FEM and CFD simulation, rather than a drawing to CadQuery agent with a vision critic.

  • MecAgent

    A commercial desktop copilot that acts inside an open SolidWorks session, rather than an open source drawing to CadQuery agent.

Sources

  1. 1READMEgithub.com
  2. 2GitHub repo statsapi.github.com

Not verified

  • License: the GitHub API returns no license and no license is stated in the README read, so no license is stated.
  • Pricing: none stated on the repo.
  • No GitHub releases exist, so latest release fields are null.
  • No independent user voice found: the only recent repo activity is contributor pull requests.
  • Related Error Index entries (no matching entry verified)

Last verified November 6, 2026. Listings are informational. The evidence score measures public, verifiable evidence and is not an endorsement or a compatibility claim.