Cut2Kit is an AI-first CAM foundation for prefab housing, built on the existing Electron + local server + React/Vite shell inherited from T3 Code.
The current wall-layout vertical slice is directory-first:
- open a project directory
- detect
cut2kit.settings.jsonand source PDFs - validate settings against an explicit schema
- inspect project health in the app
- use GPT-5.4 through the existing Codex/T3Code harness to extract wall geometry from a dimensioned elevation PDF
- generate framing layout JSON and framing PDF
- generate sheathing layout JSON and sheathing PDF
- optionally include fastening notes/pages by setting
- persist validation output before packaging final PDFs
Install dependencies:
bun install
Start the web/server development flow:
bun run dev
Start the desktop app:
bun run dev:desktop
A runnable sample project lives at examples/prefab-demo-project.
It includes:
cut2kit.settings.jsoncut2kit.manufacturing.json- one dimensioned elevation PDF under
elevations/ - a retained framing PDF fixture under
output/reports/ - deterministic A2MC manufacturing-plan input
The canonical settings example lives at docs/cut2kit.settings.example.json.
A standalone A2MC manufacturing-plan example lives at examples/cut2kit.manufacturing.example.json.
Reference input/output fixtures live under examples/; see examples/README.md.
- Launch the app.
- Open a project directory that contains
cut2kit.settings.jsonand one or more dimensioned elevation PDFs. - Review the project workspace for validation, detected elevation PDFs, and planned outputs.
- Select an elevation PDF and run
Generate Wall Package. - Cut2Kit will write staged artifacts under
output/reports/:wall-layouts/*.extracted-elevation.jsonwall-layouts/*.validation-report.jsonframing-layouts/*.framing-layout.jsonframing-layouts/*.framing-layout.pdfsheathing-layouts/*.sheathing-layout.jsonsheathing-layouts/*.sheathing-layout.pdf
- If the elevation is ambiguous or conflicting, Cut2Kit stops, writes the extracted geometry and validation report, and requires user confirmation before continuing.
Prompt content is loaded from .docs/system-geometry.md, .docs/user-geometry.md,
.docs/system-framing.md, .docs/user-framing.md, .docs/system-sheathing.md,
.docs/user-sheathing.md, and .docs/validation-checklist.md. Variable framing and sheathing
rules come from cut2kit.settings.json.
The canonical workflow doc is docs/cut2kit-workflows.md.
The deterministic manufacturing slice still exists for A2MC manifest and NC generation:
output/manifests/panel-manifest.jsonoutput/manifests/nest-manifest.jsonoutput/manifests/queue-manifest.jsonoutput/nc/*.nc
Required repo checks:
bun fmt bun lint bun typecheck
Tests use Vitest through:
bun run test- The repo still preserves the original T3-like architecture on purpose.
- Codex integration still flows through the existing local app-server and approval plumbing.
- Wall conversion is AI-first at runtime; deterministic code is used for validation, rendering, packaging, and manufacturing post-processing.
- The first real post path is AXYZ A2MC and is driven by explicit manufacturing intent in
cut2kit.manufacturing.json. - Future CAM/A2MC planning is preserved in
docs/cut2kit-future-cam-notes.md, but those notes are not current implemented wall behavior. - The wall workflow trusts explicit dimensions first and blocks on unresolved ambiguity rather than guessing.