开源CAD应用SOMA:让Claude Code编写CadQuery模型
AI 总结
一名开发者发布了SOMA,这是一款免费、采用GPL许可证的桌面应用,可让Claude Code等编程智能体用CadQuery编写Python代码来生成CAD模型;据作者在Reddit帖子中的说法,应用会在每次保存时重新构建模型并以3D形式显示。作者称,Claude在SOMA内的普通终端中运行,使用用户自己的Claude Code订阅和设置,该应用也支持Codex、OpenCode和Gemini CLI。SOMA为智能体提供命令行接口,可构建模型、测量距离、检查碰撞、运行有限元分析并渲染图像,还附带含项目规则的AGENTS.md以及可按模型切换的3D打印、CNC和钣金技能。作者表示已有Windows、Mac和Linux版本,但主要在Windows上测试,相关能力尚未经过独立验证。
深度见解
据作者介绍,SOMA为编程智能体提供命令行接口,使其能够构建、测量、渲染并查看自己的CAD输出,这是帖子中描述的一种智能体驱动CAD工作流程。
| Been using Claude Code for a while and at some point I wondered if it could do my CAD too. Turns out yes, way better than I expected. So I built an app around it, it's called SOMA and it's open source. The idea: Claude Code writes the model as Python code with CadQuery, SOMA builds it on every save and shows it in 3D. Claude runs in a normal terminal inside the app, so it's your own Claude Code with your own subscription and settings. No wrapper, no extra API key. Works with Codex, OpenCode and Gemini CLI too. What makes it work well is that Claude can check its own results. SOMA gives it a CLI, so it can build the model, measure distances, check for collisions, run FEM and render images to actually look at what it made. There's an AGENTS.md with the project rules and skills for 3D printing, CNC, sheet metal etc that you can switch on per model. From your side you can click on a part or just draw on the 3D view and send that to Claude as a screenshot, like "this hole is too small" with a circle around it. Every step Claude makes is saved in a history, so if it messes something up you just go back. You can do pretty complex stuff with it. Assemblies with a lot of parts, start from a hand drawn sketch, or load an existing STEP file and build around it. The CNC mill in the video has 118 parts. Funny side note, most of SOMA itself was also written with Claude Code. Free, GPL, builds for Windows, Mac and Linux. I mainly tested on Windows, so Mac and Linux feedback would be great. Website: SOMA – Open-source AI CAD for Claude Code, Codex and CadQuery GitHub: https://github.com/Kai-Jungsthoefel/SOMA Curious how it works with your setups and what you end up building. submitted by /u/Lazar988 [link] [comments] |