Metadata-Version: 2.5
Name: cadrev
Version: 0.4.1
Summary: Reverse-engineer CAD from a paper, with every dimension traceable to a quoted source.
Project-URL: Repository, https://github.com/Vini-41/cad-reverse-engineer
License-Expression: MIT
License-File: LICENSE
Requires-Python: <3.15,>=3.12
Requires-Dist: anytree==2.13.0
Requires-Dist: asttokens==3.0.2
Requires-Dist: bd-materials==0.2.4
Requires-Dist: build123d==0.13.0
Requires-Dist: cadquery-ocp-novtk==8.0.1.1.0
Requires-Dist: cadquery-ocp-proxy==8.0.1.1.0
Requires-Dist: certifi==2026.7.22
Requires-Dist: charset-normalizer==3.5.2
Requires-Dist: cloudpickle==3.1.2
Requires-Dist: colorama==0.4.6; sys_platform == 'win32'
Requires-Dist: contourpy==1.4.0
Requires-Dist: cycler==0.12.1
Requires-Dist: dataclasses-json==0.6.7
Requires-Dist: deprecated==3.0.0
Requires-Dist: executing==2.3.0
Requires-Dist: ezdxf==1.4.5
Requires-Dist: fonttools==4.67.0
Requires-Dist: idna==3.20
Requires-Dist: ipython-pygments-lexers==1.1.1
Requires-Dist: ipython==9.17.1
Requires-Dist: jedi==0.20.1
Requires-Dist: joblib==1.6.0
Requires-Dist: kiwisolver==1.5.1
Requires-Dist: lib3mf==2.5.0; platform_machine != 'aarch64' or sys_platform != 'linux'
Requires-Dist: marshmallow==3.26.2
Requires-Dist: matplotlib-inline==0.2.2
Requires-Dist: matplotlib==3.11.2
Requires-Dist: mpmath==1.3.0
Requires-Dist: mujoco-core==4.0.1
Requires-Dist: mypy-extensions==1.1.0
Requires-Dist: narwhals==2.27.1
Requires-Dist: numpy==2.5.4
Requires-Dist: ocp-gordon==0.3.1
Requires-Dist: ocpsvg==0.7.0
Requires-Dist: packaging==26.3
Requires-Dist: parso==0.8.7
Requires-Dist: pexpect==4.9.0; sys_platform != 'emscripten' and sys_platform != 'win32'
Requires-Dist: pillow==13.0.0
Requires-Dist: platformdirs==4.13.4
Requires-Dist: prompt-toolkit==3.0.53
Requires-Dist: psutil==7.2.2; sys_platform != 'cygwin' and sys_platform != 'emscripten'
Requires-Dist: ptyprocess==0.7.0; sys_platform != 'emscripten' and sys_platform != 'win32'
Requires-Dist: pure-eval==0.2.4
Requires-Dist: py-lib3mf==2.5.0; platform_machine == 'aarch64' and sys_platform == 'linux'
Requires-Dist: pygltflib==1.16.5
Requires-Dist: pygments==2.21.0
Requires-Dist: pyparsing==3.3.3
Requires-Dist: pypdf==7.1.1
Requires-Dist: pypdfium2==5.15.2
Requires-Dist: python-dateutil==2.9.0.post0
Requires-Dist: pyyaml==6.0.3
Requires-Dist: requests==2.34.2
Requires-Dist: scikit-learn==1.9.1
Requires-Dist: scipy==1.18.1
Requires-Dist: six==1.17.0
Requires-Dist: stack-data==0.6.3
Requires-Dist: svgelements==1.9.6
Requires-Dist: svgpathtools==1.8.0
Requires-Dist: svgwrite==1.4.3
Requires-Dist: sympy==1.14.0
Requires-Dist: threadpoolctl==3.7.0
Requires-Dist: threejs-materials==1.2.5
Requires-Dist: traitlets==5.16.1
Requires-Dist: trianglesolver==1.2
Requires-Dist: typing-extensions==4.16.0
Requires-Dist: typing-inspect==0.9.0
Requires-Dist: urllib3==2.8.0
Requires-Dist: wcwidth==0.9.2
Requires-Dist: webcolors==24.8.0
Requires-Dist: wrapt==2.5.1
Description-Content-Type: text/markdown

# cad-reverse-engineer

Turn a paper, patent or datasheet into parametric CAD, with every dimension traced to where it came from.

Give your coding agent the documents a device was published in. It rebuilds the object, checks the geometry against what they state, and shows you every dimension it had to propose. You get:

- **CAD you can change.** Every dimension is a named parameter in `params.yaml`, rebuilt into a STEP file for each part and the assembly.
- **A drawing of each part.** Three views and an isometric one, with checked dimensions at their as-built values.
- **A mechanism that moves.** When the model has joints, it exports to the MuJoCo simulator as a kinematic model, with its gear ratios and lead screws.
- **A report you can audit.** Each dimension is traced to a quote, a figure or a released file, or marked as proposed, with the questions that would settle what is open.
- **A plan to make it.** How each part is made, what to buy and how it goes together.

## Use it

Give your agent the documents and ask:

```
Reverse-engineer the gripper in this paper
```

1. **`noob` reads the documents.** It shows what they state and what they leave open, has you confirm what it read off the figures, and asks four things: metric or US, the material, whether to keep the design as shown or only its function, and whether to build only what the documents settle.
2. **`build-model` builds and checks the CAD,** proposing what the documents leave open unless you chose to build only what they settle.
3. **`ask-machinist` reviews the design you accept** as the person who has to make it, then writes the plan.

`noob` and `build-model` each end by naming the line to run next. Start a fresh session and run it: the project's files carry everything across.

## Install

The skills run the `cadrev` CLI, which needs [uv](https://docs.astral.sh/uv/).

Claude Code:

```
/plugin marketplace add Vini-41/cad-reverse-engineer
/plugin install cad-reverse-engineer@cad-reverse-engineer
```

Codex:

```
codex plugin marketplace add Vini-41/cad-reverse-engineer
codex plugin add cad-reverse-engineer@cad-reverse-engineer
```

The CLI downloads its dependencies, so allow network access in `~/.codex/config.toml`:

```toml
[sandbox_workspace_write]
network_access = true
```

Any agent that reads skills:

```
npx skills add Vini-41/cad-reverse-engineer --skill '*'
```

To run the CLI yourself:

```bash
uvx --python '>=3.12,<3.15' cadrev==0.4.1 check my-project
```

Built for Fable 5.2, and [benchmarked](https://github.com/Vini-41/cad-reverse-engineer/blob/main/docs/benchmark.md) across Anthropic's, OpenAI's and Google's frontier models. See [four worked examples](https://github.com/Vini-41/cad-reverse-engineer#readme). MIT license.
