Build an AI Coding Session Monitor Dashboard with an E-ink Display
This article explains how to build a dedicated AI coding session monitoring panel using a low-power e-ink display. It covers a three-layer architecture that separates session data collection, bridge routing, and device rendering, communicates over a bidirectional line-delimited JSON stream, and offloads high-risk approval decisions from the keyboard to physical buttons. Readers will learn how to design low-distraction status visibility, low-latency authorization, offline resilience, and rendering strategies tuned to the refresh cost of e-paper, along with reliability, security, and rollout guidance.
1. Why the Terminal Is Not a Good Enough Status Panel
When a developer runs three or four AI coding sessions at the same time, the real bottleneck is not compute—it is attention. The terminal is good at accepting input, but it is not designed for a global situational overview: each session is buried in its own window or tab, and finding out which one is reasoning, which one is waiting for approval, and which one is idle means switching around repeatedly. Approval prompts make this worse. For high-risk actions such as executing commands or writing files, the system usually interrupts and waits for a human to release it. The moment you step away from your desk, the entire pipeline stalls.
So the problem boils down to two orthogonal needs:
- Low-distraction status visibility: continuously seeing the health and progress of every session without stealing focus from the main screen.
- Low-latency authorization access: being able to make a clear decision on high-risk operations and keep a record of it, whether you are at your desk or a few steps away.
These two needs are a good fit for a separate physical terminal, rather than piling more plugins into a code editor.
2. Overall Architecture: Three Decoupled Layers
A practical design is usually split into three layers that communicate only through clear contracts. Any layer can be replaced independently or debugged offline.
- Session collection layer (Agent side): This runs inside each coding session. It structures events—session lifecycle, tool call intent, token usage—and pushes them to the bridge service. This layer should not assume the network is always available. A “local queue plus batched reporting” strategy is recommended: cache events while offline, then replay them in order after reconnection so that state does not get corrupted by lost events.
- Bridge and routing layer (Bridge daemon): A lightweight, always-on daemon on the local machine that aggregates sessions above and talks to the display device below. It is responsible for four things: session registration and heartbeats, event normalization, queuing and timing out approval requests, and sending instructions back. This layer is the brain of the system. Implementing it as a single-process event loop is advisable to avoid race conditions from shared state across threads.
- Display device layer: A low-power e-ink or similar e-paper device that shows the status dashboard and approval cards. The key constraint here is that refresh is expensive: a full-screen refresh typically takes hundreds of milliseconds and comes with noticeable flashing. The rendering strategy must therefore be “prefer partial updates, fall back to full refresh.”
The three layers communicate over a single bidirectional, line-delimited JSON message stream. This choice has three benefits: it is simple to parse, it naturally supports streaming incremental updates, and it offers good forward compatibility—as long as you stick to the contract of “new fields are optional, unknown fields are ignored,” the device and the bridge can be upgraded independently.
An illustrative message structure:
{"type":"session.update","id":"s-01","state":"running","ctx":{"used":45800,"limit":200000},"model":"long-context-llm","project":"weekly-report","branch":"feat/draft","dirty":3}{"type":"approval.request","req":"r-77","tool":"shell","title":"Delete build artifacts","detail":"rm -rf ./dist","risk":"high","timeout":120}{"type":"approval.reply","req":"r-77","decision":"deny","by":"key-down"}
3. Multi-Session Situational Awareness: Making Switching Cost Zero
The main view of the dashboard should answer one question: which session deserves my attention right now? To that end, each session entry should expose at least five dimensions—context usage, the model in use, the project, the current branch, and the number of uncommitted files. The first two reflect “how much longer it can run”; the last three reflect “how much has changed, and against which baseline.” Layering on an explicit state machine (idle / thinking / calling a tool / awaiting approval / error) produces a clear priority ordering.
For interaction, follow a simple principle: the default view aggregates only; it does not go into detail. When you tap a session on the touchscreen, a right-hand or paged view then shows a summary of the latest response plus an activity log (timestamp, tool name, duration, result status). At a glance you get the global picture; when you need to go deeper, it costs a single click. Overall attention overhead is pushed close to zero.
One easily overlooked design point: context usage should not display only an absolute value—it should show both a percentage and a color tier (for example, a normal color below 60%, a warning color between 60% and 85%, and a danger color above 85%). “How much headroom is left” drives decisions better than “how much has been used,” because it signals whether it is a good moment to slot in a new exploratory task.
4. Physical Approval: Trading the Tactile Channel for Judgment
Approval is the highest value-density part of the whole system. Moving the confirmation action from the keyboard to physical buttons brings three benefits:
- Full context: The screen presents the tool type, the owning project, and the complete payload in one place. Command-type actions show the original text rather than a summary, file-editing actions show a unified diff rather than just a file path, and write actions show a content preview. The approver does not have to scroll up and down in the terminal to find context, so the quality of judgment improves markedly.
- Moderate decision friction: Tapping a screen is too easy to do by mistake, while pressing Enter is too casual. The force and travel of a physical button form a kind of “gentle ritual” that matters especially for irreversible actions like deleting a directory or force-pushing. It turns high-risk confirmation from muscle memory into a deliberate decision.
- A traceable record: Every approval and rejection is written to the activity log, including the request identifier, the time taken, and the source of the decision. When reviewing afterward, you can answer “who approved this action, and at what point in time”—almost a hard requirement in team settings.
In engineering terms, an approval request must carry a unique identifier and a timeout. The device’s buttons only send back “approve/reject + request ID.” The bridge layer then checks whether the ID is still valid (the session may have already timed out, or the user may have already handled it in the terminal), which prevents stale instructions from causing mistakes. It is also advisable to queue and present multiple pending requests for the same session serially, so the screen does not get flooded with concurrent approvals and lose readability.
5. Balancing Wireless and Offline: The Practical Trade-offs of a Low-Power Link
Wireless connectivity makes “approve while away from the desk” possible: you are a few steps away, the screen lights up with a prompt, and you raise a hand and press the button to release it. Choosing a link means trading off power, bandwidth, and stability. Low-power Bluetooth broadcasting suits small messages and infrequent wake-ups, but it offers limited support for connection-state throughput and concurrency. If the approval payload is large (for example, a long diff), a layered strategy of “summary over wireless, details fetched on demand” works well: large content is transferred only when the user actively expands it.
Link-loss degradation is equally important. When the device loses contact with the host, the dashboard should keep the last valid snapshot and clearly mark the time of the data, rather than going blank—a blank screen makes people wrongly assume “all tasks are done.” Pairing information should be persisted so the device reconnects automatically after a power cycle, reducing day-to-day friction. As for the local debugging stage, a wired serial connection is often easier than wireless, so keeping a wired channel as a fallback is a very practical move.
6. Rendering and Interaction Details: Designing for the Physics of E-paper
The physical characteristics of an e-ink display define the boundaries of interface design. Ignoring those boundaries produces a bad experience:
- Layered refresh modes: Use partial refresh for small areas like button feedback and progress numbers; use full refresh for structural changes like page switches and pop-ups. Keeping the full-refresh frequency at minutes rather than seconds preserves both readability and panel longevity.
- Avoid relying on grayscale: E-ink refreshes slowly and leaves obvious ghosting, so express interaction states with position, borders, and icon shapes rather than light gray background colors, reducing visual ambiguity.
- Zone the information density: Fix the time and link status at the top, show the session grid in the middle, and keep a one-line scrolling log area at the bottom. A fixed layout lets the eyes build muscle memory, and scanning speed is far higher than with a free-form arrangement.
- A clear “unattended” cue: When all sessions are idle or the device has disconnected, indicate it in a way that is prominent but low-power, so users do not mistakenly believe the system is working normally.
7. Reliability, Security, and Observability
A monitoring panel that runs long-term must be treated to the standard of an “unattended service”:
- Process supervision: The bridge daemon should support automatic restarts and, on an abnormal exit, write unhandled events to a local file and replay them after restart. A health-check endpoint is recommended so that external monitoring can probe liveness.
- Least privilege: The device side is responsible only for presentation and binary decisions and must never hold any credentials. The authority to actually perform actions stays on the local session side. The link should be restricted to local loopback or a trusted LAN by default; when cross-device access is involved, it must be encrypted and the device identity must be verified. Never expose the control channel directly to the public internet.
- Audit-friendly: Approval logs should be append-only and never modified in place, with fields for timestamp, request ID, tool type, payload summary, and decision. If centralized archiving is needed, logs can be shipped to a general-purpose logging service or object storage, and monitoring alerts can flag patterns such as “no approval for a long time” and “dense high-risk operations.”
- Second confirmation for dangerous actions: Irreversible operations can require a more explicit confirmation (for example, a long press or a second key press) to raise the cost of accidental triggering. Such policies should be configured by the user rather than hard-coded into the implementation.
8. Implementation Path: Start from the Smallest Closed Loop
Do not build the full solution all at once. A four-step evolution is recommended, with each step delivering verifiable value:
- Read-only dashboard: First implement session event reporting and status rendering, and verify that “seeing the global picture at a glance” actually reduces switching cost.
- Single-button approval: Wire up the simplest confirmation path (approve/reject binary decision only) and verify how much users trust the physical interaction.
- Offline resilience: Add offline caching, snapshot retention, automatic reconnection, and timeout checks.
- Experience polish: Refine the partial-refresh strategy, second confirmation for dangerous actions, log auditing, and multi-device coordination.
9. Scope and Common Pitfalls
This approach is not a cure-all. It solves the problem of attention allocation and authorization access, not the reasoning quality of the model itself. If you only run a single session and never leave your desk, the benefit of a piece of dedicated hardware is quite limited. Another common pitfall is turning the approval panel into a “fully automatic releaser”—the value of permission confirmation comes precisely from human judgment, and optimizing it away means giving up the last line of defense. One more point worth mentioning: the availability of the approval path must be higher than that of the sessions being approved. Otherwise, a fault in the panel itself becomes a new single point of blockage. That is exactly why the original approval entry inside the terminal should be kept as a fallback channel.
Conclusion
Pulling status out of the terminal and handing it to a quiet e-ink screen is, at its core, a restructuring of the division of labor in interaction: the screen is responsible for “informing,” the terminal is responsible for “input,” and the human is responsible for “judgment.” A three-layer decoupled architecture, a simple line-delimited JSON contract, a rendering strategy premised on refresh cost, and an approval protocol with timeouts and traceability together form a minimal, evolvable solution. What it brings is not just efficiency, but a more composed working rhythm—you can step away, and the task keeps moving.
