HyperAIHyperAI

Command Palette

Search for a command to run...

Agent
Perception

Don’t Sleep, Keep Watch: Proactive Perception for Computer-Use Agents

Jiaqi Su Jie-Jing Shao Yichen Liu Long-Kai Huang Haiyan Yin

Abstract

Computer-use agents (CUAs) built on vision–language models are increasingly entrusted with longhorizon 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 wallclock 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 eficient 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.

One-sentence Summary

Researchers from the National University of Singapore, A*STAR Centre for Frontier AI Research, SenseTime, and Hong Kong Baptist University propose NightWatch, a plug-and-play framework that endows any computer-use agent with continuous, temporally grounded perception via NightWatch-0.8B, a lightweight System-1 streaming monitor, reducing OSWorld non-reasoning wallclock time by 33%33\%33% and wasted time by 53%53\%53% while keeping task success on par, and raising DynaCU-Bench success from 39.5%39.5\%39.5% to 44.2%44.2\%44.2% with the large VLM agent.

Key Contributions

  • NightWatch is a plug-and-play framework that couples an unmodified vision-language computer-use agent with NightWatch-0.8B, a lightweight System-1 visual watcher, to provide continuous, temporally grounded perception of dynamic desktop and web interfaces.
  • The watcher performs streaming, frame-level monitoring and uses fixed thresholds to issue interrupts, voids, and wake signals, keeping the agent synchronized with the evolving screen without changing its model, prompt, or action space.
  • On OSWorld-Verified and DynaCU-Bench, NightWatch reduces non-reasoning wallclock 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 outperforms AOI, PUSV, and a System-1 decision model more than 30× its size.

Introduction

Computer-use agents built on vision-language models now operate real desktops, browsers, and phones, but most still rely on a reactive observe-reason-act loop with a fixed post-action sleep. Because screens change on their own through page loads, popups, notifications, and animations, this time-triggered loop leaves agents blind between screenshots, creates stale observations before dispatch, and uses hand-tuned delays that may capture half-rendered transitions or miss transient feedback. Recent methods such as AOI and PUSV watch frames passively or wait on DOM/text signals, but they do not let the screen decide when the agent should look or stop reasoning that has become obsolete. The authors propose NightWatch, a plug-and-play proactive perception framework that places a lightweight visual watcher in front of an unmodified agent. The watcher answers generic event questions from the frame stream, and deterministic rules turn its answers into interrupts, voids, and wake signals. NightWatch-0.8B is trained without benchmark data and reduces non-reasoning wall-clock time on OSWorld-Verified while maintaining success, and improves success on dynamic web tasks.

Method

The authors propose NightWatch, a lightweight watcher operating at the harness level between an unmodified Vision-Language Model agent and its environment. Instead of relying on a fixed time-triggered loop, the system introduces a proactive perception policy that dynamically decides when the agent should observe the screen and whether its ongoing reasoning or pending actions remain valid.

To monitor the environment efficiently, the watcher functions as a System-1 decision model that answers typed questions about the interface without generating a full reasoning trace. The visual context fed into the model at any given time comprises the agent's last observation, a recent frame, the current frame, a crop of the changed region, and the text of the pending action. The model evaluates a fixed, generic question bank covering four categories: change and stability, unexpected events, target validity, and action effects. During streaming inference, a pixel-level gate triggers evaluations only when the frame changes significantly, while a periodic probe monitors static loading screens. The visual encoder processes the context once per request to compute probability distributions over the answer options for the relevant subset of questions.

These probabilities are then passed to a proactive triggering module, which applies fixed thresholds to execute three specific interventions on the unmodified agent. First, an Interrupt mechanism monitors for new events, such as dialogs or page changes, during the agent's reasoning phase. If the probability of an event exceeds a threshold, the current generation is canceled and the step restarts from the updated screen. Second, a Void mechanism checks target validity right before action dispatch. If the target is occluded or lost, the pending action is discarded to prevent stale executions. Third, a Wake mechanism replaces the fixed delay after action execution with an online estimate of the screen's ready time. It combines a pixel-quiescence gate with the watcher's assessment of whether the stillness is final, waking the agent as soon as the interface settles.

The watcher is trained offline on decision points sampled from the trajectories of the unmodified agent. The training data includes frames captured during reasoning, right before dispatch, and at various delays after execution. The target labels are derived by combining the predictions of a larger teacher decision model with gold labels extracted from the recorded frame stream. For instance, gold labels indicate if a target remained unchanged or if no events occurred. For the settledness question, the authors employ a hindsight settledness label, which defines the ground truth based on future frames to determine if the screen truly stopped changing. The training objective minimizes a combination of cross-entropy and Brier score losses:

