Origami Agent for Rokid Glasses: Let the Fold Stay in Front of Your Eyes
Hands-free origami instruction points to a broader design pattern for smart glasses: keeping the user's hands on the material and letting the agent manage pacing through explicit commands rather than screen taps or video controls. The agent also shows how to constrain a language model to a narrow teaching role, which is a practical template for interactive craft education on wearable devices.
Origami is a new agent for Rokid AI glasses that guides parents and children through origami projects without the usual video-pause struggle. The agent shows a looping animation of the current fold on a canvas, keeps the step number fixed until the user says "next step", and supports replay, slower playback, and previous-step commands. Voice recognition uses final results only, and temple-arm button presses map to next/previous and a voice toggle.
The development splits into a lean file structure on AIUI Studio: app.json handles pages and permissions, lib/fold.js stores course and command logic, lib/draw.js does geometry and rendering, and pages/index/index.ink manages state and events. Course data stores each step's fixed base paper, moving paper, crease line, and folded result, with a 2D projection function for rotation. The model gets a catalog, current phase, selected lesson, and current step, returning structured replies limited to select, help, or unsupported, so it cannot invent animations.
An early prototype attempted photo-based paper-state detection, but the model repeatedly misjudged after a small fold, so completion confirmation was handed to the user. The agent is live on the Rokid platform, with courses like paper plane, cootie catcher, and jumping frog, and the author plans further family testing comparing phone vs glasses with balanced ordering.
The design choice to let users confirm completion rather than rely on vision AI acknowledges the reliability limits of current models on fine-grained physical state, a pragmatic call for consumer devices.
Storing geometry as normalized coordinates (width=1, A4 ratio 1.414) makes the animation resolution-independent, a subtle but reusable trick for any instructional canvas.
The two-tier command handling (local dictionary match first, model only for fuzzy cases) mirrors a pattern that reduces cost and latency on constrained hardware like glasses.
Balancing the order of device comparisons in future testing shows awareness of learning effects, a higher standard than most hobbyist agent projects.