Physical AI · Tactile Control

Walkie

A wrist voice remote for Claude Code only earns trust when physical buttons control approvals, cloud relays carry only ciphertext, and flashing updates won't erase the sibling wristband app.

A working wrist voice remote for multi-project Claude Code sessions, keeping deliberate physical key presses as the gate for every sensitive agent action.

Solo project: interaction model, protocol constraints, hardware flashing and gate checks. AI coding tools assisted implementation across firmware and bridge.

Walkie architecture schematic: M5StickS3 app1 wrist remote over AES-256-GCM USB or Fly.io relay to Node 24 bridge and Claude Code

The problem

Walkie is a voice remote for Claude Code that runs on an M5StickS3 watch. It answers Claude Code's permission prompts and short follow-ups from the wrist, for a user who has stepped away from the monitor. The watch should behave like a walkie-talkie: it only listens while a thumb holds the button.

Three constraints shaped it. A voice remote cannot silently approve destructive commands, cannot leak credentials through a cloud relay, and cannot brick the other firmware (On The Beat) living on the same M5StickS3.

The watch has a 1.14-inch screen and no keyboard.

Three decisions

  1. The thumb approves, never the voice

    An asymmetric key grammar on the M5StickS3. Holding the Front Key captures press-to-talk audio locally. Claude Code tool permissions enter an explicit approval queue on the watch: Front Key approves, Side Key denies, with an optional spoken reason. Destructive agent permissions block until a watch button is physically pressed.

    The conflict
    Speech is the quickest input on a wrist, but a misheard 'yes' could approve a destructive shell command. Background media or nearby conversation in a shared room can false-trigger it.
    What I gave up
    Hands-free voice confirmation ('Yes, run it'), because speech-to-text cannot tell deliberate intent from background conversation or media audio. Mirroring the terminal on a phone, because a phone re-exposes notifications and drags a two-second decision back into desktop context switching. The cost: approvals are slightly slower than hands-free speech, and the watch has to stay charged.
    Evidence
    The rule is recorded in protocol/frames.md and backed by host g++ tests of the lib/ui key-gesture logic; gate-h drives 11 real screen and button scenes on the S3.
  2. Say it short, and say why the link dropped

    The Node 24 bridge distills replies into short spoken summaries. USB always preempts the AES-256-GCM Fly.io relay when plugged in. OFFLINE screens distinguish no Wi-Fi, relay unreachable, and PC bridge offline.

    The conflict
    A thumb-sized wrist screen cannot carry diffs or stack traces. Raw logs overwhelm a glance, while a generic 'Disconnected' error leaves the user guessing whether Wi-Fi, the cloud relay, or the laptop failed.
    What I gave up
    Streaming full terminal output onto paginated watch cards, which turns a quick check into miniature terminal reading. A silent mid-turn USB-to-relay handover, which hides transport failures and risks partial or duplicated frames. The cost: plugging or unplugging mid-turn drops the in-flight turn, and complex code diffs still require returning to the monitor.
    Evidence
    gate-l ran a 75-second idle keep-alive, reconnect, and second-bridge takeover across the Fly.io wss:// relay, using a stand-in S3 and a PC.
  3. One watch, two apps, and neither can wipe the other

    Walkie lives in app1 beside On The Beat in app0, and holding both keys for 3 seconds switches between them. firmware/guard.py blocks -t erase and -t uploadfs before flashing. Pairing writes the AES-256-GCM shared key to pair.key only after a physical Front Key press within 30 seconds, and the Fly.io relay routes opaque binary envelopes without decrypting them.

    The conflict
    Walkie shares one ESP32-S3 watch with On The Beat. One reckless uploadfs command could brick the other coursework device, and a leaky cloud relay could expose live repository prompts over public WebSockets.
    What I gave up
    Default full-chip flash commands and plaintext JSON relay frames, which silently erase the sibling app and expose prompts and transcripts to the relay host. A hex token typed on the tiny screen every session, which tempts developers into hardcoding secrets. The cost: custom flashing tooling, partition rebalancing if a third firmware is added, and an in-person re-pair if the workstation loses pair.key.
    Evidence
    gate-p5 verifies on-chip HKDF/AES-GCM self-test vectors and pairing refusal: if the 30-second countdown expires or Side Key is pressed, pairing aborts with zero key written.

Try it yourself

