Every GUI automation story I know ends the same way. The agent takes a screenshot, guesses coordinates, clicks — and the window had moved, or a dialog was up, or the button it wanted was three pixels off. It retries. It screenshots again. Somewhere around the fourth attempt you realise the agent isn't operating your app; it's playing a guessing game against your rendering pipeline, and the rendering pipeline is winning.

The usual conclusion is "GUI agents aren't ready yet." I think the conclusion is wrong. The app is what's not ready. We build software with exactly one interface — pixels arranged for human eyes — and then act surprised when a machine has to reverse-engineer meaning out of them.

So this kit takes the other fork: build the app from the start so that an agent operates it structurally — through the same state the GUI shows, not through the glass.

Agent-Operable GUI Starter Kit

The kit is a working Rust/egui sample app — Stockroom Console, an inventory console — where a human at the GUI and an AI agent drive the same state, plus the implementation guide behind the design. The architecture is four layers:

  • Layer 0 — a typed command core that knows nothing about the GUI. Every mutation goes through a Command enum and a single dispatch. Destructive operations are confirmation-gated in the core, so no client — human or agent — can bypass the gate by going around the interface.
  • Layer 1 — a semantic registry. Every operable thing has a stable ID, a role, a description, its current value, and a JSON Schema contract for its actions. State diffs are computed automatically, so "what changed?" is a data question, not a screenshot comparison.
  • Layer 2 — an MCP server inside the app. Six domain tools and three generic widget tools, served on localhost with a per-launch auth token. It's hand-rolled on the Rust standard library plus serde_json — deliberately small enough to read end to end, because a starter kit you can't read is just a dependency.
  • Layer 3 — verification by state diff. Every action returns the diff it caused. There's a JSONL audit log tagged by origin (human/agent), and confirmation dialogs where the core demands them. The agent doesn't have to believe its click worked; it can check.

There's also a headless mode, --headless-smoke, which replays the whole snapshot → act → diff transcript with no display at all. On the verified source it passes 10/10:

[PASS] initialize returns serverInfo [PASS] tools/list returns 9 tools [PASS] snapshot contains item.2.quantity [PASS] act returns a diff showing quantity -> 25 [PASS] add_item created item 5 [PASS] run_analysis stored a report in state [PASS] remove without confirm is refused [PASS] confirmed remove returns a 'removed' diff [PASS] wait_for matched [PASS] audit log records agent provenance SMOKE RESULT: all checks passed 

My favourite line in there is "remove without confirm is refused." The agent tried to delete an item without confirmation, the core said no, and the transcript kept the receipt. That's the whole design in one test: the gate lives in the core, so it holds no matter which client is asking.

Verified the boring way

The sample was built and run for real: cargo build clean with zero warnings, tests 2/2, headless smoke 10/10 — and on 2026-12-05 the GUI was launched on a real Windows desktop and confirmed rendering as designed: the MCP endpoint and token on screen, the inventory table with items flagged LOW STOCK, autosave, the analysis action. Then it closed cleanly.

Two honest caveats, because a kit about verification should verify its own claims. First: no third-party MCP client has been connected to the sample yet — conformance is by construction and proven against the bundled smoke client, which exercises the same protocol paths. Second: the design is framework-independent (the guide includes a Slint mapping table and notes), but the sample code is egui only. There's no Tauri version in the box.

The honest fine print: the guide is in Japanese

The code is commented in Japanese and English, the README quickstart is in English — but the implementation guide itself (~27 KB, covering why screen operation loses, the reasoning behind the four layers, the Slint porting notes, a security checklist, and a pitfalls collection) is written in Japanese. If you read Japanese, it's the full design document. If you don't, the sample is complete and runnable and the architecture is legible from the code — but you should know before buying that the long-form prose is Japanese-only for now.

Licensing is split the way a starter kit should be: the sample code is MIT — incorporate it, modify it, sell it in your own products. The guide text is under a personal licence (yours to learn from, not to redistribute). A starter kit whose code you can't ship would be pointless.

What's inside

  • app/ — the complete Cargo project (cargo run and it starts): core.rs, registry.rs, mcp.rs, shared.rs, audit.rs, main.rs, smoke.rs, plus the smoke transcript
  • guide/GUIDE.md — the implementation guide (Japanese)
  • README.md — quickstart
  • Minimal dependencies: eframe, serde, serde_json. You need a Rust toolchain that builds egui/eframe 0.37, and an MCP client with Streamable HTTP support (stdio-only clients need a bridge — guide chapter 5)

Price

$19.99, one-time. Support is best-effort via the storefront for build/run questions about the sample as shipped; refunds follow the storefront's policy.

Where to get it

It's on Gumroad: Agent-Operable GUI Starter Kit

If you're building desktop software and your roadmap has "and then an agent uses it" anywhere on it, I'd rather hear about it now than read your coordinate-guessing horror story later. Which layer of this would break first in your app?