L(θ)=Ei∼D[CE(yi,pθ,i)+λ∥yi−pθ,i∥22]\mathcal{L}(\theta) = \mathbb{E}_{i \sim \mathcal{D}} \left[ \mathrm{CE}(y_i, p_{\theta, i}) + \lambda \| y_i - p_{\theta, i} \|_2^2 \right]L(θ)=Ei∼D​[CE(yi​,pθ,i​)+λ∥yi​−pθ,i​∥22​]

The Brier term is crucial for preserving the probability calibration required by the fixed thresholds in the proactive triggering module. A final temperature scaling is applied to ensure accurate thresholding across different applications.

Experiment

The experiments evaluate NightWatch on OSWorld-Verified desktop tasks and DynaCU-Bench dynamic web tasks using the same agent, prompt, action space, and step budget as time-triggered and passive-watching baselines, with both a large hosted VLM and a small open-weight VLM. NightWatch matches or improves task success while substantially reducing non-reasoning time, wasted time, premature observations, and stale actions, with the largest dynamic-web gains on live dashboards and other changing interfaces. Ablations confirm that the learned watcher is faster than pixel-rule and larger API-based schemes, that each intervention helps without harming success, and that judging stillness as final rather than waiting for pixel quiescence drives the savings. Cost results show end-to-end speedups with only minimal API cost increase, and qualitative cases illustrate how interrupt, void, and early wake interventions correct or accelerate agent behavior.

NightWatch maintains or improves task success while reducing loop overhead relative to time-triggered and passive watching baselines. With a large VLM agent, it cuts non-reasoning time by about a third and reduces idle, premature, and stale step shares by roughly half to three quarters. On dynamic tasks, it achieves the highest success among the compared methods while using the least reported non-reasoning time. With the large VLM agent on OSWorld-Verified, NightWatch reaches the lowest non-reasoning time while matching the best pass@3 and posting a higher mean success than Vanilla. It records the lowest waste, premature observation, and stale action shares in its block, with large relative reductions against the time-triggered baseline. On DynaCU-Bench, NightWatch attains the highest success rate among compared methods and the lowest reported non-reasoning time. Passive watching baselines can reduce some stale or premature actions but often increase loop overhead or lower dynamic-task success, whereas NightWatch avoids that trade-off.

NightWatch achieves the lowest end-to-end task time for both agents on OSWorld-Verified, with only a small amount of discarded generation and agent API cost close to Vanilla. In contrast, AOI adds notably higher API cost because keyframes increase input token counts per call. The watcher itself runs locally and does not add API calls. NightWatch is the fastest method for both tested agents, reducing total loop time by roughly a tenth versus Vanilla. Its discarded generation time remains only a few seconds per task, and its agent API cost stays within a few percent of Vanilla. AOI increases agent API cost by 37 to 52 percent relative to Vanilla because each call carries larger keyframe inputs. PUSV discards more generation time than NightWatch but remains closer to Vanilla in API cost than AOI.

Across control schemes, NightWatch-0.8B is the most effective, achieving the highest success rate, the lowest total time per task, and the lowest non-reasoning time. The other schemes show lower success and comparable or higher task times, with the much larger D3-27B incurring the greatest non-reasoning overhead. Switching the decision layer to pixel rules, fixed waits, or an API watcher does not match NightWatch's end-to-end performance. NightWatch-0.8B leads all compared control schemes in success rate, total time per task, and non-reasoning time. Fixed wait, pixel rules, Jev API watcher, and D3-27B all trail NightWatch, with D3-27B showing the highest non-reasoning overhead despite its larger scale. The results isolate the decision layer and show that the lighter NightWatch model provides more efficient control than fixed timing, pixel differences, API-based checks, or a larger FP8 decision model.

On DynaCU-Bench, removing any single intervention from NightWatch lowers success and increases task time. Interrupt removal causes the largest slowdown and the lowest success, while void removal sharply raises mismatched actions. Replacing wake with pixel quiescence also adds time without improving outcomes. Removing interrupt has the largest cost among the single-removal variants, with longer task time and the lowest success. Without void, mismatched actions rise from 3.6% to 15.9%, indicating that void suppression prevents stale targeted actions. Wake is the most frequently triggered intervention, firing on about half of steps, and replacing it with pixel quiescence slows tasks without matching full NightWatch.

The experiments evaluate NightWatch on dynamic benchmarks such as OSWorld-Verified and DynaCU-Bench against time-triggered, passive watching, fixed-wait, pixel-rule, API watcher, and larger decision-model baselines. NightWatch consistently improves or maintains task success while reducing loop overhead, end-to-end task time, idle and stale actions, and API cost compared to these alternatives. Ablations show that each intervention contributes to efficiency, with interrupt removal causing the largest slowdown and void removal increasing mismatched actions, confirming that the lightweight local watcher avoids the trade-offs of fixed or passive control schemes.


Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing

HyperAI Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp