General AI Agents in Production: From Screen Understanding to AGI

    This article explores the transition of general AI agents from conversational models to closed-loop execution systems capable of operating within real software environments. It covers why the screen serves as a universal interface, outlines a five-layer technical architecture for production-ready agents, and discusses evaluation, security alignment, and a progressive engineering path for developers.

    1. The Real Signal of Capability Leap: From Answering to Closed-Loop Execution

    The most notable progress of new general AI agents is not whether a single Q&A feels more human-like, but whether they can complete the closed loop of “observe-understand-plan-execute-verify” in real software environments. Screen operation capability is critical because it pushes the model’s capabilities, previously confined to chat windows, into internal business processes. The model doesn’t just tell the user “what to click”; it has the opportunity to perform clicks, inputs, queries, submissions, and verifications itself.

    However, there is still a clear gap between “being able to operate” and “being ready for reliable production use.” Demo environments usually have clear goals, stable interfaces, and short steps; production environments are full of pop-ups, permission checks, network jitters, UI redesigns, abnormal data, and cross-system dependencies. Therefore, we should view these capabilities rationally, not stopping at the slogan of “whether it looks like AGI,” but breaking it down into an engineering problem: how to make the agent stably complete tasks within controlled boundaries and exit safely upon failure.

    The core pipeline of a general AI agent can be abstracted as:

    Perceive interface state → Build structured understanding → Generate task plan → Select and execute action → Verify business result → Record and trace

    Instability in any part of this pipeline affects the final success rate. “Verifying results” is especially often underestimated: clicking a button doesn’t equal a successful submission, a page redirect doesn’t mean the data is correct, and the model saying “completed” doesn’t mean the business state is truly finished.

    2. Why the Screen May Become the “Most Universal Interface”

    Real-world software systems are highly heterogeneous. Many internal management systems, legacy business platforms, and vertical industry applications lack open APIs, may have missing documentation, and their maintenance teams might not provide timely adaptations. But they usually share one thing in common: a user interface. Since the UI is designed for human use, it naturally contains operable entry points, state feedback, and process constraints.

    Therefore, the significance of screen understanding is not just “recognizing images,” but transforming the GUI into a plannable and executable action space. It includes at least several capabilities:

    1. Element localization: Identifying buttons, input fields, menus, tables, pop-ups, and notifications, and understanding their semantic relationships, not just pixel positions.
    2. State understanding: Determining whether the current page is in a logged-in, editing, submitting, validation-failed, or completed state.
    3. Cross-application context: Extracting information across emails, documents, spreadsheets, and backend systems while maintaining consistent task context.
    4. Action selection: Deciding whether to click, input, scroll, drag, use shortcuts, or call existing APIs.
    5. Result verification: Using interface changes, business states, and constraints to determine if the task is truly completed.

    A more robust approach is usually not purely visual, but hybrid perception: prioritizing accessibility trees, UI semantic information, structured page elements, and system events; falling back to visual recognition when structured information is missing. This improves accuracy and reduces sensitivity to screen resolution, themes, and layout changes.

    It should be emphasized that UI operation is suitable as a “fallback adaptation layer,” not the first choice for all scenarios. For scenarios with existing stable APIs, batch processing tasks, or event stream capabilities, automation methods should be prioritized. The value of general AI agents lies in covering long-tail systems and cross-system processes, not replacing all underlying integrations.

    3. A Five-Layer Technical Architecture for Production

    To build a runnable system for screen-operating agents, it is recommended to design from five layers.

    1. Perception Layer: Turning the Screen into an Understandable State

    The perception layer needs to output structured UI descriptions, including element types, operable areas, text, control states, hierarchical relationships, and current focus. Visual input should be normalized, such as unified scaling, denoising, and recording screen size and theme information to reduce environment drift. Sensitive areas must be desensitized or masked to prevent privacy leaks in logs.

    2. Planning Layer: Breaking Business Goals into Executable Steps

    The planning layer should receive a clear task contract, including goals, inputs, allowed actions, failure conditions, human handover conditions, and expected results. For complex workflows, hierarchical planning should be adopted: break down into phase goals, then into action sequences, and allow dynamic replanning based on observations. Pre-conditions and post-conditions should be explicitly recorded in the plan to prevent the executor from “blindly clicking.”

    3. Execution Layer: Action Protocol and Idempotent Control

    Executing actions should not be directly exposed as arbitrary mouse coordinates. It is preferable to define a finite action set and unique business identifiers, and add idempotent controls for critical actions. For example, actions like submitting orders, sending notifications, or deleting records must have unique keys, pre-execution checks, and post-execution confirmations to prevent duplicate submissions.

    An abstract action protocol can be represented as:

    1. action: click
    2. target: order_submit_button
    3. precondition: form_validated == true
    4. constraints: require_approval_for_amount > threshold
    5. expected_state: order_status == submitted
    6. on_failure: stop_and_notify

    The key here is not the specific field format, but that “actions must carry conditions and expected states.” Without expected states, it is hard to determine success or failure.

    4. Verification Layer: Based on Business Results, Not Page Text

    The verification layer should prioritize checking business facts: whether data is written, whether the state transitions, whether notifications are sent, and whether amounts and quantities match. Interface-level checks can be supplementary, such as checking success prompts, error pop-ups, and page redirects, but cannot be the sole basis. For critical tasks, automatic assertions or manual reviews should be sampled proportionally.

    5. Governance Layer: Logging, Permissions, Replay, and Auditing

    Production systems must record complete execution trajectories: screen snapshots, structured states, model decisions, action parameters, execution results, time consumed, exceptions, and manual interventions. Sensitive information must be desensitized, and logs should have configured retention periods. Replay capabilities are not only for troubleshooting but also for evaluating behavior changes after model upgrades, ensuring new versions don’t silently alter critical business actions.

    4. Evaluation Cannot Rely on a Single Leaderboard

    Public evaluations can reflect some capabilities, such as UI element localization, completion rates of real desktop tasks, and complex operation abilities in terminal environments. But production decisions cannot rely solely on a single score. A more reasonable evaluation system should cover the following dimensions:

    • Task success rate: The proportion of one-time passes in target scenarios, and the final success rate after retries.
    • Step efficiency: The number of actions, time consumed, and computational cost required to complete similar tasks.
    • Stability: Performance under repeated execution of the same task, minor page changes, and network latency.
    • Exception recovery ability: Whether it can safely exit or request manual handling when encountering pop-ups, insufficient permissions, or missing data.
    • Security violation rate: Whether it accesses unauthorized areas, leaks sensitive information, or executes high-risk actions.
    • Explainability and auditability: Whether the cause can be located, the process replayed, and the issue reproduced after a failure.

    Enterprises should build their own scenario matrices: pilot high-frequency, stable, low-risk tasks first; open cross-departmental, highly compliant, high-value, or irreversible actions last. Public evaluations provide a horizontal understanding of capability boundaries; internal evaluations determine whether it can go live.

    5. Safety and Alignment Should Be Implemented as Runtime Constraints

    “Alignment” should not only exist in model documentation but must be implemented as system-level constraints. There are at least four types of measures:

    1. Least privilege: Use independent accounts and minimal authorization to prevent agents from using personal primary accounts or overly privileged credentials.
    2. Sandbox isolation: High-risk operations are executed in isolated environments, and sensitive data is injected through controlled channels, not entering the model context or logs.
    3. Action approval: Irreversible actions such as transfers, deletions, publications, authorizations, and batch modifications require manual confirmation or multi-factor verification.
    4. Prompt injection protection: Content from web pages, documents, and messages should be treated as untrusted input and not directly executed as system instructions. Hard limits should be set on access scope, callable actions, and output channels.

    Additionally, a manual handover mechanism should be retained. A mature agent system is not one that never fails, but one that can stop, explain clearly, roll back when it fails, and keep the impact within an acceptable range.

    6. A Progressive Path for Engineering Implementation

    It is recommended to adopt a progressive route of “Assist-Approve-Controlled Automation-High Autonomy”:

    • Phase 1: Assistive operation. The agent provides step suggestions, and humans execute and correct them.
    • Phase 2: Approve execution. The agent completes preparation and pre-operations, waiting for confirmation for high-risk steps.
    • Phase 3: Controlled automation. It runs automatically under fixed scenarios, fixed permissions, and clear rollback conditions.
    • Phase 4: Expanded autonomy. Increase autonomy only for long-term stable tasks where exceptions are identifiable and risks can be isolated.

    In terms of infrastructure, control planes can be built using general task queues, container platforms, object storage, logging services, monitoring alerts, and secret management capabilities. Task executors should have timeout, retry, circuit breaking, rate limiting, and isolation capabilities; monitoring metrics should at least cover success rate, failure cause distribution, manual handover rate, average time consumed, and cost. Model calls, screen captures, and action trajectories should be subject to tiered storage and desensitization.

    7. Implications for Developers

    Advances in screen understanding capability do not mean developers can simply plug in a model to achieve reliable automation. On the contrary, system design becomes even more important. Future truly competitive capabilities may include: business process-oriented task contract design, hybrid adaptation of interfaces and APIs, automatic verification of execution results, permission and audit systems, and low-cost manual handover processes.

    For enterprises, a more pragmatic criterion is: can this capability reduce repetitive labor, shorten process times, and lower human errors within clear boundaries, without amplifying risks upon failure. Whether AGI has arrived is not a question that can be concluded by a single release; but it is certain that general AI agents capable of stably connecting to the digital world, understanding interfaces, and safely executing tasks are pushing automation from “writing scripts” to a new stage of “understanding goals and completing the loop.” Developers should start with a small and clear scenario, establish evaluation, governance, and replay capabilities, and then gradually expand the scope of autonomy.