Alican Rowe
Work / Flagship systems

PHLASMA Studio

A command-line tool for cloth simulation and parametric CAD, built so that an agent can run it without a person at the screen. Open source.

Flat pattern sheet of a conventional sewn leather glove: palm, back, three fourchettes and two cuff panels, with stitch holes

Flat pattern for a conventional sewn leather glove, drafted for the solver: stitch line, cut line, stitch holes. The sewn result is further down, with its open problems.

It began with a jacket

The project started with the IKIYA × Y’2 Leather steer-oil rider’s coat with green cupro lining I wanted to understand and recreate. The question was how to move from a garment I could see to patterns, seams and a fit I could inspect.

That jacket remains the goal. The glove above is an early simulation test; the current jacket drape is a separate generic example. Neither is a completed reconstruction of the Ikiya jacket.

Purpose and result

The purpose is to let an agent make cloth and solid parts unattended: a job file goes in, a run folder comes out, and every run is checked against its configured tolerances, with each check and its measured value written to the run record. The checks cover only what they measure, so a pass does not rule out other defects.

On 1 December 2026 a conventional leather glove of seven flat pieces was sewn and seated on a hand form and passed 4 of 4 checks, with a 95th-percentile seam gap of 0.2 mm. Seven CAD example builds passed every check. A jacket drape the same day failed two of its three checks, and the tool reported the failure itself.

Model, tools, checksWhat runs today and what is planned

PHLASMA is meant to pair three things. A model writes the design as code. Direct CAD tools build it: the model calls a command-line suite made for agents, instead of working a program made for people through its menus. Output checks read the exported geometry back and record what they measured.

Running today. The model is stock Qwen (qwen3.8:27b) on one local workstation. Given dimensioned briefs, it wrote the code for six mold builds, and all six passed their checks at 30 to 68 seconds each, model time included.

Planned, not installed. A local model with its refusal behaviour removed by abliteration, so that ordinary engineering requests are not turned away. No such model is in use, and nothing on this page came from one.

Speed. The aim is to be faster than an agent operating a desktop CAD program. That comparison has not been run, so the times above are measurements of this tool alone, not a result against any other.

How it is builtThe agent contract

Studio runs from the command line today. P0xter handles prompt routing separately. A future connection would let P0xter submit a Studio job and return its geometry and check record.

The tool exists because a commercial garment program stopped a whole overnight batch on one dialog box. Every rule follows from that.

Nothing waits for a person. A problem is an error record and an exit code, never a popup.

Job in, run folder out. Each command takes a JSON job and writes run.json with status, timings and an input hash, a line-by-line event log, and the output files.

Every run records its checks. Checks run by default and land in run.json. Exit code 0 is a pass, 3 is a failed check.

Many at once. No licence seat and no single-instance lock.

phlasma garment glove examples/garment/glove_L.json --out out/glove --json

ClothGlove on a hand form

The pattern pieces are meshed so both sides of every seam get matching vertices. A parametric hand is built as a smooth implicit solid. The solver sews the glove with the hand shrunk by 8 mm, lets the hand grow back to size, then seats the leather under light gravity. Cloth is simulated with extended position-based dynamics (Macklin et al., 2016, small-step variant) in NVIDIA Warp. The same code runs on a GPU or a CPU.

Result: passed 4 of 4

CheckResultMeasured
Seams closedpassgap p95 0.21 mm, worst 1.97 mm
No penetrationpass0.0 % of points inside the hand
Stretchpassedge strain p95 1.9 %
Clippingpassworst leather-in-form 0.13 mm against a 0.5 mm tolerance, 95,537 points
Size32,599 particles, 62,938 triangles, 1,070 seam pairs, 2,879 steps
Time213 s simulating on 4 CPU cores; 146 s for three 2400 px renders on the tower GPU

Inspect the glove run record · Inspect the fit measurements

Fit report from the same run

PlaceGlove inner girthHand girthEase
Knuckles238.0 mm212.0 mm26.0 mm
Index finger, middle joint74.8 mm64.4 mm10.4 mm
Wrist seam246.2 mm181.0 mm65.2 mm
Getting it onOpening 246.2 mm against an estimated 242.2 mm for the hand with the thumb folded. Passes.
Fingertips and thumbRoom beyond the tips: 5.5 to 7.6 mm on the fingers, 6.6 mm on the thumb.
Seam lengthsPalm to back and cuff seams match exactly. Each fourchette is 0.7 to 0.9 % longer than the span it joins.

Not solved. Edge strain on the three fourchettes reaches 14 to 20 % (95th percentile), far above the 1.9 % of the glove overall; real stiff leather would not take that, so the fourchette widths need a felt test. The thumb is cut in the plane of the hand and sewn on the outseam, not set in. Two stray stitch holes are left on the back cuff where a tag was removed. Nothing has been cut or sewn in leather.