Watch the wait: switch between USB and the encrypted relay, trigger a Claude Code tool request, and nothing runs until you press Front (Enter) to approve or Side (Backspace) to deny.

Switch between USB cable and end-to-end encrypted relay, trigger a Claude Code tool request on the right, then press the watch Front Key (Enter) to approve or Side Key (Backspace) to deny.

Lazy-loaded near viewport so initial case paint stays fast.

Ready: try the controls below to test state transitions and guardrails.

Built and tested

PlatformIO C++ firmware runs on the M5StickS3. Holding the Front Key samples 16 kHz audio, sent as PCM over USB or as 4-bit ADPCM over Wi-Fi and the Fly.io relay. Every frame after HELLO and PAIR is sealed with AES-256-GCM under a session key derived from pair.key.

The Node 24 bridge prewarms one Claude Code process per configured project, routes recordings through OpenAI speech (Gemini on failure), separates control commands such as yes, no [reason] and stop from prompts, and speaks the reply back to the wrist. API keys live outside the repository in %APPDATA%\walkie\keys.env and are never printed.

Hardware & protocol schematic

Drawn directly from the public repository (README, protocol/frames.md, firmware/ and bridge/). Real wearer photography has not been added yet, so this case uses interactive hardware schematics and protocol simulations.

System diagram connecting M5StickS3 dual-boot firmware, AES-256-GCM sealed frames over USB or Fly.io relay, Node 24 bridge, and Claude Code permission approvals
USB always wins when plugged in; away from the cable, sealed frames cross a end-to-end encrypted Fly.io relay and tool permissions wait for a physical button press on the wrist.
Walkie M5StickS3 hardware key grammar (Front PTT/Approve, Side Deny+Reason, Dual-3s dual-boot slot switch) and three explicit offline diagnostic screens
Asymmetric Front/Side hardware key binding and three-way offline diagnostics (No Wi-Fi / Relay Unreachable / PC Bridge Offline).
Walkie AES-256-GCM sealed packet framing and three reproducible host/device/relay verification gates
End-to-end AES-256-GCM envelope keyed to physical 30-second pair.key and verified through host g++, S3 gate-h/p5, and Fly.io gate-l checks.
Tactile M5StickS3 dual-boot schematic (responsive inline SVG while external wearer photography is pending): Walkie (app1) coexists safely alongside On The Beat (app0) under guard.py, physically splits Approve (Front) from Deny (Side), and routes over USB-first or AES-256-GCM Fly.io relay.

What was tested

  • Host tests: before touching hardware, npm test runs the wire framing (lib/proto) and the key, paging and state-machine logic (lib/ui) through g++ on the PC. Automated tests run against a fake-claude.js stand-in, never live paid APIs.
  • On the physical S3: gate-h checks the screens and keys through TEST frames, and gate-p5 checks pairing and 4-bit ADPCM audio takes.
  • Relay: check-relay-roots pins the ISRG Root X1/X2 certificates, and gate-l needs no COM port.
  • Not run: the three OFFLINE screens exist in code, but the on-device checks away from the cable (gates M and N) have not been run.

Five states

StateWhat happensHow it recovers
NormalPaired and connected: the screen shows the active project, a USB or RELAY badge, listening or thinking, and paged approval cards.All post-PAIR frames stay sealed with AES-256-GCM.
EmptyWith no pair.key yet, a 30-second pairing prompt; when idle, the project name and 'Hold Front to Talk'.Encrypted commands are refused until a physical Front Key confirmation writes pair.key.
OfflineNo Wi-Fi, an unreachable Fly.io endpoint, or a disconnected desktop bridge, each on its own screen.Plugging in USB bypasses Wi-Fi and the relay; Front Key probes a reconnect.
ErrorThe OpenAI speech API fails, a frame fails its decrypt check, or someone runs unsafe esptool flags.Speech falls back to Gemini, frames failing the GCM tag check are dropped, and guard.py prints the exact blocked flag.
RefusedSide Key on a pairing or approval screen, or a pairing timeout: a 'DENIED' receipt, with an optional spoken reason.Claude gets the tool result as rejected, and voice alone cannot override a Side Key refusal.

Results, limits and next steps

A working dual-boot wrist voice remote with sealed USB and Wi-Fi relay transports and multi-project Claude session switching, publicly documented in LewisSwan24/walkie. The encryption is verified by the gate-p5 and gate-l scripts, with no external security audit.

