fp.Fabio
Petriccione
← All notes

At home / side project · November 2026 · Fabio Petriccione

A four-inch screen that approves my agents, and keeps the dogs on my desk.

The internet is full of ESP32 projects, and most of them look like a weather station from 2009. I bought a small touchscreen off AliExpress without expecting much. Within the hour it was approving my coding agents. By the end of the evening it was a clock, a calendar, a Spotify remote and a second home for Ella and Lulu.

It is open source: desk-approver on GitHub ↗︎
The small square touchscreen lying on a knitted blanket, showing a Two of a Kind picture of the two dogs, with its USB cable coiled beside it and a white terrier asleep next to it.
Photo · November 2026The board on the sofa, plugged into the laptop, with one of the two dogs from the picture asleep right next to it.

I did not expect much from it.

Scroll anywhere for long enough and someone is building something with an ESP32. They are tiny, cheap microcontrollers with Wi-Fi, and people put them in everything. The ones with screens attached are the most tempting and, usually, the least pretty.

Mine is a Guition ESP32-S3-4848S040: a square, four-inch, 480 × 480 touchscreen in a frame made for a wall switch box. It has 16 MB of flash and 8 MB of extra memory, which is a lot for a board this size. It came with a demo on it and a USB-C port, and I plugged it into the MacBook mostly to see what it would do.

The first thing I did was save a full copy of the factory firmware, all 16 MB of it. Whatever happened next, I could put it back the way it came.

Back up the original first. Then break things.

The first job: approving my agents.

Most days I have a few coding agents running at once, some in Claude Code and some in opencode. Each of them stops, quietly, every time it wants permission to run a command or edit a file. If I am looking at another window, it just waits. I wanted something on the desk that tells me who needs me and lets me answer without switching windows.

So that became the first job. When an agent asks for permission, the screen shows a card: which tool and project it comes from, what it wants to do in plain words, and a preview of the actual command. Two big buttons, Deny and Allow. When nothing is waiting, it lists the sessions that are running and what each one is doing.

Three screens from the desk approver. Sessions: a dark list of three agent sessions, weather-app running, recipe-site waiting for a git push, dotfiles done. A session: the prompt Add a 5-day forecast to the home screen, three timed steps and the latest reply. An approval request: recipe-site in OpenCode wants to run the shell command git push origin v1.2.0, with Deny and Allow buttons.
Mock-up · the agent screensSessions, one session up close, and an approval request. A new card ignores taps for the first 400 milliseconds, so a stray tap cannot approve something I have not read. The code is on GitHub ↗︎

Under the screen there is a small helper on the Mac. Claude Code has hooks that run at each step of a session, and opencode has plugins. Both pass their events to the helper, and the helper talks to the screen over the USB cable. Nothing listens on the network, so nothing else in the house can press Allow.

It is also built to get out of the way. If the screen is unplugged, the helper is not running, or I do not answer within about fifty seconds, the agent falls back to its normal prompt in the terminal. A desk gadget should never be the reason a session hangs.

Testing it on real sessions caught two things. The first was funny: the screen asked me to approve the agent's own question to me, as if a question were a command. Questions now go straight to the app. The second was that my version of opencode had moved to a new plugin format, so the first plugin never loaded. Both were fixed the same evening, with a test for each.

Then it had to look like something.

The first version worked and looked like the ESP32 projects I had been scrolling past: labels that said "claude" and "opencode", hard edges, nothing to tap. So I redid it the way I would want it on my desk. The Claude and OpenCode logos come from the app icons installed on my Mac. The type is Geist, with Geist Mono for commands. The palette is near-black with thin lines, and colour only means something: green running, amber waiting, red only on Deny.

Sessions are now tappable. Each one opens a short page with what I asked, the last dozen steps with the time, and the agent's latest reply. For Claude Code, the hooks already see all of that, so it was a matter of keeping it instead of throwing it away.

A face for when nothing needs me.

Most of the time, no agent is waiting. A list of sessions is not much to look at, so the screen now rests on a face, the way an iPhone does in StandBy. Agents still break through: an approval request takes over the screen at once. Pull down from the top and it locks to the face, so only approvals can interrupt.

  1. 01 / CLOCKAn analog clockBlack dial, thin ticks, white hands and a yellow second hand that sweeps. Inspired by Braun's wall clocks, without the name on the dial.
  2. 02 / CALENDARThe monthA light page with today circled and the date as a big, soft numeral behind the grid.
  3. 03 / TWO OF A KINDToday's pictureElla and Lulu, the same picture as on the TV, laid out for a square.
  4. 04 / MUSICNow playingSpotify from the Mac, with the real album art.

Swiping left and right moves between them, and the screen remembers my choice. The board has no clock of its own that survives a power cut, so the Mac sends it the time every minute. Late in the evening the backlight drops to a quarter, so it does not glow across the room.

The screen showing the analog clock face: a dark blue dial with white ticks and numerals, white hour and minute hands and a thin yellow second hand.The screen showing the calendar face: November 2026 on a light page, today, the 27th, circled in blue, with a large orange 27 behind the grid.
Photo · the clock and the calendar, first eveningThe bare board, before the case. The clock draws its dial once and only redraws the hands, which is how a small chip manages a smooth second hand.

The dogs, in a square.

If you read the note about our TV, you know there is a new picture of Ella and Lulu every night. I wanted it here too. The problem is shape: the pictures are wide, 16 by 9, and this screen is square. The dogs usually sit side by side across most of the width, so any square crop would cut one of them off, or at least an ear.

Each picture is really a card: the illustration on top, and a strip underneath with a typewritten line on the left and the Two of a Kind lettering on the right. So instead of cropping, the Mac lays the card out again for a square. The illustration goes across the top, whole. The caption sits under it, larger than before. The lettering moves to the bottom right corner. Nothing is redrawn or retyped. They are the original pixels, rearranged.

