Repository navigation
Code2Form 0.5.0
Talk to an AI agent inside the studio: it reads and edits the open model or circuit live, one undo step at a time, on your own Claude Code subscription or an Anthropic API key. And Code2Form has a website.
What's new
- An agent in the studio (#38): open it from the top bar or with Cmd+L, and a chat floats over the 3D view, growing with the conversation. The agent works on the document you have open, not on the file on disk: it changes the code, the customizer's parameters and the view, and you see the model change as it writes. Each change is one undo step, and Cmd+Alt+Z undoes a whole answer.
- Claude Code or an API key (#38): the agent runs on your own Claude Code (your subscription; nothing else to pay, and no price shown) or on an Anthropic API key kept in the Keychain. It can search the web and read pages, for a part's datasheet or a printing tip.
- Live electronics (#38): in a circuit, the agent places parts, wires them and checks the result; a change that would make a short or a wrong voltage is refused, with the checker's explanation.
- Show it instead of describing it (#38): select a part, a face, a wire or lines of code, and they go with your message; right-click in the view › Ask the agent….
- Start with the agent (#38): a new file offers to open a file, start in code, or start with the agent, which plans the object with you (
plan_object) before drawing it. Its replies show tables and lists properly, and the next step of the plan comes as a button. - You keep the last word (#38): ask the agent to wait for you, and each change shows as a diff, with the old model as a ghost in the view, until you accept it. Settings choose the engine, the model, what the agent may write, and keep it to the file's folder.
- A website (#39): https://c2-poly.github.io/code2form/, in English and French, with the latest download, its checksums and how to open the app the first time.
Guide: docs/agent.md.
Known limitations
- Manual modelling is not in this release. The 0.4.0 notes announced it (#26, #27, #28), but that work was lost from
mainbefore 0.4.0 was built, so neither 0.4.0 nor 0.5.0 contains it. It will come back in a later release. - The API engine was tested against a simulated API; Claude Code was tested for real.
projection()withoutcutkeeps holes open where the reference implementation fills them, which changes the volume of some models (0.3% on the GEB example).- Part annotations are plain numbers: a part's pins do not follow its parameters.
- Masses and some dimensions of the library's parts are estimated where no source gives them; each file says which.
- A part in your own library (
~/Documents/Code2Form/libraries) is found before the app's part of the same name.
Downloads
| File | For |
|---|---|
Code2Form-0.5.0-macos-universal.zip |
The app, for every Mac (Apple silicon and Intel), macOS 11 or later |
c2f-0.5.0-macos-universal.zip |
The command line and MCP server, same platforms |
SHA256SUMS.txt |
Checksums of both |
The app is not notarized by Apple yet. On first launch, macOS blocks it: open it once, then go to System Settings → Privacy & Security and click Open Anyway. Or run, once:
xattr -dr com.apple.quarantine /Applications/Code2Form.appThe agent needs Claude Code 2.1.300 or later, signed in, or an Anthropic API key (Settings › Agent).
Windows and Linux: build from source with Rust 1.85 or later (cargo build --release); see the README.