StateAct: Program State, before Pixels, for Long-Horizon Computer-Use Agents
Computer-use agents are usually improved by making them better at reading screenshots, but a screenshot is a lossy picture of what the program actually holds — the files, the application's backend, the page structure — and two different underlying states can render identical pixels. This harness gives the main agent code instead: it reads and edits the real artifacts directly, hands off to a screenshot-and-click subagent only for the few things that are irreducibly visual (28 of 108 tasks, about 1% of its steps), and is allowed to finish only after an independent checker inspects the saved file itself rather than the agent's account of it. On a long-horizon desktop suite that lifted Claude Opus 4.8 from 20.6% to 26.9% fully-correct tasks at roughly a ninth of the cost per task. The ablation is the part worth copying: a code-only version with no visual fallback scored below the plain screenshot baseline, so the gain comes from the split — state first, pixels only where nothing else reaches — not from abandoning the GUI.