CAD for AI agents to drive. Agents model through a CLI and a JSON-RPC session; people watch, point and judge in a live viewer. Underneath is ryukei , a B-rep kernel written from scratch in Rust for large assemblies and identical results on every platform. The long-term target is Parasolid-level capability.
An agent works on a gearbox. It reads the assembly's mates, gives the gears a material and weighs the result: the mass comes with a certified bound. Then it sweeps a section plane through the housing, explodes the assembly, rounds the housing's corners, and checks what that changed against Git's HEAD . It finishes by exporting STEP, 3MF and USDZ and listing the bill of materials. Everything in the GIF is a CLI command, and every model frame is ryucad render . The gearbox itself is one of the projects in crates/ryucad/tests/corpus , built by an agent through the same CLI ( gearbox.py ).
The same session, watched in the app
This is ryucad-app running on a Mac while the agent works, and nobody touched it. Agents show people what they did: ryucad focus , section , explode show and compare drive the person's window. Each change appears in the activity feed and as a toast with Undo, and the tree marks what changed.
scripts/hero.sh path/to/ryucad copies the gearbox into a new Git repository and runs the session above. It needs Git and Python with Pillow. On a Mac, scripts/hero.sh path/to/ryucad assets/hero.gif path/to/ryucad-app assets/app.gif also opens the app and photographs its window at each step (it also needs pyobjc-framework-Quartz ). Both GIFs here were made with the v0.8.0-pre.1 release binaries.
Agents model, people watch. Every operation is a CLI command or a JSON-RPC request with structured errors and stable codes. The CLI prints one JSON document per call and exits with a code an agent can act on. The desktop app is a viewer: people watch, select, measure, and undo, and everything the app can do is also a command. People don't model in it.
A model is a folder of text files in Git. Each feature is one canonical JSON file, so history, branches, review and merges come from Git. ryucad registers drivers so git diff reads as values and git merge merges by value. Conflicts are recorded in the files, and a merge is checked by rebuilding it. Bodies, meshes and renders are only a cache.
References survive edits. Faces, edges and vertices have stable names derived from the operations that made them. A reference never silently lands on the wrong edge after a rebuild, which is the "toponaming" problem FreeCAD suffers from.
A kernel built for scale and agreement. ryukei stores topology in flat arrays and runs in parallel. It makes topology decisions with exact or certified predicates and gives bit-identical results on every OS and CPU, which golden hashes check in CI.
Built because OCCT wasn't enough. FreeCAD was ruled out for large assemblies, and its kernel, OCCT, is a main reason. ryukei is compared head to head with OCCT and NVIDIA's SMLib in the devcontainer.
Parametric features: sketches with a 2D constraint solver, then extrude, revolve, sweeps along paths and lofts, holes (counterbored, countersunk, drilled), linear, circular and mirror patterns, fillets, chamfers, shells, offsets, mirrors, splits and booleans between solids.
Parameters and equations: expressions with units, per part or project-wide, listed and edited as one table.
Reference geometry: datum planes, axes and points (offset, at an angle, midplane, through three points, normal to a path and more), paths along edges and sketch curves, and helices.
Recompute: each result is keyed by a hash of its inputs, so an edit rebuilds only what it reaches, and a disk cache keeps results between sessions.
Instances and mates: fastened, revolute, slider, cylindrical, planar and ball, solved by ryumate , which reports each body's freedom and any redundant or conflicting mates.
Patterns, exploded views and section planes. Explodes are saved in Git beside the assembly; section planes belong to a person's window or a render.
Interference and clearance between every pair of instances.
Measure, mass and looks
Measure distances, angles, lengths and areas between any entities, and mass properties from a project's material library. Every value is exact or carries a certified bound.
Appearance: colours and opacity per part, solid, face or occurrence, and material colours, all kept in Git.
Views: 29 standard views (the cube's 26 among them), named views saved in Git, normal to a face, and renders of any of them.
STEP import: AP203, AP214 and AP242, as references by default (the file's own faces, shown, measured and mated to without healing), or with --solid healed into solids you can model on; import convert switches either way and keeps face names. Assemblies are placed as their files place them, or flattened into one part with --flatten , and re-import keeps the stable names of unchanged geometry.
STEP export of parts and assemblies, in millimetres or metres. A file exported as it was imported comes back byte for byte.
STL, 3MF and USD (usda, usdc and usdz, with exact B-rep as omniSolid BrepArrays beside the meshes). The daemon writes each file itself.
Real files: on cox-worker-2 (AMD Ryzen 7 9700X, 8 cores, shared), ryustep reads 1,598 parts in 125.8 MB of AP242 in 37 to 55 s. step-hunt runs the public corpora (NIST, OCCT's samples, KiCad's models) through the CLI and files what fails.
Git, branches and agents in parallel
Any revision rebuilt , ryucad diff --model face by face, and ryucad check from nothing.
Merges: a merge driver that merges by value, merge status and merge resolve , and commit hooks that won't let an unsettled merge through.
Agents on branches: ryucad worktree add gives each agent a worktree with its own daemon, all sharing one machine's cache. Any worktree can be compared with another, and ryucad merge preview reports what a merge would conflict on before anything is merged.
ryucad-app (egui and wgpu) attaches to the project's daemon as a person. Since v0.8.0 it has:
dockable tiles and a command palette;
rebindable shortcuts with ryucad, SolidWorks and Onshape presets, and three looks in light, dark and high contrast;
a searchable feature tree, the cube and a selection filter;
progress with Cancel, toasts, error cards and an activity feed with Undo;
a compare view that ghosts a Git revision, and a conflict panel during merges;
BOM, releases, branches and dependencies tabs.
It writes nothing itself: every change is the same request an agent sends.
PDM: releases, BOMs and review
ryupdm is product data management on the same Git repositories. There is no second store.
Releases: part properties and numbers, revision labels (ASME Y14.35 letters or numbers), release records in the repo, tags and part states. A commit guard stops a released part from changing unnoticed.
Product structure: indented and flat BOMs from the files alone, item numbers, BOM diffs between revisions, CSV, and where-used across assemblies and their releases.
Approval rules, checked offline in any clone against the signed tags the hosted service writes.
Multi-repo: place another project's released parts, locked to commits in ryucad.lock and read offline once fetched.
Hosted review at review.seiraiyu.com , the paid service, in an invite-only beta. It puts check runs and before-and-after renders on pull requests, a 3D viewer with pinned to faces, Merge in, BOM changes and approvals. It runs the released ryucad binary in a sandbox, so its verdicts are the CLI's. Its code is private; ryucad review is its client.
Electronics: ryueda and ryudfm
Two more products in this repo ryucad's files, sessions and CLI conventions. ryueda has its own release line ( ryueda-vX.Y.Z tags), from ryueda-v0.1.0; ryudfm is early and hasn't been released yet.
ryueda is electronics CAD for agents, from schematic to a fabricated board. It has symbol, footprint and component libraries, and imports KiCad's: on davids-m4 (Apple M4) it imported KiCad 9.0.9's 10,217 symbols and 15,361 footprints. It has hierarchical blocks, connectivity, the flattened netlist and ERC, and a schematic engine ( ryusch ) that lays out and draws schematics, pages them into PDFs, and lints how readable they are. Boards of any layer count are laid out by command: stackups with blind and buried vias, parts on both sides placed by constraint, rules and fab presets as data, keepouts, text, pours and planes, checked continuously as each write lands, and exported as Gerber X2, Excellon, a BOM and pick and place named for the board. Footprints are authored by command too, and an agent laid out a four-layer buck converter clean. A live session and a window ( ryueda open ) show an agent's work as it happens. Git diffs and merges ryueda's files by value, with a compare view and a conflict panel. Part data, releases of designs and library parts, BOMs and where-used complete it.
ryudfm is design-for-manufacturing for boards, also on its own line. It reads ODB++ exactly into integer nanometres, then inspects and renders it. On cox-worker-4 (AMD Opteron 6380) it reads and shapes a 338,087-feature board in 0.71 to 0.76 s. Its copper measurement engine is under way.
ryuplm is product lifecycle management beside PDM, on ryupdm's core, with a release line of its own ( ryuplm-vX.Y.Z tags, install-ryuplm.sh , install-ryuplm.ps1 ). It manages the items a company makes, buys and ships, whether or not a CAD or EDA project ever touches them: screws, labels, packaging, firmware, kits.
Catalogues in Git: one canonical JSON file per item, merged and diffed field by field by ryuplm's own Git drivers, and released through ryupdm (revisions, labels, release records, the commit guard).
Part numbers: named numbering schemes per class, the number filled locally, legacy numbers kept as written (a warning), and old numbers found after a renumber.
AMLs, classes and declared properties, judged by check .
BOMs of an item's own lines joined with the lines of its linked ryucad assemblies and ryueda designs, BOM diffs between revisions, and where-used across checkouts and their releases.
Imports from any CSV or spreadsheet through a mapping the user or their agent commits ( imports/ .json ): provenance on every field, and re-imports that change only what changed and report conflicts instead of overwriting.
A daemon that holds a catalogue in memory for agents, at 100,000 items.
Prebuilt binaries for Linux (x86_64 and aarch64), macOS (Apple silicon) and Windows (x64) come with each release. Each release has the ryucad command (static on Linux) and the desktop app, ryucad-app (on Linux it needs glibc 2.35 or newer and a desktop). The installers verify checksums and put both in ~/.ryucad/bin . They add it to your PATH and register ryucad's Git drivers. They also let you open a project folder in the app from your desktop: "Open in ryucad" on folders in Explorer, an application entry on Linux that also opens ryucad.json , and ~/Applications/ryucad.app on macOS. Running one again updates.
Set RYUCAD_VERSION=v0.8.2 to install a particular version, RYUCAD_HOME to install somewhere other than ~/.ryucad , RYUCAD_NO_MODIFY_PATH=1 to leave your shell profile alone, and RYUCAD_NO_APP=1 to install the command only (servers, CI). ryucad open [folder] opens a project in the app, or brings its window forward.
ryueda installs the same way, into ~/.ryueda/bin , with its app and Git drivers. With no version given it takes the newest ryueda release; RYUEDA_VERSION , RYUEDA_HOME , RYUEDA_NO_MODIFY_PATH and RYUEDA_NO_APP work as ryucad's do:
Run ryucad daemon stop --all , delete ~/.ryucad ( %USERPROFILE%\.ryucad on Windows), and remove the PATH line the installer added (marked # added by the ryucad installer ) or the entry in your Windows user PATH. git config --global --remove-section diff.ryucad and merge.ryucad take the Git drivers out. Then remove what lets the desktop open projects:
Linux: ~/.local/ /applications/ryucad.desktop and ~/.local/ /mime/packages/ryucad.xml , then run update-mime-database ~/.local/ /mime .
macOS: ~/Applications/ryucad.app .
Windows: the keys HKCU\Software\Classes\Directory\shell\ryucad and HKCU\Software\Classes\Directory\Background\shell\ryucad .
Every command answers one JSON document: {"ok", "result" | "error", "warnings"} . Errors have stable codes and say what to fix, and --help on any command lists its flags. To drive a running session over JSON-RPC instead, see ryucad daemon --help . docs/claude/ records what each phase decided, area by area.
The default build has no C++ dependency; OCCT and SMLib appear only behind features of ryukei-bench . Design documents and roadmaps live in the Coxswain planning project ryucad-ryukei , not in this repo.
Each release is tested end to end on a Mac, Linux and Windows before it is tagged. v0.8.0-pre.1 passed 319 of 322 scenario steps on davids-m4 (Apple M4, #380) and failed 5 of 321 on seiraiyu2 (AMD Ryzen 9 9955HX, Windows 11, #381). The failures are filed and burnt down in v0.8.x. ryueda-v0.1.0-pre.1's findings were burnt down before the tag, and ryueda-v0.1.0 passed 203 of 203 scenario steps on each of the three (#1090, #1092, #1098).
Roadmaps are plans, not commitments, and versions aren't assigned ahead of time.
The toolchain is pinned in rust-toolchain.toml , and the default build has no C++ dependency.
CLAUDE.md lists every test suite, benchmark and bar. The devcontainer ( devcontainer up --workspace-folder . ) adds OCCT, SMLib, lib3mf, OpenUSD and KiCad for the head-to-head tests.
Releases are cut by pushing a tag vX.Y.Z (or vX.Y.Z-pre.N ). The version comes from the tag, and the Release workflow builds, tests and publishes every target with SHA256SUMS and both installers. ryueda, ryudfm and ryuplm have their own tags ( ryueda-v… , ryudfm-v… , ryuplm-v… ) and workflows.
ryucad is licensed under the Apache License, Version 2.0 , and so is everything else in this repository: ryukei, ryupdm, ryueda, ryudfm and ryuplm. Third-party fonts and test files keep their own licences, listed in NOTICE . The hosted review service at review.seiraiyu.com is a separate, paid product.
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