Building hardware for an AI coding agent forced every vague UX idea into a concrete wire frame or button rule. When the screen is tiny and there is no keyboard, you discover quickly which agent states truly matter: listening, waiting on approval, which project is active, and why the link dropped.

Limits

Single developer (Lewis) has used it; no external user study has been run. Tiny-screen paging and voice-approval ergonomics are untested with other engineers.

No wrist photographs or live video clips are committed in the repository yet. Readers see the architecture schematic rather than physical form-factor photos.

AI coding tools assisted implementation across firmware and bridge. The portfolio claim is interaction design, security boundaries, and verification gates, not solo hand-typed C++.

Next

Have 2–3 Claude Code users test an approval-heavy session away from their desk, check standby battery pacing, and photograph the watch in everyday desk-side use.

For interviewers

Process, research notes, rejected versions and hard questions. Collapsed by default.
Design term note · inspect:Protocol noteEvery frame after PAIR is sealed with AES-256-GCM using a key derived from pair.key; the Fly.io relay forwards ciphertext without holding decryption keys.
Interaction Journey

How the work unfolded, stage by stage

Step-by-step trace of triggers, user expectations, system behavior, cognitive friction, and explicit recovery paths.

  1. 30-second physical pairing & key sealing

    Bench / hardware verifiedAI TrustSystems & HW
    Trigger
    Workstation bridge starts without an existing pair.key file
    User mental model
    Granting an unattended watch access to live coding repositories feels equivalent to handing over terminal keys—it must happen face-to-face with the hardware.
    System action
    Bridge issues a PAIR challenge; S3 opens a 30-second window requiring a physical Front Key press before deriving and storing the AES-256-GCM pair.key.
    Cognitive friction
    Typing hex tokens on a 1.14-inch screen invites shortcuts like hardcoded dev secrets, whereas silent auto-pairing risks unauthorized bridges hijacking the watch.
    Edge & recovery
    If the 30-second countdown expires or Side Key is pressed, pairing aborts cleanly with zero key written (verified in gate-p5).
  2. Press-to-talk capture from away from the desk

    Bench / hardware verifiedUX & IASystems & HW
    Trigger
    User steps away from the monitor and holds the M5StickS3 Front Key
    User mental model
    The watch should behave like a walkie-talkie: only listen while my thumb actively holds the button, never passively hot-mic.
    System action
    S3 samples 16 kHz audio during hold, streams raw PCM over USB or 4-bit ADPCM over Wi-Fi/Fly.io, and dispatches audio to OpenAI speech (Gemini fallback).
    Cognitive friction
    Ambient room chatter or brief thumb bumps could trigger false prompts if wake-word detection or tap-to-toggle were used.
    Edge & recovery
    Releasing below minimum hold duration discards buffer locally; command classifier separates control verbs (stop, compact, switch project) from prose prompts.
  3. Deterministic USB preemption & relay routing

    Bench / hardware verifiedSystems & HWAI Trust
    Trigger
    USB-C cable is plugged in at the desk or unplugged to move across the room
    User mental model
    Plugging in a cable should immediately give lowest latency without manual Wi-Fi menus; unplugging should clearly indicate when a turn is dropped.
    System action
    USB link immediately preempts the Fly.io wss:// relay when attached; off-cable frames stay sealed with AES-256-GCM across pinned ISRG Root X1/X2 TLS.
    Cognitive friction
    Silent mid-turn channel stitching risks duplicate tool invocations or truncated ADPCM audio frames.
    Edge & recovery
    Mid-turn cable transitions intentionally drop the in-flight turn and display an explicit link transition state rather than guessing.
  4. Asymmetric Front/Side physical tool permission gate

    Bench / hardware verifiedAI TrustUX & IA
    Trigger
    Prewarmed Claude Code session requests permission for a shell or file-write tool
    User mental model
    I need a concise summary of what Claude wants to do and a deliberate physical action to approve or reject—without mistaking a deny click for an accept.
    System action
    Watch enters the explicit approval queue screen showing tool summary; Front Key approves, Side Key denies with an optional spoken reason.
    Cognitive friction
    Streaming raw terminal diffs onto a 1.14-inch screen creates miniature scrolling fatigue and hides the critical irreversible action.
    Edge & recovery
    Complex multi-file diffs remain queued safely until user approves on wrist or returns to the full monitor.
  5. Spoken brief return & dual-boot slot handoff

    Observed in useUX & IASystems & HW
    Trigger
    Claude completes the turn or user holds both watch buttons for 3 seconds
    User mental model
    Hearing a two-sentence spoken recap lets me stay away from the monitor, while switching to the sibling app must never jeopardize either firmware.
    System action
    Node 24 bridge synthesizes a short spoken summary back to the wrist speaker; dual-3s hold reboots cleanly between app1 (Walkie) and app0 (On The Beat).
    Cognitive friction
    External developer wrist ergonomics and multi-hour battery wear outside Lewis's own desk remain unverified hypotheses.
    Edge & recovery
    Flashing scripts enforce firmware/guard.py pre-checks, blocking -t erase and -t uploadfs so sibling partitions cannot be wiped.