The sewn glove on a black ground: dark hand with a light cuff joined by dovetail teeth, a teal patch on the cuff, back, palm and three-quarter views

The sewn glove with dovetail cuff seams and a teal patch carrying the text, rendered on black from the solved state, with the hand section smoothed after the first solve (clipping check: 0 points over 0.5 mm). The text is on the patch itself, not added afterwards. Records below are from the earlier run: Run record · Fit · Clipping · Job.

Wireframe of the solved glove mesh, palm side and back side

The solved mesh as triangles, palm side and back side, drawn from the run's state.

Flat pattern sheet: palm, back, three fourchettes and two cuff panels, with stitch holes

Flat pattern sheet. Pattern job · Seam lengths · Render record.

ClothA run that failed

Twenty flat jacket pattern pieces and the draped jacket mesh, front and back

Jacket drape of 1 December 2026: 20 pieces, 12,503 particles.

The same day, a 20-piece jacket was draped on the mannequin on the same CPU. It completed and reported check_failed. This is the tool working as designed: it did not present a bad result as a good one.

CheckResultMeasured
No penetrationpass0.14 % of points inside the body
Seams closedfailgap p95 3.04 mm, worst 9.43 mm
Stretchfailedge strain p95 4.09 %, worst 78.7 %
Size and time22,960 triangles, 952 seam pairs, 1,632 steps, 309 s on 4 CPU cores

The cause has not been diagnosed. Whether the same job passes on a GPU at its intended settings has not been re-checked for this page.

CADGeometry for fabrication

Frames from the simulated demold of the K concrete mold

K mold, demolded part by part in simulation. 53 parts, no collisions. Nothing has been cast.

Assemblies are checked as a sequence, not a pose.

The assemble verb takes every part with its pull direction and moves each one along its path, testing for collisions at every step: 7,145 positions while building the K mold and 6,717 while demolding it, with none found. The report also records what did not go to plan: part KA2 cannot start along its named pull and frees along Z instead. These are digital results.

A model is a short script of parameters and parts. The build makes solid bodies, checks them, and writes the files a shop needs. Each kind of object has its own checks.

Assembly report · Run record · Demold animation

ExamplePartsChecks, all passed
Solitaire ring2bodies, interference, wall thickness, stone seat, ring size (17.31 mm inner against 17.32 wanted)
Gloss ring6bodies, interference, wall thickness, stones, ring size
Nail set10bodies, interference, nail geometry, wall thickness
Nail horn1bodies, interference, nail geometry, wall thickness
Nail sculpt1bodies, interference, nail geometry, wall thickness

Each build took between two and six seconds on this machine.

Inspect the actual output.

The assembly report and run record are linked above.

StatusAs of 1 December 2026

Working
  • Glove simulation: flat pattern in, sewn and seated glove out, with a fit report.
  • Garment drape on a mannequin. It runs to completion, but see the failed run above.
  • Parametric CAD builds with manufacturing checks and STEP, STL, GLB, cut-list and cut-sheet output.
  • One job format and one run-folder format across both modules.
Tested
  • Run for this page on four CPU cores: 1 glove solve, 1 jacket drape, 7 CAD example builds.
  • The glove test file passes, 2 of 2.
  • There is no continuous integration, and the CAD test file collects no tests.
Present, not exercised here
  • The procedural graphics module and its 8 tests. They need a GPU library this machine does not have.
  • The renderer. No rendered image is shown on this page.
  • The tool server that exposes each command to an agent.
Planned
  • Editable CAD from a written brief, with material and grain direction per part.
  • Procedural generators and a live visual scene.
  • One pattern-to-drape workflow with an acceptance test.

Since thenAs of 4 December 2026

Calculated or simulated only; nothing has been made or tested physically. The Stinger r13 evidence record is sealed and re-runs offline (13 checks pass): 5 claims simulated, 3 imported, 4 unverified. A requirements import (CSV and ReqIF, tested on a hand-written file), record comparison, signed bundles, reproducible builds and an offline install test on Linux, Windows and macOS were added. A one-sentence quad tilt-duct vehicle (TERN) now runs through the checks as a design, and a simulation-only experiment trained controllers for a small arm inside the same judge. The dated entries are on the PHLASMA timeline.

Limits

The glove path is the most developed. The jacket path can fail its own checks, as shown above. There is no continuous integration and test coverage is thin. The procedural graphics module was not run for this page, so nothing is claimed for it. No physical object has been made from these outputs.

Explore PHLASMA

The standalone PHLASMA site brings the software, applications and development timeline together.

Inspect the source and example jobs.