The Next Leap in General-Purpose AI Agents: Capabilities and Engineering Practices

    This article examines the shift in general-purpose AI agents from generating code to operating computers through the user interface. It breaks the capability into three measurable dimensions—screen understanding, end-to-end task completion, and terminal-level abstract reasoning—and explains why "the interface is the API" is the right direction for enterprise automation. It then outlines a five-layer reference architecture, guidance on building an internal evaluation system, the cost-latency-stability trade-off, security and governance requirements, and the role of general-purpose cloud services in filling engineering gaps.

    1. Introduction: The Center of Gravity Is Shifting

    A clear change has emerged in recent industry discussion: the focus of new-generation general-purpose AI agents has moved from “writes code more accurately” to “operates a computer like a human.” This is not marketing language but a precise response to real enterprise environments—the vast majority of business systems expose no programmable interface, so the UI has become the only stable, universal, and broadly applicable interaction contract.

    Rather than repeating benchmark scores for any specific product, this article abstracts these capabilities into three measurable technical dimensions and presents methods for engineering them into production.

    2. Three Capability Dimensions: From “Seeing” to “Finishing” to “Reasoning”

    2.1 Screen Understanding: Localization Accuracy Sets the Usability Ceiling

    Screen-understanding evaluations typically measure two things: whether the model can recognize the semantics of UI elements, and whether it can produce accurate click coordinates. The significance of scores rising from the seventies to the nineties lies not in the numbers themselves, but in turning “occasional success” into “reliable usability.”

    Engineering practice requires understanding the error structure:

    1. total failure rate ≈ element recognition errors + coordinate localization drift + state misjudgment

    Once localization drift is pushed very low, the remaining failures come mainly from state misjudgment—the page has changed, but the model still acts on the old state. Practice therefore requires a post-action check rather than blindly clicking in sequence.

    2.2 End-to-End Task Completion Rate and Latency: The Real Production Metrics

    Placing an agent in a real desktop environment to execute complete tasks tests long-chain stability. Two metrics matter here: completion rate and average elapsed time. A completion rate rising from the low seventies to the mid-seventies while elapsed time is cut nearly in half indicates that the gain comes from “fewer wasted trial-and-error steps,” not from “faster clicking.”

    Success rates for long-chain tasks decay with the number of steps, which can be approximated as:

    1. # p_step: per-step success rate; n: number of steps in the task
    2. p_step = 0.98
    3. n = 40
    4. print(p_step ** n) # ≈ 0.446, showing that 98% per step is not enough

    The conclusion is direct: supporting tasks of 40 steps or more requires per-step reliability approaching 99.9%, which can only be compensated for by state validation and failure rollback on the environment side.

    2.3 Terminal and Abstract Reasoning: From Execution to Planning

    Terminal-oriented evaluations cover composite tasks such as software development, system configuration, and data analysis, measuring the “plan–execute–debug” loop. Abstract reasoning evaluations are closer to pure pattern induction and serve as an important signal of whether an agent can transfer to an entirely new rule environment. Combined, they mean the agent is not merely a skilled operator but also has some capacity to adapt to unfamiliar environments.

    3. Why “The Interface Is the API” Is the Right Direction

    • Coverage: all software has a UI, while only some software provides an API.
    • Cost: no need to wait for vendor integration; the effort drops from “system integration” to “configuration and prompting.”
    • Long tail: many internal systems lack documentation and their maintainers have left, making the UI the only reliable source of information.

    The costs are equally clear: interfaces are brittle, latency is high, concurrency is limited, and observability is poor. UI automation should therefore not replace APIs but complement them, forming a dual-channel architecture of “API first, UI as fallback.”

    4. Engineering Implementation: A Five-Layer Reference Architecture

    1. Environment abstraction layer: unify desktop, browser, and terminal into a standard action set (observe, click, type, wait, assert).
    2. Sandbox and permission layer: run with least privilege, require secondary confirmation for sensitive operations, and prohibit unauthorized access.
    3. Orchestration and recovery layer: task decomposition, checkpoint saving, failure rollback, and retry limits.
    4. Evaluation and regression layer: build an enterprise-owned task set and run continuous regression to prevent capability regression.
    5. Observability and cost layer: full-chain logging, trajectory replay, and token and elapsed-time cost accounting.

    An illustrative action protocol:

    1. {
    2. "action": "click",
    3. "target": {"type": "text", "value": "Submit"},
    4. "post_check": {"type": "assert_visible", "value": "Submission successful"},
    5. "on_fail": "rollback_to_checkpoint"
    6. }

    5. Building an Evaluation System: Don’t Rely Only on Public Leaderboards

    Public leaderboards answer “can it work”; enterprise evaluation answers “dare we ship it.” A four-quadrant breakdown by task frequency and risk is recommended: automate high-frequency, low-risk tasks first, and keep a human gate for high-risk tasks. Metrics should include at least first-pass rate, average number of steps, average elapsed time, human takeover rate, and cost per task.

    6. The Cost, Latency, and Stability Triangle

    • Cost: tiered scheduling—simple steps go to smaller models, complex planning goes to stronger models.
    • Latency: observe in parallel, cache UI structure, and reduce unnecessary screenshots.
    • Stability: pin runtime environment versions, lock resolution and dependencies, and make operations idempotent.

    7. Security, Compliance, and Governance Red Lines

    Least privilege, operation trails, masking of sensitive data, read-only by default in production, and dual review for critical actions. All automation trajectories should be replayable to support auditing and clear accountability.

    8. Cloud Support: Filling Engineering Gaps with General-Purpose Capabilities

    On Baidu AI Cloud, container platforms can host sandboxed runtime environments, object storage can hold task trajectories and screenshots, message queues can smooth task peaks and enable asynchronous scheduling, logging and monitoring with alerting can close the observability loop, and identity and access management can enforce least privilege. All of these are general-purpose capability categories and involve no proprietary interfaces.

    9. Conclusion

    The real breakthrough of new-generation general-purpose AI agents is expanding the interaction surface from “API” to “interface” and advancing capability from “generation” to “completion.” For enterprises, the deciding factor is not model selection itself but the maturity of environment standardization, the evaluation loop, and the governance system. Making these three solid before discussing large-scale deployment is the sound path.