Before and after

Process scrubber · Hands-free voice vs physical key gate

Replace ambient voice approvals with deliberate S3 key gating & explicit offline splits

Scrub between hands-free speech failure modes and Walkie's hardware-gated transport & dual-boot architecture.

Before · Hands-Free Speech Risk
BEFORE: HANDS-FREE VOICE APPROVAL WITHOUT HARDWARE GATEAmbient speech bleedSTT: "Yes, run it"Zero tactile barrierUnchecked rm -rf runsGeneric 'Offline'Wi-Fi vs Relay vs PC unclearCost: You stay paranoid beside the screen because speech alone lacks deliberate commitment.
After · Key-Gated Sealed Architecture
Walkie post-iteration architecture showing physical key gate, USB preemption, AES-256-GCM Fly.io relay, and explicit three-state offline diagnostics
Vector micro-loop · Sealed wrist cycle

Press-to-talk → USB/Relay switch → Wrist gate → Spoken summary

Inspect the 4-stage wire and attention loop without loading heavy video captures.

01Hold Front Key02USB / Sealed Relay03Wrist Key Gate04Voice Brief Back
01 · Hold Front Key

S3 samples 16 kHz press-to-talk audio locally while holding the physical front button.

Hardware & protocol insights

Field constraints that shaped physical keys and sealed framing

Design decision

Bound tool approvals exclusively to deliberate physical Front/Side key presses on M5StickS3.

Rejection & Rework Archive

Versions I threw away

Logged defects exposed during hardware bench checks, live debugging, and AI-draft reviews—plus the structural fixes that replaced them.

  1. Protocol Design v1

    2026-09
    Bench / hardware verifiedAI TrustUX & IA
    Artifact before
    Hands-free spoken confirmation ('Yes, run it') directly authorizing Claude tool calls
    Failure exposed
    Background media or nearby conversation in shared rooms can false-trigger 'yes', leaving zero tactile boundary before irreversible shell commands.
    Fix applied
    Removed voice-auto-approve completely; bound tool approval to physical Front Key and denial (+ reason) to Side Key.

    Receipt: protocol/frames.md + host g++ lib/ui key-gesture tests

  2. Dual-Boot S3 Safety Gate

    2026-10
    Bench / hardware verifiedSystems & HWAI Trust
    Artifact before
    Standard PlatformIO upload workflow exposing -t erase and -t uploadfs
    Failure exposed
    Sharing one M5StickS3 watch between Walkie (app1) and On The Beat (app0) meant one careless flash command could wipe the sibling coursework firmware.
    Fix applied
    Added firmware/guard.py pre-flash check blocking -t erase and -t uploadfs, plus Dual-3s hardware slot switcher.

    Receipt: firmware/guard.py + gate-h / gate-p5 on-device test suites

  3. Hardware Screen UX Pass

    2026-10
    Bench / hardware verifiedUX & IASystems & HW
    Artifact before
    Single generic 'Disconnected' banner when remote link failed away from USB
    Failure exposed
    Away from the desk, users could not tell whether Wi-Fi dropped, Fly.io relay was down, or the laptop went to sleep.
    Fix applied
    Split OFFLINE state into three explicit diagnostic screens and added gate-l 75-second keep-alive / bridge-takeover verification.

    Receipt: 02-key-state-machine.svg + gate-l Fly.io relay audit

Research VaultBench / hardware verified

Raw research notes

Verification boundary: Automated tests run on the host against a stand-in Claude (bridge/test/claude/fake-claude.js). Gate H passed its screen and key scenarios on a real S3, and a whole turn ran over USB on 2 Oct. The checks away from the cable (gates M and N) have no run record, and nobody but Lewis has used it.

