Claude Generates and Locally Edits Violin CAD
sjia · reddit · 2026-07-15
The author demonstrates having Claude write a roughly 500-line Python CAD script to generate a violin, and then using a "pin a section and describe changes" method to edit only the selected parts rather than regenerating the entire model.
Key points:
- Claude outputs Python CAD code within an agent loop.
- The code is executed by a geometry kernel to directly build the 3D model.
- For the initial generation, the model writes the full script; for modifications, the user selects and "pins" a component, describes the desired change, and the system only patches the corresponding code area.
- The benefit is that satisfactory structures are preserved, making it ideal for structured CAD/3D generation instead of starting from scratch every time.
- The author emphasizes that because the model uses structured code rather than a mesh representation, parts, joints, and kinematic relationships are explicitly represented.
More from coding & agent
- Hermes Agent rewrite proposal applies RIA and Logic Bus rules — Promptmethus · 2026-07-22
- Devin adds e2b sandboxes for remote agent execution — badphilosopher · 2026-07-22
- LangChain adds LangSmith tracing for voice agents across four frameworks — LangChain · 2026-07-22
- Hermes Agent Refactoring Proposal: Decoupling via Event Bus and Monorepo Slicing — Promptmethus · 2026-07-22
- ty now reads Pydantic config keywords and field metadata — charliermarsh · 2026-07-22
- Pensar Launches AI Security Agent to Autonomously Discover and Patch 0-Days — andriy_mulyar · 2026-07-22