OpticDeck saves the agent a screenshot to click “Save”
A background Linux desktop, controls by name, and twelve MCP tools. Across three forms, the compact tree took between 377 and 398 bytes.

Machine translation. Read the original in Español
In this article
In one of my tests, reading an Electron form took 377 bytes. Sending a screenshot of that same window, 26.068. All just to type in a field, check a box, and click a button whose name the application already knew.
Out of that came OpticDeck, a background Linux desktop for AI agents. Version 0.3.0 is available to download and the code is open source. It uses AT-SPI2, Linux’s accessibility interface. If the application exposes the checkbox, the agent can read its name, check whether it’s ticked, toggle it, and ask again what state it’s in. No need to hit the right pixel.
What it sees while you use your computer
Each session opens its own X11 display. The agent can work on it while you keep using your desktop. From the browser viewer you can watch what it’s doing, pause it, or take over.
It works with GTK 3, GTK 4, Qt Widgets, and Electron. The tricky part comes when an application draws its own controls. The accessibility tree can take you as far as an editor’s canvas, and the information stops there. OpticDeck flags that region so the agent can look at it. To fill in the “Name” field, I read the field. To know what’s drawn on the canvas, I want to see it.
The bytes of the three tests
I set up the same exercise in three small applications. The task was to type, check a box, and click. In all three, the result was verified by reading the application’s state. These are the medians on a machine running CachyOS and an i7-12700H.
| Test interface | Compact tree | 1280 × 800 PNG screenshot |
|---|---|---|
| GTK 3 | 398 bytes | 26,666 bytes |
| Qt 6 | 398 bytes | 20,444 bytes |
| Electron | 377 bytes | 26,068 bytes |
What’s measured is the response size. To turn that into a token bill you’d need to know how the model you use processes images and text. In the repository I left the method, the measurements, and their limits.
How to hook up your agent
It has a CLI and a local MCP server with twelve tools. Any agent that can run that CLI or speak MCP will do. The installer already supports Antigravity, Claude Code, Codex, Cursor, and OpenCode. If a form gets stuck, the session can save the report of actions and timings so you can see at which step it happened.
The first test I’d run is to open a form you know. Ask the agent to fill in a field, resize the window, and tell it to save. The button has moved. It’s still called “Save”.