cm2-claude
Claude Code agent status on a Work Louder Creator Micro 2: the Codex Micro's
Agent Keys, body-ring notification, approve/reject keys and hold-to-talk, driven
by Claude Code hooks instead of the ChatGPT app. Bluetooth or USB, sessions on any
machine on your tailnet, no Work Louder Input app needed.

row 1 [dial] [AG00] [AG01] [joystick] agent keys: one Claude Code session each
row 2 [AG02] [AG03] [AG04] [AG05] white idle · blue working · amber needs input
row 3 [Esc ] [APPR] [REJ ] [ .. ] green done (unread) · red error · selected key breathes
row 4 [TALK] [ .. ] [ .. ] body ring = most urgent state across all sessions
How it works
- cm2d (
daemon/cm2d.js, Node, runs on the Windows box the pad is paired to)
opens the pad's vendor HID collection (usage page 0xFF00) and speaks the
firmware's JSON-RPC: v.oai.thstatus lights the six agent keys,
v.oai.rgbcfg drives the body ring, v.oai.hid reports key presses. It also
listens on HTTP (:7777) for Claude Code hook events and serves the
configurator.
- the plugin (this repo is a Claude Code marketplace) registers hooks on every
machine that runs Claude Code. Each hook event is POSTed to cm2d over the
tailnet, asynchronously, swallowing failures, so a dead daemon never shows up
in a session.
PermissionRequest is the one synchronous hook: cm2d holds it
open so APPR/REJ on the pad can answer it, and the normal on-screen prompt
appears if nothing is pressed within holdMs.
Only the daemon has to sit next to the pad. Sessions on rpc, in WSL, or in the
desktop app's native Windows Claude Code all light the same keys.
Requires pad firmware 0.6.0 or newer (node cm2d.js status prints it;
firmware 0.6 is what put the v.oai.* methods on every Creator Micro 2).
Install
On the machine with the pad (Windows, Node 18+), there are two ways to run
the daemon, and they coexist:
Started by the plugin. If Claude Code itself runs on that machine (the desktop
app's native sessions, or the CLI), the plugin's SessionStart hook takes care
of it: the first time, it does the npm install in the plugin's own copy of the
daemon and registers the cm2d logon task (user-level, no admin), which starts
the daemon now and at every login; after that it just runs the task whenever a
session starts and the daemon isn't answering. Nothing else to set up.
CM2_NO_DAEMON=1 opts out entirely; CM2_NO_AUTOSTART=1 skips the task and
starts the daemon detached from the session instead.
The task matters: the daemon injects keystrokes (dial, mic, typed answers) and
drives the app through UI Automation, so it has to live in the interactive
Windows session. A process started from an SSH session cannot see that session's
windows, and neither can a Windows service (services run in session 0), so it
stays a logon task. The task runs a two-line WSH launcher (cm2d.vbs,
regenerated on every run) that starts node with no console window, and install
clears Task Scheduler's default 72-hour execution limit — which would otherwise
kill the daemon silently every three days, no shutdown line, empty error log —
and sets it to restart if it dies. That is also why a session running
elsewhere can only revive the daemon through the task: put the pad machine's SSH host name in
~/.config/cm2-claude/ssh (one line, e.g. desktop) on the machine your
sessions run on, and the hook there runs schtasks /Run /TN cm2d over SSH when
the daemon doesn't answer.
Started at login, by hand. If Claude Code never runs on the pad's machine,
install the same task yourself from a checkout:
scp -r daemon desktop:C:/Users/user/cm2-claude/
ssh desktop "cd C:\Users\user\cm2-claude\daemon && npm install --omit=dev"
ssh desktop "cd C:\Users\user\cm2-claude\daemon && node cm2d.js status" # round trip over BLE/USB
ssh desktop "cd C:\Users\user\cm2-claude\daemon && node cm2d.js setup-keys" # rows 1-2 -> agent keys, row 3 -> APPR/REJ, row 4 -> TALK (backs up first)
ssh desktop "cd C:\Users\user\cm2-claude\daemon && node cm2d.js install" # logon task, starts now; `uninstall` reverts
ssh desktop "cd C:\Users\user\cm2-claude\daemon && node cm2d.js restart" # after editing config.json or copying a new cm2d.js
If install over SSH stops with spawnSync schtasks EPERM (that shell cannot
spawn schtasks), run it from a terminal on the desktop instead; once the task
exists, schtasks /Run /TN cm2d over SSH is enough.