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
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.
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.
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.
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.
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.
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
| State | What happens | How it recovers |
|---|---|---|
| Normal | Paired 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. |
| Empty | With 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. |
| Offline | No 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. |
| Error | The 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. |
| Refused | Side 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.
How the work unfolded, stage by stage
Step-by-step trace of triggers, user expectations, system behavior, cognitive friction, and explicit recovery paths.
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).
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.
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.
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.
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
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.
Press-to-talk → USB/Relay switch → Wrist gate → Spoken summary
Inspect the 4-stage wire and attention loop without loading heavy video captures.
S3 samples 16 kHz press-to-talk audio locally while holding the physical front button.
Field constraints that shaped physical keys and sealed framing
Bound tool approvals exclusively to deliberate physical Front/Side key presses on M5StickS3.
Versions I threw away
Logged defects exposed during hardware bench checks, live debugging, and AI-draft reviews—plus the structural fixes that replaced them.
Protocol Design v1
2026-09Bench / 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
Dual-Boot S3 Safety Gate
2026-10Bench / 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
Hardware Screen UX Pass
2026-10Bench / 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
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.
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?
Bench Log · Firmware gate-p5
Unverified hypothesis- Context
- Tested 30-second pairing timeout and deliberate Side Key abort against bridge startup.
- Observation
- Design assumption, not a recorded run: an aborted pairing should leave no key on disk and return the S3 to waiting without a power cycle. Gate P5 was written on 3 Oct; the repo does not record a run.
- Design & engineering change
- Wrote the fail-closed pairing rule into gate P5 rather than caching unconfirmed session keys.
Bench Log · Flash Guardrail
Bench / hardware verified- Context
- Co-hosting Walkie (app1) and companion firmware (app0) on a single 8 MB ESP32-S3 partition table.
- Observation
- Standard esptool flash commands risk wiping NVS/otadata or overwriting app0 unless explicitly blocked.
- Design & engineering change
- Added guard.py, which refuses the PlatformIO targets (erase, uploadfs, uploadfsota) that would write outside app1 and says which tools to use instead.
Design · Three OFFLINE Screens
Unverified hypothesis- Context
- Away from the cable, the watch's OFFLINE screen has to say what it lacks.
- Observation
- Design assumption, not a recorded run: one generic 'connection failed' would leave the wearer unsure whether Wi-Fi, the relay or the PC is down.
- Design & engineering change
- The firmware has three OFFLINE screens: 连不上 Wi-Fi, 连不上中继 and 电脑没在线. The on-device checks away from the cable (gates M and N) have not been run.
M5StickS3 Tactile & Transport Ergonomics Spec
Physical button geometry and transport arbitration thresholds locked on 1.14-inch hardware.
| Dimension | Locked Constraint | Rationale | Evidence |
|---|---|---|---|
| Button Asymmetry | Front Key = PTT + Approve · Side Key = Deny + Reason | Perpendicular faces prevent thumb-roll accidents when approving file writes without looking at the screen. | Bench / hardware verified |
| Minimum PTT Hold | Front key must be held 300 ms (HOLD_MS) | Stops accidental pocket or wrist-flex bumps from burning STT calls or injecting stray commands. | Bench / hardware verified |
| Channel Arbitration | USB Serial preempts wss:// relay immediately | Cuts desk latency and wireless packet loss to zero without requiring the user to toggle a settings menu. | Bench / hardware verified |
| Multi-File Diff Scope | Pause & queue complex edits for desk review | A 135×240 screen cannot carry code review legibility; forcing confirmation there encourages blind rubber-stamping. | Unverified hypothesis |
Product / Workflow Lead
- Priority
- Keep long agent runs moving away from the desk without breaking developer flow.
- Tension
- Temptation to auto-approve safe-looking shell calls so the user rarely gets interrupted.
- Resolution
- Allow read-only navigation silently while requiring explicit physical Front/Side confirmation for any mutation.
Systems & Firmware Engineer
- Priority
- Zero key leakage across public Fly.io relays and zero dual-boot bricking on shared M5StickS3 flash.
- Tension
- Streaming raw PCM over Wi-Fi drains battery and drops frames; seamless mid-turn switching risks duplicate tool calls.
- Resolution
- Enforce 4-bit ADPCM + AES-256-GCM 12B nonce over Wi-Fi, raw PCM over USB, and hard mid-turn abort on cable plug/unplug.
Solo Developer (Operator)
- Priority
- Zero hot-mic paranoia, legible voice summaries, and total certainty that a deny actually stopped the tool.
- Tension
- A small wrist speaker is quiet (Lewis compared five volume levels and picked the loudest); terse status codes fail to explain why a command stalled.
- Resolution
- Hardware PTT button physically gates audio capture; three OFFLINE screens in code separate Wi-Fi, relay and PC faults (not yet checked away from the cable).
What invariant stays non-negotiable in a v2 rebuild?
Bench / hardware verifiedEnd-to-end AES-256-GCM relay sealing plus physical 30s Front-Key pairing. A cloud relay that can read repository paths or forge tool approvals breaks the trust boundary.
Which early assumption proved brittle in practice?
Bench / hardware verifiedAssuming the wrist speaker would be loud enough. Lewis compared five volume levels and picked the loudest, and the 1.14-inch screen also shows a 3-line card so the reply does not depend on sound alone.
What hardware ergonomics detail would I change first?
Unverified hypothesisAdd subtle haptic pulse differentiation (single crisp click for approve queued, double buzz for deny confirmed) so eyes-free operation works even when audio is muted.
What outside validation study is still missing?
Unverified hypothesisA 5-developer diary study measuring how often operators genuinely approve from the wrist versus abandoning the remote and walking back to the terminal.
The hardware in 3D
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.
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.
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.
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.
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.
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.

