@QingQ77: 开源框架,让 Codex、Claude Code 等编码代理根据文字描述生成 CAD 模型,导出 STEP/STL/3MF 等格式。 https://github.com/earthtojake/text-to-cad… text-to-…

X AI KOLs Timeline 工具

摘要

开源框架 text-to-cad 让 Codex、Claude Code 等编码代理根据文字描述生成 CAD 模型,支持导出 STEP、STL、3MF、DXF、GLB、URDF 等格式,内置 CAD/URDF/Robot Motion 三套技能,可本地运行无需后端。

开源框架,让 Codex、Claude Code 等编码代理根据文字描述生成 CAD 模型,导出 STEP/STL/3MF 等格式。 https://github.com/earthtojake/text-to-cad… text-to-cad 是开源的 Text-to-CAD 框架,用 build123d/OCP 驱动,Codex 和 Claude Code 等代理写文字描述就能生成 CAD 模型。内置 CAD、URDF、Robot Motion 三套 Skill,导出 STEP、STL、3MF、DXF、GLB、URDF 都行,本地 CAD Explorer(React/Vite)实时看结果和几何引用。流程:描述→改源文件→重新生成→看→引用→提交,全在本地跑不用后端。附 10 个基准测试,从方块到行星齿轮。
查看原文
查看缓存全文

缓存时间: 2026/05/08 23:39

开源框架,让 Codex、Claude Code 等编码代理根据文字描述生成 CAD 模型,导出 STEP/STL/3MF 等格式。 https://github.com/earthtojake/text-to-cad… text-to-cad 是开源的 Text-to-CAD 框架,用 build123d/OCP 驱动,Codex 和 Claude Code 等代理写文字描述就能生成 CAD 模型。内置 CAD、URDF、Robot Motion 三套 Skill,导出 STEP、STL、3MF、DXF、GLB、URDF 都行,本地 CAD Explorer(React/Vite)实时看结果和几何引用。流程:描述→改源文件→重新生成→看→引用→提交,全在本地跑不用后端。附 10 个基准测试,从方块到行星齿轮。


earthtojake/text-to-cad

Source: https://github.com/earthtojake/text-to-cad

Demo of the text-to-cad harness generating and previewing CAD geometry

⚙ Open Source Text to CAD Harness ⚙

An open source harness for generating 3D models with your favorite coding agent

Demo project

GitHub stars GitHub forks License: MIT Follow @soft_servo Python build123d OCP STEP STL 3MF URDF Robot Motion Node.js React Vite

✨ Features

  • Generate - Create source-controlled CAD models with coding agents like Codex and Claude Code.
  • Export - Produce STEP, STL, 3MF, DXF, GLB, topology data, and URDF robot descriptions.
  • Browse - Inspect generated geometry in CAD Explorer.
  • Reference - Copy stable @cad[...] references so agents can make precise follow-up edits.
  • Review - Render quick review images for fast checks during an iteration loop.
  • Reproduce - Edit source files first, then regenerate explicit targets.
  • Local - Run the harness and CAD Explorer locally with no backend to host.

🧰 Bundled Skills

This harness vendors file-targeted skills for CAD, robot-description, robot-motion, and manufacturing-preflight work. Use the bundled copies here for local CAD projects, or use the dedicated repositories when installing the skills outside this harness.

  • CAD Skill - STEP, STL, 3MF, DXF, GLB/topology, render images, and @cad[...] geometry references. Bundled skill · Standalone repo
  • URDF Skill - Generated URDF XML, robot links, joints, limits, validation, and mesh references. Bundled skill · Standalone repo
  • Robot Motion Skill - ROS 2/MoveIt setup, CAD Explorer motion artifacts, inverse kinematics, path planning, and motion-server testing for existing URDFs. Bundled skill

Skills live canonically under .agents/skills for Codex. Claude Code compatibility is provided by per-skill symlinks in .claude/skills.

📸 Screenshots

CAD skill demo showing generated geometry in CAD Explorer CAD URDF skill demo showing robot description output in CAD Explorer URDF Robot Motion skill demo showing inverse kinematics in CAD Explorer Robot Motion

🔁 Workflow

  1. Describe - Tell your agent about the part, assembly, fixture, robot, or mechanism you want.
  2. Edit - Let your coding agent update repo-local CAD source files.
  3. Regenerate - Create explicit STEP, STL, 3MF, DXF, GLB, or URDF targets.
  4. Inspect - Open CAD Explorer to review the generated model.
  5. Reference - Copy @cad[...] handles when you want geometry-aware edits.
  6. Commit - Save the source and generated artifacts together once the model is ready.

🧪 Benchmarks

