KiriSMILES: kirigami as one line of text

In one sentence: KiriSMILES writes any kirigami cut pattern as one line of text, simulates it with an open finite element engine, and lets both researchers and AI agents design, check and simulate kirigami with the same tools. Code on GitHub (MIT) · preprint on arXiv soon.

P5x45S1/2O0[V42@0,0]N18E3 → the classic alternating-slit sheet

1. The problem

Kirigami turns a flat sheet into something that stretches, twists, pops up or snaps, just by cutting it. But designs are shared as figures, one-off parameters or cut files with hundreds of coordinates, so they are hard to compare, reuse or collect into data sets.

Four simulated kirigami designs

2. The idea: SMILES for kirigami

A crystal is a lattice plus a basis. A KiriSMILES string is a lattice plus a motif of cuts, or pieces combined by mirrors, inversions and repeats. Every string maps to one finite pattern, is checked before anything is cut, and gets a canonical identity, so the same design written two ways is recognised as one. Motifs can be grouped into supercells: four slits A–D as one cell, or a pitch cell (A) and a roll cell (B) in a 2 × 2 layout.

Supercells shaded by cell type

3. It moves

Each string becomes a mesh, solved with FEniCSx (a Föppl–von Kármán plate and a Kirchhoff–Love shell) through buckling and large rotations. Pull the sheet and a cut cell pitches, rolls or yaws.

pitch · roll · yaw
pitch roll yaw

4. Combine cells: a motion sequence

Cells joined in series carry the same force, so the softest moves first. In the [A, B; B, A] sheet the roll cells (B) turn first; the pitch cells (A) wait until about 7% stretch, then tilt to 36° while B reaches 67°. The order is set by the cuts, a route to programmed motion sequences.

Pitch and roll supercell stretched

5. Published designs, replicated

Twenty designs from the literature written as strings and simulated: single slits (buckling force and scaling), kirigami actuators, rotating squares, multistable stars, hierarchical cuts, kirigami skins, and rolled kirigami shells whose pop-ups start at one end and spread, as in experiments. Any design also exports to MuJoCo, the physics engine behind much of robot learning.

rolled kirigami shell · the same string in MuJoCo, pulled by a robot gripper
rolled kirigami shell MuJoCo gripper

6. One platform for people and AI agents

Notation, solver, job queue and a results database indexed by design identity. Researchers use a web app, the command line or Python; AI agents such as Claude use the same tools through an MCP server: write a design, check it, preview it, simulate it, export laser-cut files.

Platform diagram

Why I built it

During my PhD and postdoc I wanted to solve the inverse design problem of kirigami: from a target behaviour back to the cuts. Writing the code was the bottleneck. Building KiriSMILES with an AI coding assistant changed that, and I hope it becomes a common language for kirigami and a testing ground for AI agents that design materials.

Code: github.com/phanakata/kirismiles (release v0.2.0). Designs, feedback and collaborations welcome.

← Back to research