Agent Operating Systems: Technical Paths to Replace UI Operations with Agents

    This article explores the Agent Operating System, a software paradigm where AI agents replace traditional UI operations to execute tasks. It outlines the core architecture, including models, execution frameworks, and tools, and proposes a five-layer reference design. Key engineering practices such as traceable execution, UI automation, remote execution stability, and sub-agent orchestration are detailed. Finally, it covers implementation strategies, evaluation metrics, risk governance, and organizational adaptations required for adopting agent-driven workflows.

    1. Background: Why Interfaces Become Efficiency Bottlenecks

    Traditional software is centered around graphical user interfaces (GUIs). Users must memorize menu hierarchies, button locations, and form parameters to complete a business action. Cross-system workflows, such as compiling reports, verifying orders, or summarizing tickets, often require frequent switching between multiple pages. The more complex the interface, the higher the learning curve, operational error rate, and manual effort consumed by repetitive tasks.

    Over the past year or two, Large Language Models (LLMs) have significantly improved in intent understanding and task planning. This makes a new interaction paradigm viable: users describe their goals in natural language, and the agent autonomously decomposes the steps, invokes tools, checks intermediate results, and finally returns the deliverables. The interface is no longer the sole entry point; it gradually transitions into an auxiliary layer for monitoring progress, approving critical actions, and viewing results.

    2. Concept Definition

    An Agent Operating System refers to a software system form where the agent acts as the execution subject, the Harness serves as the hosting environment, and general tools form the capability base, replacing some traditional UI operations. It comprises three elements:

    1. Model: Understands user intent, plans steps, and generates the next action.
    2. Execution Framework (Harness): Manages context, schedules tools, validates permissions, saves state, and handles errors and retries.
    3. Tools and Environment: Callable capabilities such as file systems, web access, application UIs, databases, and messaging channels.

    This paradigm does not mean eliminating the interface. The UI remains the window for human-system interaction, but its responsibility shifts from an “operation entry point” to a “supervision and confirmation entry point.”

    3. Reference Architecture Layers

    It is recommended to split the system into five layers to facilitate independent design, testing, and replacement of each component:

    • Interaction Layer: Natural language input, task status display, and manual approval nodes.
    • Orchestration Layer: Task decomposition, sub-task assignment, and dependency management.
    • Execution Framework Layer: Session management, context compression, tool registration and invocation, timeout, and retry.
    • Capability Layer: General capabilities like file processing, web scraping, UI automation, code execution, and data querying.
    • Governance Layer: Permission validation, operation auditing, data masking, and execution trace storage.

    The governance layer must be integrated into the design early on. Once an agent possesses actions like writing, sending, or changing configurations, permission control and audit logs become prerequisites for system usability.

    4. Five Key Capabilities and Engineering Essentials

    4.1 Traceable Execution Process

    Every model invocation, tool input/output, latency, and error should be structurally recorded. The trace is the foundation for debugging, post-mortem analysis, and auditing, as well as the basis for users to build trust. During storage, indexes should be built by task, user, tool, and time to quickly locate problematic steps.

    4.2 Referencable Sessions to Reduce Secondary Summarization

    In traditional collaboration, executors often need to write summaries for others to take over, which leads to information distortion. If each task session has a stable identifier, team members can directly reference that session to read the complete context and execution process. This reduces information loss and provides a solid basis for post-mortems.

    4.3 UI Automation

    Through screenshot recognition, accessibility attribute reading, or control locating, agents can perform clicks, inputs, and assertions on desktop or mobile applications. Testing scenarios are an early landing direction: agents operate the UI according to test cases, progressively saving screenshots and results, and output reproduction paths upon failure. UI revamps cause locating to fail, so stable element locating strategies and a limited number of retry mechanisms are required.

    4.4 Remote Execution Stability

    Long-running tasks usually operate in remote environments where network jitter directly impacts results. Common practices include: using heartbeats to detect connection status; resuming from the latest checkpoint after disconnection rather than executing from scratch; designing tool calls to be idempotent to ensure retries do not duplicate data writes; and storing task state and connection state separately so task progress is preserved when a connection drops.

    4.5 Sub-Agent Division of Labor

    Split large tasks into independent sub-tasks processed in parallel by different agents, while the main agent aggregates results and detects conflicts. Each sub-agent should have clear inputs, outputs, and toolsets to prevent multiple agents from modifying the same file simultaneously or repeatedly calling the same external API. The clearer the division of labor, the more stable the benefits brought by parallelization.

    5. Control Flow of the Execution Framework

    The pseudo-code below demonstrates a task loop with manual approval and error handling. The interface names are fictional and for illustrative purposes only:

    1. def run_task(goal, planner, tools, trace, max_steps=30):
    2. state = {"goal": goal, "history": []}
    3. for step in range(max_steps):
    4. action = planner.next_action(state)
    5. trace.record(step, action)
    6. if action.type == "finish":
    7. return action.result
    8. if action.requires_approval and not request_human_approval(action):
    9. state["history"].append(("rejected", action))
    10. continue
    11. try:
    12. output = tools.call(action.tool, action.args)
    13. state["history"].append((action, output))
    14. except ToolError as err:
    15. trace.record(step, err)
    16. state["history"].append((action, str(err)))
    17. raise TimeoutError("Max steps exceeded, task incomplete")

    There are three key points to this structure: the step limit prevents infinite loops; high-risk actions require confirmation before execution; and tool errors are written to history and traces, allowing the model to correct its strategy in the next step.

    6. Implementation Paths and Evaluation Metrics

    Implementation should start with low-risk, verifiable, and rollbackable scenarios, such as test execution, report generation, document organization, and data reconciliation. Before going live, each scenario should establish a baseline of manual processing to compare with the agent solution.

    It is recommended to track the following metrics:

    • Task completion rate: The proportion of tasks completed without manual takeover.
    • Manual intervention frequency: The average number of times a task is interrupted or corrected.
    • Average latency and cost per task: Including model invocation and tool resource consumption.
    • Misoperation rate and rollback count: Measuring system reliability.
    • User satisfaction: Reflecting whether the experience genuinely reduces burden.

    Metrics should be tracked separately by scenario. Comprehensive averages can easily mask issues in individual high-risk scenarios.

    7. Risks and Governance

    Major risks include the following categories:

    • Misoperation: Model misunderstanding leads to erroneous modification or deletion of data. Countermeasures include least privilege, secondary confirmation for high-risk operations, and rollback capabilities for critical changes.
    • Prompt injection: Instructions embedded in external web pages or documents are executed by the agent as commands. Countermeasure: treat external content as data, not as an instruction source.
    • Data leakage: Sensitive information enters the model context or is written to logs. Countermeasures: data masking and restricting accessible scopes based on data classification.
    • Cost overrun: Long loops or parallel sub-tasks consume excessive resources. Countermeasures: setting budget limits, step limits, and concurrency limits.
    • Accountability: It is difficult to determine the cause when results go wrong. Countermeasures: complete audit logs and reproducible execution traces.

    8. Organizational Adjustments

    The effectiveness of an agent solution largely depends on how the team adjusts its division of labor. Members’ roles can shift from step-by-step operators to task definers and result acceptors, focusing on clarifying goals, providing acceptance criteria, and judging output quality.

    Teams also need to accumulate shared assets: unified task templates, reusable tool configurations, usage specifications, and common failure case libraries. These assets reduce repetitive trial and error, allowing experience to flow within the team.

    The interface remains important in this transition, especially for complex information presentation, high-risk confirmation, and multi-person collaborative result viewing. A reasonable approach is to divide which steps are delegated to the agent and which retain a manual interface based on task nature, and gradually adjust this boundary in practice.