CadSmith

Self-correcting text-to-CAD agent on CadQuery that runs each generated model, measures its geometry against validity checks, and feeds the exact failure back to the model until the part verifies.

AgentOpen sourceMaintainedMCADVerification

What it does and how it connects

CadSmith is a self-correcting text-to-CAD agent built on CadQuery. It turns a plain-English description into a validated parametric 3D model: it asks an LLM for CadQuery code, runs it, measures the resulting geometry, and if anything is wrong, a syntax error, a missing extrude, a units mistake, or an open shell, it feeds the exact failure back to the model and tries again until the part actually verifies.

After every generation it checks that the code executes, that volume is above a threshold, that the bounding box is sane, that the result contains a solid, that the B-Rep passes OCCT validity checks, and that the solid is watertight with no free edges. Verified models export as STL and STEP, with AMF and 3MF also supported. The README positions this as treating geometry as ground truth and closing the loop, rather than fine-tuning a bigger model.

CadSmith ships as a CLI and a Python library, with Anthropic and OpenAI backends built in and a bring-your-own-model option that takes any callable returning text. Generated code runs in-process by default, or in a subprocess with a hard timeout for untrusted models. An eval harness scores success rate and attempts-to-success over a prompt set, and an offline example runs the loop on a canned model with no API key.

  • TextoCAD

    A browser-native text-to-CAD engine that returns editable parametric CAD models from a plain-English prompt, rather than a CadQuery agent that validates generated geometry in a loop.

  • VibeCAD

    An AI-native parametric CAD platform built as a FreeCAD fork for designing real 3D parts through conversation, rather than a CadQuery agent with a geometry validation loop.

  • zapim

    An electronics enclosure generator that emits parametric KCL for the Zoo Design API, rather than a general text-to-CAD agent on CadQuery.

  • Zoo MCP (KittyCAD/mcp)

    The official Zoo MCP server that executes KCL in persistent modeling sessions, rather than a CadQuery agent that validates generated code.

Sources

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

Not verified

  • No GitHub releases exist, so latest release fields are null.
  • Pricing: none stated on the repo.
  • No independent user voice found: no public issues were read for this page.
  • Related Error Index entries: no matching entry verified for CadQuery.
  • A standalone website: the repo has no homepage set.
  • A named individual builder beyond the repository owner handle pranjalbhatia710.

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