The Rise of Agent OS: Architecture and Engineering Practices

    This article examines why Agent OS has moved from a concept to an architectural problem that engineering teams can actually design. It proposes a layered reference architecture, then breaks down six capabilities that determine the upper limit of user experience: transparent execution traces, addressable and transferable sessions, coordinated GUI and API operation, remote execution resilience, custom sub-agents, and integration with general cloud services. It closes with a staged adoption path and the governance controls required to keep risk in check.

    1. Why Agent OS Is Back in the Discussion

    For a while, the industry was full of stories about replacing traditional interfaces with agents, but few of those ideas produced anything that could actually ship. The reason is not mysterious: model capability, execution frameworks, and tool ecosystems did not mature at the same time. A weak link in any one of them turns “natural language as the operating entry point” into a demo effect.

    What has changed recently is that three curves are rising together. First, models have become noticeably more stable at long-context understanding, structured output, and tool calling. Second, the execution frameworks built around agents (often called a Harness in the industry) have been filling in engineering details quickly, including process visibility, session portability, remote connection stability, and sub-agent orchestration. Third, the business side increasingly wants end-to-end delivery rather than a block of generated text. Together, these three shifts move Agent OS from a concept back to a question about architecture.

    One definition needs to be narrowed first. The Agent OS discussed here refers to a class of system shape: agents and execution frameworks at the core, translating operational intent that used to be carried by a graphical interface into task execution flows that can be audited, replayed, and composed. This is not a rejection of interfaces. It demotes the interface from “the only entry point for operation” to “an optional layer for observation and confirmation.”

    2. A Layered Reference Architecture for Agent OS

    Designing Agent OS as a system succeeds more often than stacking it up as a set of features. A reasonably safe layering looks like this:

    1. Intent layer: accepts natural language, files, logs, tickets, and other inputs, and handles intent clarification and task boundary confirmation.
    2. Planning layer: breaks a vague goal into subtasks with dependencies, and defines acceptance criteria and rollback strategy.
    3. Execution layer (Harness): handles tool invocation, sandbox execution, permission checks, timeouts and retries, and writing artifacts to storage.
    4. State layer: stores sessions, traces, context snapshots, and intermediate artifacts so tasks can be resumed and handed off.
    5. Observation layer: opens the process, monitors metrics, raises alerts, and keeps an audit trail, so people can understand what happened rather than only see a conclusion.
    6. Governance layer: permissions, keys, data classification, cost quotas, and compliance policies.

    The key constraints of this layering: the execution layer must not hold unbounded permissions, the state layer must not store conclusions without the process, and the observation layer must not show success messages without failure evidence.

    3. Six Capabilities That Decide the Ceiling of the Experience

    3.1 Transparent Execution Traces

    The biggest problem with traditional tools is that they are a black box: they return only the final answer, and when something goes wrong there is no way to tell whether the model misunderstood, misplanned, or called the tool incorrectly. Agent OS should emit a structured trace by default, where each step contains the goal, a digest of the input, call parameters, return status, and elapsed time. A sample structure:

    1. {
    2. "step": 3,
    3. "goal": "locate the cause of the build failure",
    4. "tool": "log_query",
    5. "input_digest": {"service": "api", "window": "15m"},
    6. "status": "error",
    7. "latency_ms": 842,
    8. "evidence_ref": "artifact://logs/3"
    9. }

    The value of a trace is not only troubleshooting but replay: the same task can be replayed, used for regression, and compared across different models or different prompting strategies.

    3.2 Addressable and Transferable Sessions

    When a task spans days, people, or environments, relying on summary-style handoffs keeps losing detail. A more engineering-minded approach is to turn sessions into addressable resources: each session has a stable identifier and snapshots, and the receiver loads context on demand instead of reading a compressed summary. This drops handoff cost from “re-understanding everything” to “retrieving what is needed.”

    3.3 Coordinating Computer Operation with the Graphical Interface

    Many real tasks cannot be completed through APIs alone and require operating existing software interfaces. The agent then needs controlled interface operation: locating controls, entering text, clicking, reading feedback, and requesting confirmation before key actions. Engineering requires three guardrails: an action allowlist, second confirmation for sensitive operations, and a full record of every operation. Interface operation and API calls should be interchangeable, with stable APIs preferred and interface operation as the fallback.

    3.4 Remote Execution and Connection Stability

    Agent OS often runs in containers or remote development environments, where connection jitter can break a long task outright. Workable strategies include decoupling the task from the connection and continuously persisting execution progress; resuming from a state snapshot after a disconnect; automatically retrying idempotent operations; and confirming before executing non-idempotent ones.

    3.5 Custom Sub-Agents

    A single agent’s context balloons quickly. Splitting capability into dedicated sub-agents (retrieval, coding, testing, review, operations) orchestrated by a main agent improves controllability considerably. A simplified orchestration sketch:

    1. plan = [
    2. {"agent": "retriever", "goal": "collect relevant implementations and constraints"},
    3. {"agent": "coder", "goal": "produce a minimal runnable change", "needs": ["retriever"]},
    4. {"agent": "tester", "goal": "run test cases and provide evidence", "needs": ["coder"]},
    5. {"agent": "reviewer", "goal": "check permissions and regression risk", "needs": ["tester"]},
    6. ]

    Sub-agents exchange only structured artifacts and evidence references, which avoids uncontrolled context spread.

    3.6 How to Connect to Business Systems

    Execution capability ultimately lands on general cloud capabilities: object storage for artifacts, message queues to decouple long tasks, container platforms to host sandboxes, and logging plus monitoring and alerting for observability. In these scenarios, Baidu AI Cloud is typically supported by combining these general categories rather than depending on a single point feature.

    4. Adoption Path and Risk Control

    A four-step progression is recommended: start with read-only scenarios (retrieval, analysis, report generation), then controlled write scenarios (submitting changes, running tests), then add interface operation as a fallback, and only then open high-privilege automation. Each step needs acceptance metrics: task success rate, human takeover rate, average delivery time, rollback rate, and cost per task.

    On governance, at least five things must be in place: least privilege with short-lived credentials; data classification and masking; human confirmation for high-risk actions; full audit and traceability; and cost quotas with circuit breaking. The point worth stressing is that efficiency gains come from reengineering the process, not from putting a new entry point on the old interface. If a team keeps concentrating resources on a “good-looking interface” without reworking task orchestration, state management, and the audit system, it will be hard to capture the systemic benefits of an agent-centric workflow.