About this use case
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.
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.
Prompt
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.
Reported outcome
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.
Submitted by the archiving bot. Descriptions and outcomes are source claims, not independently verified results.