Computer-use agents (CUAs) built on vision-language models are increasingly entrusted with long-horizon tasks in live desktop, web, and mobile environments, where the screen keeps changing on its own. However, current CUAs lack real-time situational awareness: they perceive the environment through discrete snapshots, and the substantial inference latency of VLMs, compounded by highly dynamic interfaces, opens a perception-action gap in which the observed state frequently becomes stale before the corresponding action is executed. To bridge this gap, we present NightWatch, a plug-and-play framework that endows any CUA with continuous, temporally grounded perception without changing the agent's model, prompt, or action space. NightWatch couples the VLM agent with NightWatch-0.8B, a lightweight System-1 model that performs streaming monitoring of the interface state and keeps the agent synchronized with the evolving environment at low computational cost and latency, thereby grounding each decision in the current state rather than an outdated snapshot and reducing both stale actions and idle waiting while preserving task success. Experiments on desktop and dynamic web environments (OSWorld-Verified and DynaCU-Bench) show that NightWatch, driven by a watcher of only 0.8B parameters, reduces non-reasoning wall-clock time by 33% and wasted time by 53% on OSWorld while keeping task success on par, raises success on DynaCU-Bench from 39.5% to 44.2% with the large VLM agent, and is more efficient than passive-watching baselines such as AOI and PUSV under the same screenshot-only input, as well as a System-1 decision model more than 30× its size. Overall, NightWatch demonstrates that the timing of perception is as critical as its content, marking a step toward agents that maintain continuous awareness of their environment rather than perceiving it turn by turn.
Figures & tables
Figure 1: Observation and execution control in computer-use agents. (a) Fixed scheduling. Reasoning continues after a dialog appears, and fixed waits continue after the page is ready. (b) Passive watching. Buffered frames inform later observations, while pre-dispatch checks can reject actions after reasoning completes. (c) Proactive perception. NightWatch combines a 0.8B System-1 watcher with threshold rules to interrupt reasoning, void pending actions, and end post-action waits based on estimated interface state. (d) OSWorld-Verified results. NightWatch reduces non-reasoning time by 33% and the wasted-time share from 16.3% to 7.7% at comparable success with the same agent.
Figure 2: Overview of NightWatch . Left: the screen is watched as a stream, and NightWatch-0.8B reads a visual context built from recent frames and the pending action and answers every question of a fixed, generic bank with a probability. Middle: in proactive triggering, fixed thresholds turn these probabilities into three interventions on an unmodified agent: interrupt its reasoning when a new event appears, void a pending action whose target is lost, and wake it as soon as the screen settles. Right: NightWatch-0.8B is trained offline on decision points from the agent’s trajectories, with teacher, gold, and hindsight labels and a calibration-preserving objective.
OSWorld-Verified
DynaCU-Bench
Method
Paradigm
Succ. ↑
pass@3 ↑
Non-reas. (s) ↓
Waste (%) ↓
Prem. (%) ↓
Stale (%) ↓
Succ. ↑
pass@3 ↑
Non-reas. (s) ↓
Large VLM agent: MiMo-V2.6-Flash
Vanilla
Time-triggered
66.3 ± 4.5
82.0
197.4
16.3
9.6
17.4
39.5 ± 4.2
53.1
–
AOI Li and Shi [2026]
Passive watching
63.0 ± 3.6
78.0
266.4
19.8
3.5
8.9
37.4 ± 4.2
55.1
–
PUSV Xu [2026]
Passive watching
67.3 ± 0.6
81.0
218.6
14.8
7.1
12.2
33.3 ± 4.2
49.0
46
NightWatch (Ours)
Proactive watching
68.0 ± 3.6
82.0
132.7 ( − 33%)
7.7 ( − 53%)
2.6 ( − 73%)
8.3 ( − 52%)
44.2 ± 5.1
53.1
30
Table 1: Main results on OSWorld-Verified (100 tasks) and DynaCU-Bench (49 dynamic tasks) with two unmodified agents and screenshot-only input. Succ.: success averaged over three runs (mean ± std); pass@3: share of tasks solved in any run; Non-reas.: wall-clock time per task outside agent LLM calls; Waste: share of loop time that is idle, premature, or stale; Prem./Stale: share of executed steps with a premature observation or a stale action. Green subscripts: relative reduction against Vanilla. ↑ / ↓ : higher/lower is better. Within each agent block, the best result in each column is bold with a teal background, the second-best distinct value has a gray background, and ties receive the same formatting. –: not measured.
Figure 3: Results at a glance for the large VLM agent. (a) Success against non-reasoning time per task on OSWorld, with error bars showing the standard deviation over three runs. (b) Share of steps with a premature observation or a stale action on OSWorld. (c) Success by task category on DynaCU-Bench (number of tasks in parentheses, with the two single-task categories omitted).
MiMo-V2.6-Flash
Qwen3.8-27B
Method
Total ↓
Disc. ↓
API ↓
Total ↓
Disc. ↓
API ↓
Vanilla
666.0
0.0
2.10
701.9
0.0
1.48
AOI
789.1
0.0
3.18
686.1
0.0
2.02
PUSV
700.7
15.0
2.21
676.9
25.6
1.55
NightWatch
614.7
2.5
2.16
625.4
4.5
1.45
Table 2: End-to-end cost per task on OSWorld-Verified (300 runs). Total: loop time (s); Disc.: discarded generation (s); API: agent API cost (US cents), counting interrupted calls.
Figure 4: Success against agent API cost and non-reasoning time on OSWorld-Verified with MiMo-V2.6-Flash (means over three runs; the standard deviations are in Table 1 ). The shaded region is dominated by the baselines’ Pareto front.
Figure 5: One intervention of each kind from the runs of Table 1 with MiMo-V2.6-Flash. Top: the screenshot the agent reasons on; bottom: the screen when NightWatch intervenes. Interrupt: a second server turns red while the agent is reasoning about the first. Void: the swatches rotate before the click on the cyan one is dispatched (red circle: click point), so the click is discarded. Wake: a terminal command returns, and the agent observes the result 1.1 s later.
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
ID
Question
R
D
E
A: Change and stability
still_changing
Compare ⟨ recent ⟩ (taken about half a second earlier) with ⟨ now ⟩ . Is the screen still in the middle of changing: an animation, a transition, scrolling, or content that is still being drawn?
✓
loading
Does ⟨ now ⟩ show that something is still loading: a spinner, a progress bar, a busy cursor, placeholder blocks, or ‘Loading’ text?
✓
change_kind
⟨ crop ⟩ is a close-up of the part of ⟨ now ⟩ that just changed. What kind of change is it?
✓
✓
B: Events that make any plan stale
dialog
Compared with ⟨ seen ⟩ , does ⟨ now ⟩ show a new pop-up window, dialog box, permission request or system prompt covering part of the interface?
✓
✓
✓
Appendix
Table 5: Question bank. Text as sent to the watcher, where ⟨ x ⟩ denotes an image role of Table 6 . R, D, and E mark the checkpoints that ask the question: during reasoning, before dispatch, and after execution. The answer that fires is “yes”, except for target_present , which fires on “no”.
Role
Description
During reasoning
⟨ seen ⟩
the screenshot the agent is currently reasoning about
⟨ now ⟩
the current screen
⟨ crop ⟩
a close-up of the region of the current screen that changed
Before dispatch
⟨ seen ⟩
the screenshot the agent based its next action on
Appendix
Table 6: Image roles of each checkpoint, in the order they are sent to the watcher.
Symbol
Role
Value
τI
interrupt on Sevt (dialog, error, page change)
0.5
τV
void on Sval (target gone, occluded, or changed; new dialog)
0.8
τW
wake when the screen is settled
0.99
τL
block waking while loading
0.5
–
ignore a change classified as benign
0.6
tmin
minimum quiet time before a wake check
0.3 s
Appendix
Table 7: Hyperparameters of the intervention rules.
Category
Vanilla
AOI
PUSV
Ours
Chrome (9)
74.1
70.4
74.1
74.1
GIMP (9)
74.1
85.2
81.5
92.6
LibreOffice Calc (11)
72.7
66.7
75.8
75.8
LibreOffice Impress (16)
58.3
47.9
64.6
54.2
LibreOffice Writer (8)
75.0
75.0
87.5
75.0
Multi-application (26)
59.0
53.8
52.6
59.0
Appendix
Table 8: Success (%) by domain on OSWorld-Verified with MiMo-V2.6-Flash (avg@3); parentheses give the number of tasks.
Category
Vanilla
AOI
PUSV
Ours
Meetings (1)
33.3
100.0
66.7
66.7
Videos (8)
37.5
29.2
33.3
37.5
Carousels (10)
23.3
23.3
26.7
30.0
Dashboards (9)
70.4
66.7
51.9
81.5
Transient notif. (10)
36.7
36.7
20.0
33.3
Collab. editing (1)
100.0
66.7
100.0
100.0
Appendix
Table 9: Success (%) by category on DynaCU-Bench with MiMo-V2.6-Flash (avg@3); parentheses give the number of tasks.
Wake rule
Non-reas. ↓
Total ↓
Pixel quiescence
179.8
770.8
NightWatch-0.8B (ours)
113.1 ( − 37%)
611.5 ( − 21%)
Appendix
Table 10: NightWatch against a pixel-only variant on OSWorld-Verified with MiMo-V2.6-Flash (one run, s per task).
SWE-agent established the action interface as an underexplored design axis for software-engineering agents; we make the analogous case for the observation interface in computer-use (CU) agents. Current CU agents, closed and open-source alike, tie observation to action--one screenshot every 3-5 s, no audio--leaving them blind and deaf between screenshots to video, animations, transient UI events, meetings, and spoken instructions. We introduce the Agent-Computer Observation Interface (AOI), a model-agnostic perception layer that decouples continuous, adaptive observation from discrete actions through three gated components: inter-step keyframe capture, volume-gated audio transcription, and CU-model-generated visual narration that persists as text. Each produces almost nothing on static, silent content, reducing to the standard loop without degrading it. On DynaCU-Bench (100 dynamic browser tasks plus a 50-task static control), CU models from 7B to frontier scale gain +17 to +48 pp over their screenshot baselines with zero retraining, turning tasks that are near-impossible from periodic screenshots into largely solved ones. The gap is starkest on audio: on a spoken-content subset AOI agents solve every task, whereas streaming voice models hear accurately but cannot act on what they hear without the scaffold. The decomposition is as informative as the headline gain: keyframe selection turns out not to matter--the value comes from narrating captured frames into persistent text--and the interface is not a fixed bundle, since on a newer model (Gemini 3 Flash) the keyframe stream actively regresses through image-token dilution, so its components must be selected per model rather than shipped as one configuration.
Native computer use offers a general interface for agents to operate almost any software available to people, but requires long-horizon state tracking, large-scale interactive experience, and learning from sparse yet verifiable outcomes. We introduce Qwen-CUA, a native computer-use agent with a 397B-A17B Qwen mixture-of-experts backbone. It observes only screenshots and acts through keyboard and mouse events, without DOM trees, accessibility metadata, or task-specific APIs. Its scaffold maintains up to 20 active screenshots and folds older visual history in fixed-size blocks to retain recent evidence while preserving reusable prompt prefixes. For training, we build a cloud rollout fleet with access to nearly 100,000 vCPUs and tens of thousands of concurrent environments, construct approximately 40,000 verifiable tasks, and collect personalized long-horizon workflows across everyday and professional software. We optimize complete trajectories with verifiable rewards and trajectory slicing, while iterative training runs refresh supervised data and recalibrate reinforcement-learning tasks. Across eight benchmarks, Qwen-CUA outperforms Qwen3.7 and remains competitive with leading proprietary systems, reaching 86.2 on OSWorld-Verified and 18.5/48.4 binary/partial completion on OSWorld 2.0. Scaling the same recipe to a model with over one trillion parameters yields Qwen-CUA-Max, improving these scores to 87.6 and 21.2/53.3. Qwen-CUA also reduces RedTeamCUA attack success from 36.6 to 16.4 relative to Qwen3.7. Efficiency analyses, a browser deployment, and Bash-augmented experiments further characterize practical behavior. These results establish native computer use as a broadly capable agent foundation and highlight scalable verifiable interaction and hybrid tool use as key directions.
Computer-using agents (CUAs) act directly on graphical user interfaces, yet their perception of the screen is often unreliable. Existing work largely treats these failures as performance limitations, asking whether an action succeeds, rather than whether the agent is acting on the correct object at all. We argue that this is fundamentally a security problem. We formalize the visual confused deputy: a failure mode in which an agent authorizes an action based on a misperceived screen state, due to grounding errors, adversarial screenshot manipulation, or time-of-check-to-time-of-use (TOCTOU) races. This gap is practically exploitable: even simple screen-level manipulations can redirect routine clicks into privileged actions while remaining indistinguishable from ordinary agent mistakes. To mitigate this threat, we propose the first guardrail that operates outside the agent's perceptual loop. Our method, dual-channel contrastive classification, independently evaluates (1) the visual click target and (2) the agent's reasoning about the action against deployment-specific knowledge bases, and blocks execution if either channel indicates risk. The key insight is that these two channels capture complementary failure modes: visual evidence detects target-level mismatches, while textual reasoning reveals dangerous intent behind visually innocuous controls. Across controlled attacks, real GUI screenshots, and agent traces, the combined guardrail consistently outperforms either channel alone. Our results suggest that CUA safety requires not only better action generation, but independent verification of what the agent believes it is clicking and why. Materials are provided\footnote{Model, benchmark, and code: https://github.com/vllm-project/semantic-router}.
Xunzhuo Liu, Bowei He, Xue Liu +3
vLLM Semantic Router Project · MBZUAI · McGill University +2