Mk20 Agent Deck — Development skill for Claude Code
MK20 Agent Deck: 20-key LCD macropad firmware + macOS companion for driving Claude Code / Codex sessions (approve, switch, voice).
How to install Mk20 Agent Deck
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open lenzhang/mk20-agent-deck and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Mk20 Agent Deck does
MK20 Agent Deck: 20-key LCD macropad firmware + macOS companion for driving Claude Code / Codex sessions (approve, switch, voice).
Alternatives in Development
- Cc Pocket — Drive Claude Code or OpenAI Codex from your phone — resume sessions, stream output, approve tool permissions r 101 ★
- CoderBar — Native macOS agent control for Codex and Claude — monitor, approve, ask, and jump back from the menu bar 100 ★
- Buddi — A macOS notch companion for Claude Code — your buddy lives here now 92 ★
README
MK20 Agent Deck
把一块 **Waveshare MK20 (B)** 桌面小键盘(20 个键各带 0.85" LCD + 一块 2.8" 副屏 + 两个旋钮)改造成 **AI 编程助手控制台**:在键屏上实时显示 Claude Code / Codex 各个会话的状态,一键切换会话、批准权限请求、 按住说话、截图发给会话。
*English:* firmware + macOS daemon that turn a Waveshare MK20 (B) macro pad (20 per-key LCDs, a sub-screen, two knobs) into an agent deck for Claude Code and Codex: live per-session state on the keys, focus a session with one press, hold-to-approve permission prompts, push-to-talk, one-key screenshot. Docs are mostly in Chinese, some engineering notes are in English.
状态:固件 **v1.8.0**(生产版,CDC-NCM 链路,24 h soak 通过);Mac 端 **mk20deck 1.8.1**(长按批准、SNAP、 K1 回看,已在作者的 iMac 上部署,未打 tag)。私有仓库,多人协作见 [CONTRIBUTING.md](CONTRIBUTING.md)。
功能
| 功能 | 说明 |
|---|---|
| 会话状态上屏 | L1 页 15 个会话槽:运行中 / 待输入 / 待审批 / 完成未读 / 出错,来源是 Codex Desktop(只读 sqlite)、tmux 里的 Claude Code / codex(hooks 状态记录)、herdr |
| 一键置前 | 单击会话键:Codex 线程 codex://、tmux 窗格 + 终端 App |
| 长按批准(1.8.1) | 权限提示出现时,键 1「是」/ 键 2「是,且不再问」要按住 1 秒并松开(键上画进度环,成功闪绿 + 提示音);键 3「否」立即生效;超时、断线、按别的键都会取消,绝不默认放行 |
| SNAP(1.8.1) | L4 页长按 MODE:全屏截图进剪贴板(需要「屏幕录制」权限) |
| K1 回看 | 左旋钮旋转 = 滚动选中会话的历史,按下 = 回到最新 |
| 选项模式 | 待输入的会话里,数字键由键盘直接发 HID 按键 |
| 会话安排网页 | 127.0.0.1:8781,一次性链接授权,固定规则 / 钉扎 |
| 设备端 | 自研 mk20-kbd 取代原厂 KeyboardDevice 渲染 21 块屏;A/B 槽固件 + 看门狗自动回滚;设备上的网页设置页 |
键盘的实际键面、页面切换、选项选择、长按批准、移动钉扎和 K1 回看流程见[键盘交互图解](docs/keyboard-interaction.md)。图像由仓库里的模拟器按当前控制器逻辑生成,便于在没有设备时理解每个按键的作用。开发文档从[文档索引](docs/README.md)开始。
模拟器示意
下面两张图直接来自仓库模拟器:左图是 L1 的会话键面,右图是长按批准达到时长后等待抬起的状态。完整的 L4、选项、移动、钉扎和回看图序列见[键盘交互图解](docs/keyboard-interaction.md)。
架构
flowchart LR
subgraph Mac["macOS 主机"]
CC["Claude Code / codex CLI
(tmux, hooks)"] -->|agent-state/*.json| D
CX["Codex Desktop
(state sqlite, 只读)"] --> D
D["mk20deck 守护进程
/usr
Related Skills
FiaOS
Open a browser tab — you're now driving your computer. Live remote desktop + real PTY shell (Claude Code, vim,
Agent Vitals
Stream Deck plugin for Claude Code — live usage gauges, session status, and approve/deny keys. macOS + Windows
Session Deck
Every Claude Code conversation on your PC, one click away. Unofficial Windows companion app: reopen app & CLI
Muxboard
Stream Deck+ dashboard for cmux, Orca, and Herdr coding agents, with live attention keys and CodexBar quotas,
Deskhub
A desk display for the Waveshare ESP32-S3-Touch-LCD-4.3B: PC stats, Claude Code usage, calendar, media, Steam
Qutty
A tiling terminal for macOS and Linux, built for coding agents: a GUI around Claude Code, Codex and other harn
Related Agents
Mobile UX
Use for UX and copy of the 402Lab Expo companion app — QR pairing onboarding, the at-a-glance view of what eac
Ff l10n
Flapforge localization engineer: adds and audits every player-facing string in en and pt_BR, keeps the two fil
Codex Integration
Clavain — Codex Integration & Companion Plugins