SimpleCADAPI
Parametric CAD built for agents.
Efficient · Low-overhead · Agent-native
中文 · Changelog · Skill design · Paper
Start here. Paste this line to your coding agent (Claude Code, Codex, OpenCode, …):
Read physpace.dev/sca/landing.md and landing me on this sdk.
It installs the SDK, installs the skill for itself, opens a real example in the editor, and shows you how to work with it.
The idea
CAD software was made for a person with a mouse. An agent has no mouse. It has code, a context window and a token bill. SimpleCADAPI starts from that.
| Efficient | More first attempts come out right, and fewer tokens are spent getting there. Change one parameter and only the cells that depend on it run again. |
| Low-overhead | One pip install: the geometry engine is native C++ on OpenCASCADE inside the wheel, with no CadQuery or OCP stack. A functional API with no hidden state, so every step is a cell that can be cached, checked and replayed. A skill an agent reads in one batch, not twenty. |
| Agent-native | Errors say what happened, give the measured numbers and say how to fix it. Geometry is selected by what it is (ql, stable scad.ref), not by an index that moves. Every call is recorded as a replayable graph. The editor writes what you click into the notebook, so your agent reads your selection from disk. |
The evidence
Against CadQuery. Same model, same prompt, same 200 real parts, one attempt each. A frozen, independent scorer compares each result with the original.
DeepSeek-V4.1-Flash, SimpleCADAPI 2.2.7b1 vs CadQuery 2.8.0, 200 open-hardware parts from 27 projects. "Badly wrong" is a delivered model whose surface F1 at 1 mm is below 99.99 %. Disclosed in the report: the SimpleCADAPI run also had a STEP-reconstruction workflow guide, the CadQuery run a general third-party CadQuery skill; the parts are mostly simple (median 19 faces).
Against a mature industrial CAD. Tokens spent per task; the industrial CAD is driven through its MCP server.
What it builds
Two six-axis arms, each an assembly of part notebooks composed with scad.use. Every joint angle and link length is a named parameter: drag a slider and the model follows.
SG90 educational arm · 34 parts, six revolute joints solved as constraints, 3D-printable links, reserved envelopes for the electronics. sg90_arm_6dof.py
Desktop six-axis arm with gripper · 34 parts. The joint motor is a purchased part with its real mounting interface (34 × 20 × 19.6 mm body, six M2 holes on a Ø10.5 circle), and the links carry the matching pockets, screw channels and plug windows. arm6.py
The editor, sca edit, is code-first: cells on the left, the live model on the right, a slider for every parameter. Click a solid, face, edge or vertex and it writes a selection into the notebook. Your agent reads what you picked from the file, so "chamfer these two edges" needs no ids. The editor and sca run share one runtime and one per-cell cache; on the six-axis arm a joint angle already seen re-renders in 0.6 s, a new one in 2.7 s (2.2.7).
The skill
The skill is how an agent learns the SDK. It is a router and a library of small pages, written so the agent reads exactly what a step needs, in one parallel batch.
What it does — seven routes, each a complete workflow with its own checks:
| Ask | Route |
|---|---|
| Model one physical part | single-part modeling: requirements → plan → build → verify |
| Build a multi-part product or mechanism | assembly: connectors, constraints, kinematics, standard parts |
| Rebuild an editable model from a STEP file | STEP reconstruction with stable entity ids and acceptance gates |
| Rebuild from a mesh, point cloud or photos | scan reconstruction |
| Rebuild from a vector-PDF drawing | drawing reconstruction |
| Produce a GB engineering drawing (DXF) | engineering drawing from validated geometry |
| Hand the model to someone else | export and translation: STEP AP242, STL, FreeCAD, MJCF |
How it is organized
SKILL.md router: pick one route, read its batch (≤ 130 lines)
workflows/ one lifecycle per route; roles and stages load when they start
domains/ what the SDK offers for a kind of task
discipline/ rules and invariants: core rules, feature order, verifiers, failure and repair
docs/api · stdlib · core 400+ generated signature pages; a method with no page does not exist
- Small reading budget. The first batch of any route is at most 1,200 lines. Every page has one job, and every rule has one home. A build check fails the skill if a page breaks the contract.
- Two modes. Every workflow runs interactive (a person can answer) or unattended (nobody will). The mode changes who decides, never what is checked.
- One source, seven harnesses. The same pages compile for Claude Code, Codex, OpenCode, ZCode, OMP, DSH and Kimi Code.
sca skill targets # the harnesses
sca skill install # compile for yours and install
Plugins
Modeling is the SDK's job. Checking, simulating and translating a finished model belong in a plugin, and a plugin is a repository:
sca-addon.toml machine-checked facts: name, version, which SDK versions, how to provision
skill/SKILL.md everything an agent reads about it
... its own code, binaries and docs, in any language
sca addon add owner/repo # from GitHub; owner/repo@v1.2.0 pins a tag
sca addon add ./my-addon # a local checkout
sca addon list # what is installed, and whether its runtime works
sca addon update # re-fetch; code is swapped, runtime state is kept
- The agent learns it on install. The addon's skill lands beside the SDK's as
sca-<name>, so the agent gets the capability and the instructions together. - Isolated by design. A plugin reads
.scadpkgproduct packages across a process boundary and runs in its own environment, so plugin dependencies never touch the one that models geometry. - Already in use. Connector verification (bolted, pinned, press-fit, welded and other joints, checked and then run through FEM) and FEM mesh preparation (fasteners removed, their holes filled, closure proven) are plugins. The AP242 → Gmsh → CalculiX and MJCF → MuJoCo paths below run off the same package.
|
L-bracket static FEM CalculiX von Mises on the Gmsh mesh of the AP242 export; faces are chosen by interface.* tags that survive model changes
|
Four-bar linkage, first pass MuJoCo shows the links crossing: the assembly is wrong |
|
After the collision pass the same crank cycle sweeps clean |
Install
pip install "simplecadapi[editor]" # the SDK and the editor
sca example u_link # a real workspace to open
sca edit u_link # the editor
sca skill install # the skill for your agent
Python 3.10–3.13 on Linux, macOS and Windows. uv tool install "simplecadapi[editor]" puts sca on your PATH without a virtual environment. sca run model.py runs a notebook headless; sca export writes STEP, STL and OBJ.
Research artifact
This repository is an artifact of CADIR: A Cross-Backend Editable Intermediate Representation for Agentic CAD Generation.
Apache-2.0. Validate generated models before production use.
Metadata
Release files for simplecadapi 2.3.0.post1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| simplecadapi-2.3.0.post1.tar.gz | 33.3 MB | Without provenance | Details for simplecadapi-2.3.0.post1.tar.gz |
Built distributions (wheels)
Total release size: 407.2 MB
Release files / simplecadapi-2.3.0.post1.tar.gz
| Download URL | simplecadapi-2.3.0.post1.tar.gz |
|---|---|
| Size | 33.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b63516a8a76f88923ae69db3e0373586754e3f2e6a8d415fa09be2d41efab14
|
|
BLAKE2b-256 checksum How to use checksums |
4075f4a71d78aedc47ae23384827d469fb1b08b74ca9dc7010046dbd1799b58e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / simplecadapi-2.3.0.post1-cp313-cp313-win_amd64.whl
| Download URL | simplecadapi-2.3.0.post1-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 17.6 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
2f7aed4a0e293b351a947f44e26f1a8d908121bd16625567e15e22c45ccf4ab6
|
|
BLAKE2b-256 checksum How to use checksums |
0848ae1970a689f075adb6f77e69823ec006b1bcc90cbe216d92765f82c930c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / simplecadapi-2.3.0.post1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | simplecadapi-2.3.0.post1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 28.3 MB |
| Tags | CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
06bd33d43b25dfe83abac1a781c60eb17ac3abacdc346bdd57c31a4097abdc21
|
|
BLAKE2b-256 checksum How to use checksums |
475afa2c8165ecec9425795e51209c270a0cf9ea52841db878da53b9e1ae1c89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / simplecadapi-2.3.0.post1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
| Download URL | simplecadapi-2.3.0.post1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 26.1 MB |
| Tags | CPython 3.13 Linux glibc 2.27+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
0feefeadc41ddd7f6488af07090a5b684377ed330a3eb2610809fb9c1ada44a5
|
|
BLAKE2b-256 checksum How to use checksums |
cb2e5613d64e721765f9d76a6f06f77f8910c8a42bf02748b2698a8777c6a45a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / simplecadapi-2.3.0.post1-cp313-cp313-macosx_14_0_arm64.whl
| Download URL | simplecadapi-2.3.0.post1-cp313-cp313-macosx_14_0_arm64.whl |
|---|---|
| Size | 21.5 MB |
| Tags | CPython 3.13 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
8aea8d9abcfda766ea8919c3438313b3a7ed7bc15596b49735d04247c2b8a5c9
|
|
BLAKE2b-256 checksum How to use checksums |
cf7076802fe0a692fc372b4a23d3517c94e6fe182322c3cfce480462c3c479ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / simplecadapi-2.3.0.post1-cp312-cp312-win_amd64.whl
| Download URL | simplecadapi-2.3.0.post1-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 17.6 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
10fb6bb4a688f14db528f5055f82119f094b99343b0cf8909a41b07f61f27ae5
|
|
BLAKE2b-256 checksum How to use checksums |
33cb9c1ac083f491cf07e133bec1ef731c7b69810421d292102432a0abe4ee75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / simplecadapi-2.3.0.post1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | simplecadapi-2.3.0.post1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 28.3 MB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
445796313091d45ba7355fb337b92c6f93ad4a93eaf78a261af86e78370d23ec
|
|
BLAKE2b-256 checksum How to use checksums |
701fa9901da63fb1bd05b85053c94c73eed9ea5502515f749b05e6b9c62fd18e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / simplecadapi-2.3.0.post1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
| Download URL | simplecadapi-2.3.0.post1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 26.1 MB |
| Tags | CPython 3.12 Linux glibc 2.27+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
f38fc015b0b45a905e1ba3002526164daabceb82515de7e441a7991c3e732c78
|
|
BLAKE2b-256 checksum How to use checksums |
906a6a3a52de6a652881ac4bc7f95ca3832436783c7edeef23039f2c3629e4b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / simplecadapi-2.3.0.post1-cp312-cp312-macosx_14_0_arm64.whl
| Download URL | simplecadapi-2.3.0.post1-cp312-cp312-macosx_14_0_arm64.whl |
|---|---|
| Size | 21.5 MB |
| Tags | CPython 3.12 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
fa8749ece096c7457e4c00caee7ba4509edca63beda98209324e61fb20112ec8
|
|
BLAKE2b-256 checksum How to use checksums |
229d1555ad0fd642c2188e5bcc8fe615147829b96a961d05fd67ce8a7ffb4670
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / simplecadapi-2.3.0.post1-cp311-cp311-win_amd64.whl
| Download URL | simplecadapi-2.3.0.post1-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 17.6 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
44ed72b9d5765ebb822f8499e07a16a557157e14343f464b452276240601f9a5
|
|
BLAKE2b-256 checksum How to use checksums |
71395b248132e40dce1effb44abe8538dab82c23ba98eafd3159234da3b98368
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / simplecadapi-2.3.0.post1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | simplecadapi-2.3.0.post1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 28.3 MB |
| Tags | CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
c951d5908947a4d9635d1cc096d98412da643949beb7b7da1c06e1a5e9c280da
|
|
BLAKE2b-256 checksum How to use checksums |
e52fb9f85100a6ab6afa68b5d2d4b1461204af363793c0c52ac7732e56bdfeae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / simplecadapi-2.3.0.post1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
| Download URL | simplecadapi-2.3.0.post1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 26.1 MB |
| Tags | CPython 3.11 Linux glibc 2.27+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
35e0baf508064b83e6d967c01678dac2265c0c4210e3b85a109b077bf43451f5
|
|
BLAKE2b-256 checksum How to use checksums |
97731fd04669757adc8699e6baca1978a2e04b4ed5c0c09e7d3ba03612cac006
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / simplecadapi-2.3.0.post1-cp311-cp311-macosx_14_0_arm64.whl
| Download URL | simplecadapi-2.3.0.post1-cp311-cp311-macosx_14_0_arm64.whl |
|---|---|
| Size | 21.5 MB |
| Tags | CPython 3.11 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a9912a5c12f730040173f592aa777f2c4c35085f22a7611ed27722d2f24985db
|
|
BLAKE2b-256 checksum How to use checksums |
f43dfffccf944bcf18ca663897a5edff40b95d3db32e982175a9ff76bbe26007
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / simplecadapi-2.3.0.post1-cp310-cp310-win_amd64.whl
| Download URL | simplecadapi-2.3.0.post1-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 17.6 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
cc1fe2b883d304f36e67d7c8ebd75dd4e44769b474301096d9bd5273f72fe7a5
|
|
BLAKE2b-256 checksum How to use checksums |
952f4a955161102968c9d6a4d1e07e9095ab7b8c756699d8ed43b2c1bd9c5405
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / simplecadapi-2.3.0.post1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | simplecadapi-2.3.0.post1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 28.3 MB |
| Tags | CPython 3.10 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
1475eb441c70494b4a7436f94a6b29f933739262ac560eb4b3b092e2eaca386a
|
|
BLAKE2b-256 checksum How to use checksums |
a0047d4343e0e045d2b7a1f44cbdb027fd1f6f5ef6e1997b2cd79a139e8112b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / simplecadapi-2.3.0.post1-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
| Download URL | simplecadapi-2.3.0.post1-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 26.1 MB |
| Tags | CPython 3.10 Linux glibc 2.27+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
f2d46d9deff827be4acaa3731d99e5fb03148ab12b9ddff5163a795a5cc2efad
|
|
BLAKE2b-256 checksum How to use checksums |
7828422553425bb1841254464ed913a8e4ddc7747ad10deff757eb86bc217626
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / simplecadapi-2.3.0.post1-cp310-cp310-macosx_14_0_arm64.whl
| Download URL | simplecadapi-2.3.0.post1-cp310-cp310-macosx_14_0_arm64.whl |
|---|---|
| Size | 21.4 MB |
| Tags | CPython 3.10 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ef273b68b55a84d9124af38e5538be8a2b6042c136f729f1ce8cfbfa159d16f2
|
|
BLAKE2b-256 checksum How to use checksums |
b846725f44bb29f3b608e846a319f79e83865f2ffc7db004a5127ecdb7683072
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for simplecadapi 2.3.0.post1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.