The repo stores .assets/** through Git LFS and excludes that tree from default LFS pulls so lightweight clones do not fetch GIF assets or benchmark detail pages. To hydrate only the benchmark assets locally, run:

git lfs pull --include=".assets/benchmarks/**"
# Target Prompt Output
1 Rectangular calibration block with four holes Create a centered 100 x 60 x 20 mm block with four 8 mm vertical through-holes. Add only a 2 mm chamfer on the top outer perimeter. Rectangular calibration block orbit gif
2 Circular flange with bolt-hole pattern Create an 80 mm diameter, 10 mm thick circular flange with a 30 mm central through-bore. Add six 6 mm through-holes on a 60 mm bolt circle and fillet the outside circular edges. Circular flange orbit gif
3 L-bracket with gussets and two hole directions Create an L-bracket from a base plate and rear vertical plate. Add vertical base holes, horizontal back-plate holes, two triangular gussets, and a filleted base/back transition. L-bracket orbit gif
4 Stepped shaft with keyway Create a 120 mm shaft along X with 20/30/20 mm diameter stepped sections. Add end chamfers and a shallow rectangular keyway on top of the middle section. Stepped shaft orbit gif
5 Open-top electronics enclosure with bosses Create a hollow open-top enclosure with 3 mm walls and floor. Add four internal standoffs with centered blind holes and 2 mm outside vertical corner fillets. Open-top electronics enclosure orbit gif
6 Aerospace-style clevis bracket with lightening cutouts Create a symmetric clevis bracket with a base plate, two rounded lugs, base mounting holes, and a horizontal lug bore. Add triangular lightening cutouts, reinforcing ribs, and rounded transitions. Clevis bracket orbit gif
7 Radial-engine-style cylinder with cooling fins Create a vertical engine-cylinder form with a central barrel, 12 cooling fins, a base flange, and a top cap. Add a 35 degree angled spark-plug boss with a coaxial through-hole. Radial-engine-style cylinder orbit gif
8 Centrifugal impeller with backward-curved blades Create a centrifugal impeller with a backplate, hub, and through-bore. Add 12 fused backward-curved blades sweeping about 45 degrees from root to tip. Centrifugal impeller orbit gif
9 Spiral staircase with helical handrail Create a miniature spiral staircase with a central column, base disk, and 20 rising wedge treads. Add a one-revolution helical handrail and vertical balusters at the tread outer ends. Spiral staircase orbit gif
10 Simplified planetary gear stage Create a flat planetary gear assembly with separate sun, planet, ring, carrier, and pin bodies. Use simplified trapezoidal teeth and place three planets around the sun on a 42 mm radius circle. Planetary gear stage orbit gif

🚀 Quick Start

Clone the repo:

git clone https://github.com/earthtojake/text-to-cad.git
cd text-to-cad

Install Python CAD dependencies:

python3.11 -m venv .venv
./.venv/bin/python -m pip install --upgrade pip
./.venv/bin/pip install -r .agents/skills/cad/requirements.txt

Install other bundled skill requirements only when you need those workflows:

./.venv/bin/pip install -r .agents/skills/urdf/requirements.txt

Install CAD Explorer dependencies:

npm --prefix .agents/skills/cad/explorer install

Run the local CAD Explorer from the project directory you want to scan:

npm --prefix .agents/skills/cad/explorer run dev

Then open http://localhost:4178.

For root-aware agent workflows across multiple projects, ask CAD Explorer to reuse a matching server or start one on a free port:

npm --prefix .agents/skills/cad/explorer run dev:ensure -- --file STEP/sample_part.step

Then open the URL printed by the command.

相似文章

@aigclink: Text-CAD:它不是"生成一张零件图",一句话 → STEP → 切片 → 直接连本地 Bambu 打印机出活全链条。 原先机械工程师在 SolidWorks 里手动建模、再逐个尺寸拉卡尺核对——这两个动作,被这个项目接管了。 一次装…

X AI KOLs Timeline

Text-CAD 项目实现了从自然语言描述到 STEP 三维模型、切片直至直连 Bambu 打印机全流程的 AI 驱动自动化,通过让 LLM 生成 build123d Python 源码而非直接操作几何内核,有效降低了生成复杂格式的难度,并集成了多项硬件制造相关技能。

earthtojake/text-to-cad

GitHub Trending (daily)

一个代理技能库,用于从文本或图像生成CAD、机器人描述和制造工件,使AI代理能够创建和操作3D模型及机器人文件。

@oragnes: 卧槽,GitHub上刚挖到的神器map3d,基于OpenStreetMap,你在网页上框选一个区域,它就能自动把真实的建筑物、道路数据抓下来,一键渲染成自带高度的3D城市模型! 最狠的是还能直接导出GLB文件,塞进Blender或游戏引擎…

X AI KOLs Timeline

介绍GitHub上两个开源工具:map3d,基于OpenStreetMap自动生成3D城市模型并导出GLB文件;Voice-Pro,集成视频下载、人声分离、字幕识别、翻译、声音克隆配音和视频合成的本地工具。