TL;DR
Current Computer Use Agents (CUAs) frequently fail at fine-grained tasks like placing a cursor between specific characters in dense code editors. This paper introduces a training-free, multi-turn iterative refinement framework that provides agents with visual feedback (a red cross-hair overlay of their previous attempt), allowing frontier models to self-correct and more than double their cursor-grounding accuracy.
What Problem Does This Paper Address?
While AI agents are becoming adept at coarse graphical user interface (GUI) tasks—like clicking large buttons or switching tabs—they struggle significantly with "editing-level" grounding. In dense development environments (IDEs) like VS Code or Cursor, an agent must achieve pixel-precise accuracy to insert text or modify code correctly. Missing a target by just a few pixels can mean editing the wrong variable or breaking syntax.
Traditional approaches rely on "single-shot" coordinate prediction, which gives the model one chance to hit the exact pixel without any mechanism for error correction. This paper investigates whether providing explicit, iterative visual feedback can help large multimodal models close this precision gap, mimicking how humans repeatedly adjust their mouse cursor based on visual feedback.
Methods
The authors propose a Multi-Turn Iterative Grounding Loop consisting of a target instruction and a refinement process over $T$ steps:
- Turn 1 (Initial Prediction): The agent receives a natural language instruction (e.g., "place the cursor between 'n' and 'a' in function") and the raw screenshot to predict the initial $(x, y)$ coordinate.
- Turns $t > 1$ (Visual Feedback Refinement): If the previous attempt misses, a visual marking function renders a semi-transparent red cross-hair centered on the failed coordinate. The agent is then fed this marked screenshot, the numerical coordinates of the last attempt, and the original instruction to calculate a corrected coordinate.
To systematically evaluate how models respond to this feedback, the authors tested four distinct system prompt strategies: Baseline, Baseline-CoT (Chain of Thought), Cursor-Aware (injecting text-caret description priors), and Visual-Anchor (prompting the model to scan vertically then horizontally using nearby characters as anchors).
Datasets
The authors introduced a purpose-designed data-collection pipeline (vscode-cursor-coords) to build a new capability-oriented benchmark.
- Size: 5,390 annotated samples.
- Composition: Balanced across two modern code editors sharing the Electron+Monaco stack (VS Code and Cursor), split between Dark and Light themes.
- Granularity: Targets are categorized into line-level (780 samples), word-level (1,092 samples), and character-level (3,518 samples) grounding tasks.
Key Insights and Ideas
- Iterative Refinement is "Capacity-Gated": Visual feedback acts as a multiplier rather than a standalone fix. Frontier closed-source models (Claude Opus 4.7 and GPT-5.4-Pro) leverage the visual feedback loop effectively to dramatically improve accuracy. However, smaller open-weight models (like Qwen-3.5-9B) remain near 0% accuracy across all turns, showing that a model must possess a baseline spatial prior before it can exploit error-correction signals.
- The Character-Level Bottleneck: Line-level and word-level grounding saturate quickly (often by Turn 2). Character-level placement—positioning a cursor precisely between sub-glyph boundaries—remains the dominant unsolved bottleneck for zero-shot models.
- Brittle Cross-IDE Generalization: Despite VS Code and Cursor sharing the exact same underlying Monaco rendering geometry, models perform drastically worse on Cursor. Claude Opus 4.7 achieved up to 90.2% accuracy on VS Code but capped out around 21.6% on Cursor. The failure mode wasn't imprecise clicking; the models failed to locate the editor pane entirely due to differences in the editor's surrounding UI ("chrome").
Key Results
- Claude Opus 4.7 saw massive improvements from iterative refinement, jumping from an initial accuracy of ~21-22% at Turn 1 to 48.1% by Turn 5 using the Baseline-CoT prompt.
- GPT-5.4-Pro experienced a similar upward trajectory, climbing from 11.1% to 41.2% under the same CoT setup.
- Specialized GUI Baselines Fail: Off-the-shelf models trained on general GUI elements (like GUI-Actor and GUI-G2) transferred poorly to this task, scoring below 6% overall accuracy because they are tuned for coarse region localization rather than sub-glyph precision.
- In-Domain Finetuning Wins: A lightweight, task-specific finetune of an open backbone (GTA1) achieved 55.63% overall accuracy in a single shot, outperforming the multi-turn configurations of frontier models on character-level precision (66.37% vs 41.8% for Claude).
Limitations and Future Work
The primary limitations acknowledged by the authors are:
- Scope of Environments: The benchmark is restricted to two Monaco-based IDEs (VS Code and Cursor).
- Visual Configurations: Evaluation was limited to standard Dark and Light themes at a fixed rendering resolution of $1280 \times 1024$.
Future Directions: The authors plan to expand dataset diversity across more varied IDEs and resolutions, treat cross-IDE generalization as a core evaluation metric, and explore combining the multi-turn visual refinement protocol directly with task-specific finetuning.
Summary updated