Desk-to-Sofa Physical Approval & Acoustic Recall Protocol

Planned for solo developers who step away from their desk while Claude Code runs a multi-step task. Not run.

Planned opening prompt (not run)Your agent is running in the studio while you grab coffee. Listen only to what comes through the wrist speaker, and decide whether to let each tool call proceed without walking back to the desk.

Task Probe 01

Unverified hypothesis
Prompt
Initiate bridge startup without an existing pair.key and complete hardware pairing within the 30-second window.
What we watch for
Whether the developer recognizes that Front Key seals trust locally rather than typing hex tokens on a 1.14-inch LCD.
Failure signal
Any ambiguity over whether Side Key cancels pairing or silently retries in the background.

Task Probe 02

Unverified hypothesis
Prompt
Receive a destructive shell command request (rm / migration) mid-sentence and deny it with a spoken correction.
What we watch for
Muscle-memory separation between Front Key (approve) and Side Key (deny + speak reason) under low visual attention.
Failure signal
Accidental thumb slip onto Front Key when intending to pause or reject an unexpected file edit.

Task Probe 03

Unverified hypothesis
Prompt
Plug in USB-C mid-session after walking back to the desk, then unplug during an active audio capture.
What we watch for
Clear recognition of USB preemption and honest aborted-turn feedback rather than silent audio truncation.
Failure signal
Silent fallback stitching half an ADPCM packet with a half-recorded USB PCM buffer.

Planned debrief question: Which tool approval summaries felt too compressed to trust from the wrist alone, forcing you back to the full monitor?

The hardware in 3D

Interview pack

Questions interviewers ask

Why require a physical button press for approvals instead of voice?

Voice recognition can mishear background speech as 'yes'. Routing Claude Code's permission queue to the S3 front key (approve) and side key (deny, with optional spoken reason) keeps high-impact actions tied to deliberate physical intent.

Jump to Three decisions ↓Ergonomics of denying with a spoken reason have only been tested by Lewis.
How does the watch work away from the USB cable safely?

Every frame after pairing is encrypted with AES-256-GCM using an HKDF session key from pair.key, and the S3 pins ISRG Root X1/X2 certificates. The Fly.io relay only forwards ciphertext between rooms and drops frames if a peer is absent.

Jump to The problem ↓Verified by gate-p5 and gate-l scripts; no external security audit.
How do Walkie and On The Beat share one M5StickS3 without clobbering each other?

On The Beat lives in app0 and Walkie lives in app1. firmware/guard.py blocks erase and uploadfs targets, tools/flash.mjs writes only app1, and holding both watch keys for 3 seconds boots cleanly into the sibling app.

Jump to Three decisions ↓Requires using the repo's flash/boot scripts rather than raw PlatformIO erase commands.
Why build a hardware remote instead of a phone app?

Because pulling out a phone pulls you into notifications. The M5StickS3 already lived on my wrist for On The Beat, so putting Walkie in app1 turns a 2-second approval into one glance and one button press.

Jump to Results, limits and next steps ↓Personal workflow hypothesis; not validated with a wider cohort.
4-Lens Adversarial Red-Team DefenseUnverified hypothesis

How others have challenged this design

Core thesis: Physical asymmetry and cryptographic sealing beat convenient ambient voice whenever a remote tool call can mutate local code.

Interrogates business framing, visual hierarchy, and whether deliberate friction actually earns its keep.

Adversarial ChallengeHigh Scrutiny

Why force a developer to strap on a 1.14-inch ESP32 watch instead of shipping a mobile companion PWA on the phone already in their pocket?

Empirical Defense

Pulling out a phone unlocks notifications, chat feeds, and thumb typing loops that derail off-desk breaks. A wrist PTT key requires zero face-ID unlock, zero visual dwell for capture, and keeps approvals scoped to a physical gesture.

Code & Hardware Receipt

300 ms PTT hold (HOLD_MS in the firmware's gesture.h) and the 3-line approval queue UI in M5StickS3 firmware + /projects/walkie#research-vault.

Unresolved Hypothesis (Honest Gap)

Multi-week developer diary testing comparing wrist abandonment rate against a phone lock-screen notification widget remains unexecuted.

Jump to Three decisions ↓
Walkie | Lewis Dong