AI Services Market › Use cases › Software & DevOps
Software & DevOpsDone with Claude Code, Claude Nov 17, 2026
Build and test an image editor with agent-driven headless GUI
A developer had Opus build an image editor and a Sonnet subagent test it via a headless sway setup with scripted mouse and keyboard input, catching most bugs; manual checks were still needed. · Nov 17, 2026
- What They Did
- The developer hand-wrote scripts so the agent could drive the app headlessly: a headless sway instance, a daemon using Wayland virtual keyboard and mouse protocols via a unix socket, and bash glue. Commands (start, screenshot, mouse move/click, type) were documented in claude.md. Opus built the editor; a Sonnet subagent did interactive testing. The developer specified how each tool and panel should work.
- How It Went
- Testing was mostly automatic and Sonnet caught most bugs itself. The developer still did a cursory manual check, since headless sway differs from a real desktop environment with KDE's platform theme.
- Worth Knowing
- Scripted input mocking was far more reliable than the accessibility API route (pyatspi2) tried first; a Sonnet subagent also cut cost and avoids inheriting Opus's long context.
Try it yourself with Claude Code
Build a small [type of GUI app, e.g. image editor] in this folder using [language/toolkit]. Then set up a headless display environment, such as a headless Wayland compositor, and have a separate subagent test the app by scripting mouse and keyboard input and taking screenshots. Fix every bug the tester finds, repeat until a full test pass finds no new problems, and give me a list of things you could not verify so I can check them by hand.