The helper checks the site every hour. When the day changes, it builds the square and sends it to the board, which keeps a copy in its own storage, so today's picture is back on screen even after a power cut. If a picture ever does not follow the usual layout, it falls back to the whole picture on cream. Never cropped.

A hand holding the small screen in front of the living-room TV. Both show the same Two of a Kind picture: the two dogs in red and white night caps under a yellow blanket, with the caption A good night starts with good company.
Photo · the third faceThe same picture as the TV in the living room, at desk size.

Spotify, the way I wanted it.

Every Spotify controller I found for these boards looked like a debugging tool. I wanted the iPhone's Now Playing: big artwork, a thin progress bar, three calm buttons. Spotify on the Mac can be scripted, so the helper reads the track, the artwork and the position, and runs play, pause, skip, seek and volume when I tap. No account to connect and no keys.

Blurring a big image is too much work for the board, so the Mac does it. It sends the background as a picture, and the board draws the text, the progress and the buttons on top, live. There are two styles, and a long press switches between them: the artwork blurred behind everything with a sharp cover in the corner, or the cover full-bleed with the controls on a frosted glass panel.

The screen in its printed case showing Now Playing in the blurred style: Rose by Kings of Leon, a sharp album cover top left, a progress bar and play controls over a soft blurred background, with Spotify open on the laptop behind.The same song in the glass style: the album cover of sea and sky fills the screen, with the title, progress bar and controls on a frosted panel at the bottom.
Photo · now playing, blurred and glassLong press to switch. The glass panel is the artwork itself, blurred on the Mac.

The first version took six to ten seconds to change the artwork after I pressed Next. Timing each step showed the Mac's part took a fraction of a second. Almost all the time went on the board receiving the picture, in pieces, over the cable. The real culprit was on the Mac: the helper read from the cable in a way that waited half a second for more data after every short reply from the board, and the board replies after every piece. With that fixed, and the cable run four times faster, the artwork now follows the music in about a second. The same fix made the Allow button quicker too.

Six to ten seconds, then under one. The bug was a half-second wait hiding in every reply.

A case, so it can sit on a desk.

The board is made to go in a wall, over a switch box, so on its own it has nothing to stand on. For the desk I printed a frame and stand for it: Guition 4" screen frame and stand (ESP32-S3-484), a model shared on Printables. The design is not mine. All I did was print it.

The touchscreen held in one hand, switched off, inside a 3D-printed frame in a light tan filament, with the laptop screen behind it.
Photo · the printed frameThe board in its printed frame. Model: Guition 4" screen frame and stand on Printables.

Why it still has a cable.

I did think about Wi-Fi. The board has it, and it would be faster than the cable. But the screen needs power either way, and with the backlight on, a power bank would last about half a day. So Wi-Fi would only swap the cable to the laptop for a cable to the wall, and add a pairing step so nothing else on the network could approve a command. On a desk where the laptop mostly stays put, one cable to the Mac is simpler.

4Faces, one swipe apart
2Agent tools: Claude Code and opencode
1Cable, for power and everything else

I built all of it in one evening with Claude Code, trying each change on the screen before keeping it. It is the most fun I have had with an impulse buy in a while.

All of it is open source: the firmware, the Mac helper, the Claude Code hook and the opencode plugin are on GitHub as desk-approver. If you have the same board in a drawer, it should take you less than an evening.

A little further under the hood.

These are the parts that took a moment to get right, for anyone with the same board in a drawer.

  1. 01The agent asksA Claude Code hook or an opencode plugin catches the permission request.
  2. 02The helperA small Python program on the Mac, on a private Unix socket.
  3. 03The cableOne line of JSON per message over USB serial, at 460,800 baud.
  4. 04The screenLVGL on the ESP32-S3 draws the card. The tap goes back the same way.
The route of one approvalIf any step is missing, the agent falls back to its own prompt.
The board

Guition ESP32-S3-4848S040: ESP32-S3 at 240 MHz, 16 MB flash, 8 MB PSRAM, a 480 × 480 IPS panel driven by an ST7701 over a parallel RGB bus, a GT911 capacitive touch controller, and a CH340 USB-to-serial chip. The firmware is Arduino with LVGL 9, built with PlatformIO. The newest ESP32 Arduino core did not work with the display library yet, so the build is pinned to the previous one.

Keeping approvals safe

Only a tap on the screen can approve. The helper listens on a Unix socket that only my user can open, and the board is the only thing that can send it a decision. If the helper is down, the board is unplugged, or nobody answers within about fifty seconds, the hook returns nothing and the agent shows its usual prompt. New cards ignore taps for 400 ms, and questions or plan approvals never go to the screen at all.

Sending pictures over a serial cable

The daily picture and the album art go to the board as baseline JPEGs, about 15 to 40 KB, in pieces of 2.8 KB. The board acknowledges each piece, checks a checksum at the end, and decodes with the JPEG decoder built into the ESP32-S3's ROM. A lost piece is simply sent again. The board answers in a few milliseconds; the earlier delay came from the Mac side reading the reply, not from the board.

A smooth second hand on a small chip

Redrawing a full 480 × 480 screen twenty times a second is too much for it. The clock draws the dial once into memory, and the hands are separate lines, each sized to its own small box, so only the area around a moving hand is redrawn. The calendar only changes once a minute, so it is cheap.

What the screen does not do

It cannot type a reply to an agent, browse old pictures of the dogs, or like a song: Spotify's Mac scripting has no way to do that. It needs the Mac to be awake for agents, music and the time, and when the Mac is asleep it keeps showing the last face it had.