StateAct: Program State, before Pixels, for Long-Horizon Computer-Use Agents
Reading guide · Based on sections of the original paper
Why read this
Practitioners building desktop agents can use it to judge whether a code-first harness gives a better accuracy–cost tradeoff than a pixel-driven loop on the same model.
What the authors found
- On OSWorld 2.0 (108 tasks) with the Claude Opus 4.8 backbone, StateAct beat the same model in the reference computer-use harness. It added 6.3 points of binary success (20.6→26.9%) and 6.8 points of mean partial score (54.8→61.6%). The authors report cost per task falling from about $72 to about $7.8. The $72 reference figure is attributed to the benchmark authors. 5.2 Main result
- In one-at-a-time ablations, removing act-on-state cut partial score to 51.3%, below the 54.8% reference. Disabling the finish gate gave 57.5%, and removing context management gave 58.7%. The authors read this as code-first state action being the largest single contributor. Component sensitivity (Table 3 a).
- Gains depend on task length and scaffolding. On short-horizon OSWorld-Verified, StateAct roughly matched the reference (78.4 vs 77.3% binary). A bash-only variant reached only 45.9% partial on OSWorld 2.0. 5.4 Additional designs
Main limitation
The finish gate checks structure, not values. It wrongly passed 68 of the 76 non-perfect tasks that reached it. A manual audit attributes 38 of 79 failures to reasoning errors, which the harness does not address. The verifier’s ceiling.
Where to start
6.2 Is a strong GUI subagent necessary? · Shows whether a compact 31B GUI subagent can replace the frontier model. It matches on four benchmarks but falls to 43.2% partial on OSWorld 2.0.
Abstract
Computer-use agents are usually improved by strengthening perception: better models for reading a screenshot and choosing where to click. Yet a screenshot is only a lossy rendering of the underlying program state, e.g., the files, application backends, and DOM that hold the task data. Different states can produce the same pixels, while code can inspect and modify that state directly. StateAct is a code-first, multi-agent harness built around this distinction. Its main agent works directly with program state by using code, while a dedicated GUI subagent handles screenshot-and-click interaction on the few subgoals that need it, just 28 of 108 tasks and 1.1% of main-agent steps. The same direct access to program state also supports verification: an independent finish gate double-checks the saved result for structural failures, e.g., output that is missing, unsaved, or written to the wrong path. To stay on track over hundreds of steps, the main agent hands subgoals to fresh subagents, keeping its own context focused. On OSWorld 2.0, StateAct lifts Claude Opus 4.8 from 20.6% to 26.9% on binary success, and from 54.8% to 61.6% on partial success, at ~ 9x lower cost per task than the same model driven by screenshots alone; a code-only variant with no GUI subagent reaches only 45.9% partial, below that screenshot-based baseline's 54.8%. In general, grounding action, verification, and memory in state, what we call state-grounding, shifts the main bottleneck from perception toward reasoning: failures depend more on what the agent thinks than on what it sees.