我给它设计的整体链路是:
Claude Code 的 hooks 和 statusLine 捕捉运行状态,把事件发送给本机的一个小服务器。
小服务器生成一个极简网页,Kindle 用内置浏览器访问这个局域网页面,并每隔几秒自动刷新。
也就是:
Claude Code → hooks/statusLine → 本地服务器 → Kindle 浏览器
Kindle Paperwhite的浏览器虽然不先进,但显示简单 HTML 完全够用。
电子墨水屏不适合动画,也不适合复杂前端框架,反而适合这种黑白分明、低频刷新的仪表盘。
屏幕上可以显示什么?
最核心的是当前状态:正在思考、正在执行工具、等待授权、已完成、出错。
其次可以显示当前工具,比如 Bash、Edit、Write、Read、Grep、Agent。
再加上一些辅助信息,包括当前项目目录、上下文占用、会话时长、本轮成本、最近几条事件记录。

其中最有价值的一项是“等待授权和问询”。
Claude Code 会停下来询问技术的方案,或者是要让你来允许某一个操作。
把这个状态放到 Kindle 上之后,不用反复切回终端看它有没有卡住。远远看一眼 Kindle,就知道现在该不该介入。
最主要的是这套方案变废为宝
Kindle墨水屏非常的省电,不需要多高的刷新率,也不需要彩色屏,实现一些简单的交互就可以,就安静地放在桌面上,跟一个小型的墨水仪表盘一样,也不需要连接电脑,远程拿着就可以四处走动,有问题了,再回到桌面端进行改动。
实现上也不复杂。
在 Mac 上跑一个 Python HTTP server,接收 Claude Code hooks 传来的 JSON,再写一个简单的 HTML 页面,用大字号显示状态。
Claude Code 的 settings.json 里配置 hooks,把 SessionStart、PreToolUse、PostToolUse、Notification、PermissionRequest、Stop 等事件都转发给服务器。
Kindle 打开 http://局域网 IP:8787/,就能看到监视屏。
所以理论上不用Kindle其实也可以,任意的一块耗电量低的小屏幕设备都可以承载和剥离掉我们去盯着的这个操作。
后期也可以加一些简单的交互,比如说通过权限的确认,以及多计划方案的选择。
源码地址:
https://link.bytenote.net/note
下的0562目录
The overall architecture I've designed is:
Claude Code's hooks and statusLine capture the run-time state, sending events to a local server on the same machine.
This local server generates a minimalist web page that the Kindle's built-in browser accesses via the local network. The page auto-refreshes every few seconds.
In other words:
Claude Code → hooks/statusLine → Local Server → Kindle Browser
While the Kindle Paperwhite's browser is not advanced, it's fully capable of displaying simple HTML.
E-ink displays are not suited for animations or complex front-end frameworks; they are instead ideal for black-and-white, low-frequency-refresh dashboards like this one.
What can be displayed on the screen?
The core element is the current state: Thinking, Executing Tool, Waiting for Authorization, Completed, or Error.
This can be followed by the current tool in use, such as Bash, Edit, Write, Read, Grep, or Agent.
Additional useful information includes the current project directory, context utilization, session duration, cost per round, and the last few event logs.
One of the most valuable features is the "Waiting for Authorization and Inquiry" state.
Claude Code will pause and ask for technical decisions or permission to perform an action.
By displaying this state on the Kindle, you don't need to switch back to the terminal to check if it's stuck. A quick glance at the Kindle tells you whether you need to intervene.
The primary advantage is that this solution breathes new life into an underutilized device.
The Kindle's e-ink screen is extremely power-efficient and doesn't require a high refresh rate or color. It functions perfectly as a simple desk-mounted gauge.
The implementation is straightforward.
Run a Python HTTP server on the Mac to receive JSON from the Claude Code hooks and serve a simple HTML page with large text.
Configure the Claude Code settings.json to forward events like SessionStart, PreToolUse, PostToolUse, Notification, PermissionRequest, and Stop to the server.
The Kindle connects to http://local-ip:8787/ to view the monitor.
In theory, any low-power display device could perform this "watchdog" role, freeing you from having to stare at the console output.
The system can be expanded in the future to include simple interactions, such as approving permissions or selecting multi-plan options.
Source Code:
The code is available in the 0562 directory at https://link.bytenote.net/note.
Original Article: https://mp.weixin.qq.com/s/oLZqjlZaOmiuUaUNs-uwlA
原文链接: https://mp.weixin.qq.com/s/oLZqjlZaOmiuUaUNs-uwlA

