Towards AGI: The Technical Barriers of Computer-Use Agents

    This article breaks down what it takes to build a computer-use agent that operates real graphical interfaces through screenshots and mouse/keyboard actions. It explains the four required layers—perception, planning, execution, and reflection—along with evaluation strategies, engineering challenges around security, observability, cost, and data management, and a practical checklist for developers deploying these systems.

    1. From “Talking” to “Doing”: A Shift in Technical Paradigm

    Over the past two years, the narrative around large language models has mostly focused on text generation and code completion. The industry consensus is now shifting toward a more fundamental and harder problem: enabling models to use computers the way people do. A “computer-use agent” is a system that takes screenshots as input and produces mouse and keyboard events as output, completing end-to-end tasks within real graphical interfaces.

    The significance of this shift is that most enterprise software was never designed with automation interfaces. Financial systems, ticketing platforms, and internal approval tools often provide only a UI, with no open capabilities. Whoever can understand the screen and click accurately holds the key to long-tail automation. For this reason, focusing on “screen understanding” is an engineering-realistic choice.

    One clarification is needed: the phrase “entering the AGI era” is more of a narrative expression. The widely accepted industry benchmark is that a system can reliably complete complex tasks in diverse, non-preset environments and transfer across scenarios. Current agents perform well in controlled environments but remain clearly short of this standard.

    2. Capability Breakdown: The Four Layers of a Computer-Use Agent

    2.1 Perception Layer: Screen Understanding

    The core task is converting pixels into structured semantics: recognizing control types, text, icon states, and clickable regions. The difficulties include high-resolution scaling, multilingual interfaces, non-standard controls that are custom-drawn, and hierarchy ambiguity caused by overlapping pop-ups.

    2.2 Decision Layer: Task Planning

    This layer decomposes a natural-language goal into ordered sub-goals and selects an action at each step. A common approach is an “observe-think-act” loop, combined with history trajectory compression to prevent the context from growing linearly with the number of steps.

    2.3 Execution Layer: Action Grounding

    Decisions are mapped to clicks, text input, scrolling, dragging, and keyboard shortcuts. This layer must handle coordinate drift, unfinished animations, and loading delays; otherwise, “clicked but nothing happened” false failures occur.

    2.4 Reflection Layer: Verification and Fallback

    After each step, the system verifies whether the interface has entered the expected state and rolls back or switches paths on failure. Without this layer, long tasks will almost inevitably fail silently midway.

    A schematic loop skeleton is shown below:

    1. for step in range(max_steps):
    2. obs = capture_screen() # Perception: screenshot and control tree
    3. state = parse(obs) # Structuring: elements and states
    4. action = planner.act(goal, state, history) # Decision
    5. result = executor.run(action) # Execution
    6. if verifier.passed(goal, state, result):
    7. return success()
    8. history = compress(history, action, result) # Reflection and compression
    9. return fallback_or_escalate()

    3. Evaluation: Beyond Benchmark Scores

    Industry evaluations generally fall into two categories. The first tests “how accurately it sees”—whether the agent can locate the correct control position given an instruction. The second tests “whether it finishes”—placing the agent in a real system environment to run a complete workflow and measuring completion rate and time spent. The latter is more valuable because it exposes both planning and error-correction capabilities.

    From public trends, between two model generations, localization accuracy typically improves by around ten percentage points, end-to-end completion rate rises by a few percentage points, and time spent may drop by 30% to 50%. Such data suggests that efficiency optimization often changes usability more than accuracy gains do.

    Engineering deployment should not rely on a single aggregate score. A three-tier evaluation is recommended:

    • Unit level: single-step localization and click accuracy, for fast regression;
    • Workflow level: end-to-end task success rate across applications and windows;
    • Stability: variance across repeated runs of the same task; high variance means it is not production-ready.

    4. Deployment Challenges and Engineering Countermeasures

    Permissions and security are the first red line. An agent with real operational capability is equivalent to handing over terminal control, which must be constrained through least-privilege accounts, action allowlists, and secondary confirmation for sensitive actions.

    Observability comes next. It is recommended to write each step’s screenshot, structured state, action, and verification result into a unified logging service, paired with monitoring and alerting, so that “why the wrong thing was clicked” can be traced.

    The third issue is cost control. Screenshots and history are both high-consumption inputs; techniques such as tiered resolution, differential screenshots, and history summarization can compress them. Elastic compute can scale on demand via container platforms, while non-real-time tasks can be placed in message queues to smooth out peaks.

    The fourth is evaluation data management. Task scripts, expected states, and screenshot samples are well suited to object storage with versioning, ensuring reproducible regression.

    5. An Action Checklist for Developers

    1. Start with read-only, low-risk scenarios, such as information inspection and report transfer;
    2. Make “verification and fallback” solid first, then pursue longer task chains;
    3. Build a repeatable evaluation set and make launch decisions based on variance rather than a single run;
    4. Keep a human takeover channel and position the agent as a “copilot.”

    Overall, the maturing of screen understanding does expand the possibilities for general-purpose automation, but treating it as a production system still requires engineering work on permissions, observability, and stability. Baidu AI Cloud can provide foundational support for the deployment and operations of such agents through general capabilities such as container platforms, logging services, and monitoring and alerting.