Agent OS Prototypes Emerge: Evolution of Agent Execution Frameworks
As LLM capabilities evolve from single-turn Q&A to multi-step task execution, the concept of an Agent OS is transitioning from narrative to practical application. This article explores the core architecture of Agent OS, emphasizing the critical role of the execution framework (Harness). It outlines six essential capabilities required for implementation, provides a general architectural overview, and offers a pragmatic path for enterprises to build agent-centric workflows while addressing organizational, cloud infrastructure, and governance challenges.
When model capabilities transition from single-turn Q&A to multi-step task execution, the industry has begun revisiting a previously conceptual direction: the Agent OS. Here, Agent OS does not refer to a traditional operating system, but rather a task execution system formed by the collaboration of Agents and a Harness. It uses natural language instructions, tool calling, environment operations, and state management to replace extensive traditional UI interactions. Its core is not “creating another chat window,” but organizing task planning, tool routing, execution trajectories, session states, permission boundaries, and evaluation feedback into a reusable runtime.
In the past, Agent OS remained largely at the narrative level: conceptually complete but lacking a deliverable prototype. Recently, with models improving in long-context, tool calling, code execution, and multi-step planning, alongside execution frameworks enhancing observability, session management, remote sandboxing, and sub-agent orchestration, this concept has regained practical value. This article does not focus on any specific product but analyzes the key conditions, architectural elements, and implementation paths for the emergence of Agent OS prototypes from a general technical perspective.
- Concept Boundaries: Agent OS Replaces UI Workflows, Not Operating Systems
An intuitive definition of Agent OS is relying on Agents and a Harness to execute commands and complete tasks, thereby reducing the cost of humans switching between multiple graphical interfaces, command lines, and business systems. Traditional software uses UI as the entry point, where users complete processes through clicks, form filling, and copy-pasting. Agent OS uses tasks as the entry point: users describe goals, and the execution framework is responsible for decomposing steps, calling tools, operating environments, recording states, and requesting human handover when necessary.
Therefore, Agent OS comprises at least four layers:
- Model and Planning Layer: Responsible for understanding tasks, generating steps, selecting tools, and handling exceptions.
- Execution Framework Layer: Responsible for tool registration, sandbox isolation, remote connections, trajectory recording, session storage, and permission control.
- Environment and Tool Layer: Includes APIs, CLIs, browsers, desktop applications, file systems, databases, and business systems.
- Governance and Evaluation Layer: Responsible for task success rates, cost, latency, auditing, human handover rates, and security policies.
Among these four layers, the Execution Framework Layer most resembles the “OS kernel.” It does not generate intelligence directly, but it determines whether agents can complete tasks stably, observably, and reproducibly. Without this layer, agents remain conversational assistants; with it, agent-centric workflows become possible.
- The Harness is Key: Six Capabilities Determine Implementation
The value of the execution framework lies in its ability to convert model outputs into controllable execution. Based on general practices, this can be categorized into six capabilities.
2.1 Full-Link Observability of Execution Trajectory
The greatest risk in multi-step tasks is inexplicability: why the model called a specific tool, what it observed, and where it failed. Without records, debugging and evaluation are impossible. The execution trajectory should at least record the session ID, step number, action type, input parameters, observation results, elapsed time, cost, and exception information, while supporting replay and auditing. A trajectory is not a simple stack of logs, but a structured event stream. It allows teams to pinpoint whether a “model decision error” or a “tool return exception” occurred and provides a data foundation for automated evaluation.
2.2 Session Identity and Context Reuse
Complex tasks often span multiple turns and multiple sub-tasks. Copyable and referenceable session identities mean teams can hand over the results of an execution to the next person in charge or continue a task without re-summarizing the entire context. Session storage should include task goals, key decisions, tool results, and permission snapshots, rather than just saving chat history. This reduces redundant labor and lowers the risk of context loss.
2.3 GUI Operation Capabilities
To replace certain UI workflows, Agent OS must possess browser or desktop application operation capabilities. The general approach is to perform clicks, inputs, page state reads, and result validations through controlled UI automation interfaces. This capability must be bound to permissions, sandboxes, and auditing: which applications can be operated, what data can be read, and whether form submissions are allowed should all be policy-controlled. UI automation is not a “universal replacement” but is better suited for relatively stable, highly repetitive processes.
2.4 Remote Execution Channel Stability
Agent execution often occurs in remote sandboxes, containers, or isolated environments. Remote connection stability directly impacts task continuity, requiring heartbeat detection, reconnection, idempotent retries, task state recovery, and timeout control. Otherwise, a simple network jitter could cause step duplication or state inconsistency. Stability also includes resource quotas and concurrency isolation to prevent multiple tasks from polluting each other.
2.5 Sub-Agent Orchestration
Complex tasks can be decomposed into multiple roles, such as planner, retriever, executor, and verifier. Sub-agent orchestration requires defining role boundaries, tool whitelists, budget limits, and delivery formats, with the main execution framework uniformly recording trajectories. More sub-agents are not necessarily better; the key is clear responsibilities, mergeable results, and rollback upon failure.
2.6 Feedback and Evaluation Closed-Loop
The execution framework should allow users or systems to provide feedback on task results and consolidate this feedback into evaluation cases, policy adjustments, and tool improvements. Without an evaluation closed-loop, Agent OS can only rely on manual trials, making it difficult to scale. Evaluation metrics can include task success rate, average steps, human handover rate, cost per task, end-to-end latency, and audit coverage.
- General Architecture Overview
The following pseudo-code illustrates the organization of the execution framework and is not bound to any specific platform or interface.
from dataclasses import dataclass, field@dataclassclass AgentSpec:name: strmodel_profile: strtools: list[str]subagents: list[str] = field(default_factory=list)@dataclassclass TrajectoryEvent:session_id: strstep: intaction: strobservation: strcost: floatelapsed_ms: intclass Harness:def __init__(self, planner, tools, sessions, trajectory, remote_sandbox):self.planner = plannerself.tools = toolsself.sessions = sessionsself.trajectory = trajectoryself.remote = remote_sandboxdef run(self, agent: AgentSpec, task: str):session = self.sessions.create(task=task, agent=agent)for step in range(session.max_steps):decision = self.planner.next(session.context, agent.tools)result = self.tools.call(decision.tool,decision.args,sandbox=self.remote,policy=session.policy,)self.trajectory.record(TrajectoryEvent(session_id=session.id,step=step,action=decision.tool,observation=result.summary,cost=result.cost,elapsed_ms=result.elapsed_ms,))if result.need_subagent:self.subagents.invoke(result.subagent_spec, session)if result.done:return session.refreturn session.ref_with_status("manual_takeover")
The key points of this architecture are: sessions are state containers, trajectories are data sources for auditing and evaluation, tool calls are constrained by policies, remote sandboxes provide isolated execution environments, and sub-agents are uniformly orchestrated by the main framework. Enterprises can extend permission models, cost accounting, and human handover processes on this basis.
- Implementation Path: From Single-Point Tasks to Agent-Centric Workflows
Agent OS should not aim to “replace all UIs” from the start. A more realistic path is:
- Select high-repetition, clear-rule, cross-system tasks as pilots, such as report aggregation, ticket pre-processing, test environment inspection, and document verification.
- Establish structured trajectories and evaluation sets for pilot tasks to first prove observability, rollback capability, and auditability.
- Consolidate successful tasks into reusable tools and sub-agent roles to form an internal tool registry.
- Gradually introduce session reuse and remote execution to make tasks handover-able and recoverable.
- Only then expand to more complex UI automation and multi-role orchestration.
The core of this path is “governance first, intelligence second.” Only when trajectories, permissions, and evaluations are in place does Agent OS become production-ready.
- Organizational Challenges: Collaboration is Harder Than Tools
The economic benefits of Agent OS usually manifest in shortened task chains, reduced repetitive operations, context reuse, and lower audit costs. However, it also changes team divisions: business users need to describe goals and acceptance criteria more clearly, developers need to maintain tool registries and policies, operations need to focus on sandbox and remote execution stability, and security teams need to define data boundaries. If the organization still divides responsibilities based on traditional UI processes, problems like “tools are usable but processes are blocked” will easily arise. Therefore, implementing Agent OS is not just a technical selection, but a process reengineering and metric reconstruction.
- The Role of Cloud Infrastructure
The underlying layer of Agent OS typically requires general capabilities like containerized execution environments, object storage, logging services, monitoring and alerting, and secrets management. Enterprises can use general container platforms to host remote sandboxes, object storage to save session snapshots and trajectory archives, and logging and monitoring systems for execution auditing and alerting. For example, products offered by Baidu AI Cloud, such as general container platforms, object storage, logging services, and monitoring, can serve as underlying components for the execution environment and observability system. Specific selections should still align with the enterprise’s existing infrastructure, compliance requirements, and cost models. It must be emphasized that the core competitiveness of Agent OS lies in orchestration protocols, permission models, and evaluation systems, not simply in stacking cloud resources.
- Risks and Governance Metrics
The more capable Agent OS is at operating environments, the more governance it requires. Major risks include over-privilege, prompt injection leading to unauthorized tool calls, sensitive data leaks, non-reproducible execution, and cost overruns. Corresponding measures include least privilege, tool whitelists, sandbox isolation, human-in-the-loop confirmation nodes, trajectory auditing, and budget limits. It is recommended to establish baselines for evaluation metrics across seven dimensions: task success rate, average execution steps, human handover rate, cost per task, end-to-end latency, audit coverage, and exception recovery time, followed by layered evaluations by task type.
- Conclusion
Agent OS may be moving from concept to prototype, but its emergence depends not on a single model or tool, but on whether the execution framework can turn agent capabilities into stable, observable, and governable productivity. Execution trajectories, session reuse, UI automation, remote stability, sub-agent orchestration, and feedback closed-loops constitute the key capability set of this framework. For enterprises, a more pragmatic strategy is to start with high-repetition tasks, establish trajectories and evaluations first, and then expand to agent-centric workflows. Teams that can adapt their processes and organizations early are more likely to gain a structural advantage in the efficiency competition.
