Desktop app for designing parametric 3D models in CadQuery together with the coding agent of your choice
TypeScript 3d-modeling3d-printing3d-printing-toolsagentagentic-aiai-cadcadcadqueryclaude-codecodexelectronfemllmmacdmakeropencodeparametric-designpythonsteptext-to-cad
README auf Englisch mit Bildern, Changelog (E70)
Kai-Jungsthoefel728828467f38
diff --git a/CHANGELOG.md b/CHANGELOG.mdnew file mode 100644index 0000000..fd6e9a2--- /dev/null+++ b/CHANGELOG.md@@ -0,0 +1,37 @@+# Changelog++Alle nennenswerten Änderungen an SOMA. Aufbau nach [Keep a Changelog](https://keepachangelog.com/de/1.1.0/), Versionsnummern+nach Major.minor.bugfix (E68). Neues sammelt sich unter „Unveröffentlicht“ und wandert beim Hochzählen der Version in einen+eigenen Abschnitt mit Datum und Git-Tag.++## [Unveröffentlicht]++### Neu++- Die App beginnt auf der Startseite. Ein neues Modell, das noch der Vorlage entspricht und nie gespeichert wurde, verschwindet beim Verlassen wieder. Andere Modelle lassen sich auf der Startseite entfernen, der Arbeitsordner kommt in den Papierkorb (E69).+- README auf Englisch mit Bildern für die Startseite des Repos, dazu dieser Changelog (E70).++## [0.1.0] - 2026-10-08++Erste Version mit Nummer. Sie fasst den Stand des Prototyps zusammen.++### Neu++- Desktop-App mit Terminal neben dem 3D-Viewer. Der Agent ist frei wählbar (Claude Code, OpenCode, Codex, Gemini CLI …), die App erkennt verbreitete Agenten und startet sie.+- Modelle als Python-Code mit CadQuery (`model.py`, `parts/`), Hilfsbibliothek `soma` mit `add_part`, Gruppen und Rollen, STEP-Import einzelner Teile und ganzer Baugruppen.+- Bauen bei jeder Änderung (abschaltbar), Fehler mit Datei und Zeile, ein vorgewärmter Python-Prozess, Öffnen ohne Neubau.+- Viewer mit Auswahl und Sprung in den Code, Ansichtswürfel, Drehpunkt, Bauteilbaum mit Gruppen, Transparenz und Isolieren.+- Messen auf der exakten Geometrie: Flächen, Kanten, Abstände, Bohrungsabstände.+- Schnitt und Explosionsansicht mit Demontage-Analyse, Abspielen Schritt für Schritt.+- Übergabe an den Agenten: Auswahl, Messwerte, Schnitt und Markierungen (Zeichnen auf der Ansicht) als Text oder Bild ins Terminal.+- Editor für Code und Markdown, PDF-Ansicht mit Zitat an den Agenten.+- Modell als ZIP-Datei mit Git-Verlauf, Zeitleiste mit Vorschau und Wiederherstellen, Speichern nur ausdrücklich.+- Skills: 15 mitgelieferte Regelwerke (3D-Druck, CNC, Blech, Toleranzen, Festigkeit mit FEM …), je Modell aus, bei Bedarf oder immer, mit Einstellungen.+- Normteile nach ISO und DIN mit passenden Bohrungen, Senkungen und Mutternfallen (`soma.fasteners`).+- Animationen in Python, Auswertungen (Überhang, Wandstärke, Abstand, Festigkeit mit FEM), Bilder und Videos über `soma render`.+- Export in STEP, STL, 3MF, glTF, DXF, SVG und weitere Formate.+- Zusatzpakete: `pip install` im Terminal landet in einer kleinen Umgebung je Modell, `requirements.txt` wandert mit dem Modell, auf einem anderen Rechner installiert die App die Pakete nach (E67).+- Versionsnummer auf der Startseite, am Logo und in `project.json` (E68).++[Unveröffentlicht]: https://github.com/Kai-Jungsthoefel/SOMA/compare/v0.1.0...HEAD+[0.1.0]: https://github.com/Kai-Jungsthoefel/SOMA/releases/tag/v0.1.0diff --git a/README.md b/README.mdnew file mode 100644index 0000000..2d00c93--- /dev/null+++ b/README.md@@ -0,0 +1,125 @@+# SOMA++**Solid Object Modeling with Agents.** A desktop app for designing parametric 3D models together with a coding agent.+++++You tell the agent what you need. It writes the model as Python code with [CadQuery](https://github.com/CadQuery/cadquery), SOMA builds it and shows the result. You look at it, measure it, point at what is wrong, and the agent changes the code.++## What it is++SOMA puts a few things into one window:++- **3D viewer** for the model the agent builds, with measuring, sections and exploded views+- **IDE**: terminal for the agent, code editor, file tree and version history+- **Sketch tool**: draw on the view or on a photo of a hand sketch to show the agent what you mean+- **Instructions for the agent**: `AGENTS.md` and `CLAUDE.md` with the rules of the project, plus skills for 3D printing, CNC, tolerances and more+- **Helper tools**: the `soma` command line for building, analysis, rendering and standard parts++## Who it is for++Makers and tinkerers who need a case, a bracket or a mount for their project and don't want to spend hours in a CAD program to get it. Describe or sketch the part, check the result, export it, print it.++It's vibe coding, but for CAD. You don't have to know CadQuery. The code is there if you want to change a dimension yourself.++## Use the agent you already have++SOMA is not an agent harness of its own. The agent runs in a normal terminal inside the model folder. SOMA gives it a command line tool (`soma build`, `soma analyze`, `soma render` …) and an `AGENTS.md` with the rules of the project.++Any CLI agent that can read files and run commands works: Claude Code, OpenCode, Codex CLI, Gemini CLI or whatever comes next. SOMA detects the common ones and can start them. You install and log in to them yourself, so your subscription, your model choice and your permission settings stay yours.++## Features++**Modeling**+- Models are Python files (`model.py`, optional `parts/`) using CadQuery and a small helper library+- Builds on every change, errors point to file and line+- Named parts, groups and sub-assemblies, STEP import of single parts and whole assemblies+- Standard parts (ISO/DIN screws, nuts, washers, heat-set inserts) with matching holes and nut traps+- Extra Python packages: the agent runs `pip install`, SOMA records them in `requirements.txt` and reinstalls them on another machine++**Looking at the result**+- Click a part to jump to the line of code that created it+- Exact measurements on the B-rep, not on the mesh: faces, edges, distances, hole spacing+- Section views, exploded views with a disassembly analysis, transparency and isolation per group+- Analysis: overhangs, wall thickness, clearance between parts, strength with FEM+- Animations written in Python, rendered to images and MP4++**Feedback to the agent**+- Send a selection, a measurement or a section to the agent with one click+- Draw on the 3D view, or drop in a photo of a hand sketch and draw on that, then hand the image to the agent+- `soma render` lets the agent look at its own work as images or contact sheets+- Skills: optional rule sets per model (3D printing, CNC, sheet metal, tolerances, joints, FEM …), switched on always or on demand++**Project**+- A model is a single ZIP file with code, result and history+- Every commit of the agent shows up on a timeline below the view, old states can be previewed and restored+- Export to STEP, STL, 3MF, glTF, DXF, SVG and more++## Screenshots++Click a part and SOMA shows where it comes from in the code.++++Exploded view. SOMA works out in which direction each part can be removed.++++Overhang analysis of a 3D printed part. The agent ran `soma analyze` in the terminal, the critical underside is marked red.++++## What a model looks like++```python+import cadquery as cq+from soma import add_part++LENGTH, WIDTH, HEIGHT, WALL = 60.0, 40.0, 25.0, 2.0++body = (+ cq.Workplane("XY")+ .box(LENGTH, WIDTH, HEIGHT, centered=(True, True, False))+ .edges("|Z").fillet(3.0)+ .faces(">Z").shell(-WALL)+)+add_part("Body", body, color=(0.25, 0.45, 0.75))+```++`soma build` runs the file and writes `output/model.step` with every part named, plus the data for the viewer.++## Status++Early prototype, version 0.1.0. See [CHANGELOG.md](CHANGELOG.md).++- Developed and tested on Windows only+- No installer yet. Python, CadQuery and Git are meant to ship with the app, for now you set them up yourself+- The user interface is in German for now++## Running from source++Requirements: Windows, Node.js 22, Python 3.12 and [uv](https://github.com/astral-sh/uv).++```+powershell -File prototype/phase0/setup_env.ps1+uv pip install --python "$env:LOCALAPPDATA/cadide-phase0/venv-full/Scripts/python.exe" -e python+cd app+npm install+npm start+```++More in [app/README.md](app/README.md).++## Repository++| Path | Content |+|---|---|+| `app/` | Electron app (TypeScript): terminal, viewer, project format, tests |+| `python/soma/` | Helper library and command line tool used by the agent |+| `design/` | UI drafts |+| `PLAN.md`, `DECISIONS.md` | Plan and decision log (German) |++## License++Not decided yet.diff --git a/docs/images/analysis.png b/docs/images/analysis.pngnew file mode 100644index 0000000..6b3333fBinary files /dev/null and b/docs/images/analysis.png differdiff --git a/docs/images/code.png b/docs/images/code.pngnew file mode 100644index 0000000..63bb032Binary files /dev/null and b/docs/images/code.png differdiff --git a/docs/images/explode.png b/docs/images/explode.pngnew file mode 100644index 0000000..7f72ebdBinary files /dev/null and b/docs/images/explode.png differdiff --git a/docs/images/hero.png b/docs/images/hero.pngnew file mode 100644index 0000000..0636070Binary files /dev/null and b/docs/images/hero.png differ