Building an Enterprise Agent Platform with Cloud-Device Collaboration: A Practical Guide
This article explores the structural limitations of desktop agents and pure cloud solutions in enterprise settings, then presents a five-layer architecture for a cloud-device collaborative Agent platform. It covers local context awareness and secure execution on endpoints, cloud-side orchestration and asset governance, secure connectivity with data classification, observability metrics, and a phased rollout strategy. Readers will gain a clear framework for combining cloud decision-making with local execution while maintaining security and compliance.
1. The Reality of Enterprise Agent Platforms
In recent years, desktop agents that use natural language as a unified entry point have been rapidly adopted across enterprises. They can understand employees’ colloquial instructions, connect multiple systems such as office automation, instant messaging, resource planning, and knowledge bases, handle lightweight workflow orchestration, and leverage local tools and context awareness to directly read the current document, window, and directory, creating a relatively natural human-computer interaction experience.
However, in real enterprise environments, this form exposes four structural shortcomings.
First, capability boundaries are constrained by how open the downstream systems are. If the target system provides standard APIs, integration is relatively manageable. Once APIs are missing, the solution often degrades into UI-layer automation, which is both fragile and introduces security risks such as credential exposure and unauthorized operations.
Second, complex workflow orchestration is insufficient. Most implementations rely on pluggable skill modules to expand the action space, but skills are discrete and local. When facing cross-system, long-chain processes with branching and rollback, they lack global state management and failure recovery mechanisms.
Third, shared AI assets lack unified operations. If authorization scope, invocation usage, version evolution, and operation auditing are scattered across endpoints, it is impossible to form governable, reusable organization-level assets.
Fourth, it is difficult to meet always-on task requirements. Scenarios such as scheduled reports, event-triggered processing, and nightly batch jobs require 24/7 availability, but endpoints shut down, sleep, or go offline.
At the same time, pure cloud solutions have obvious gaps: a large number of employee work documents, private toolchains, and intranet systems reside locally and cannot be directly reached by the cloud. Forcibly moving data to the cloud touches compliance red lines.
Therefore, combining the respective strengths of the cloud and the endpoint to build a cloud-device collaborative Agent platform becomes a more natural choice for enterprises.
2. Layered Architecture Design for Cloud-Device Collaboration
A five-layer structure is recommended, with clear responsibility boundaries that can evolve independently.
- Interaction Layer: Provides a unified natural language entry point, responsible for intent clarification, task confirmation, and result presentation, supporting multi-turn follow-up questions and secondary confirmation for dangerous operations.
- Orchestration Layer: Runs in the cloud, responsible for task decomposition, plan generation, tool selection, state machine progression, and failure retries. It acts as the “brain.”
- Capability Layer: Manages callable actions in the form of a tool registry, distinguishing cloud tools from endpoint tools, and annotating permission levels and idempotency.
- Execution Layer: A persistent agent on the endpoint handles local tool invocation, context collection, and result回传; a cloud executor handles always-on and batch tasks.
- Governance Layer: Spans the entire stack, covering identity and authorization, key custody, usage metering, version management, full-chain auditing, and observability.
The key design principle is: “the cloud manages decisions and assets, the endpoint manages context and execution, and the governance layer manages boundaries.”
3. Endpoint Side: Local Context Awareness and Secure Execution
The endpoint agent is the pivot of cloud-device collaboration. It is recommended to run persistently as a daemon with three capabilities.
First, context collection. It reads signals such as the current application, selected content, and file paths on demand, and performs minimal trimming, uploading only the fields necessary to complete the task.
Second, tool adaptation. It abstracts local capabilities into unified tool descriptions for discovery and invocation by the cloud orchestration layer:
{"name": "local.file.read","scope": "endpoint","risk": "low","idempotent": true,"input_schema": {"path": "string", "max_bytes": "number"}}
Third, policy-enforced execution. All invocations are first validated by the local policy engine. Operations that hit sensitive directories, outbound channels, or deletion-type actions are directly blocked or escalated to manual confirmation.
4. Cloud Side: Orchestration, Always-On Execution, and Asset Operations
The cloud undertakes three types of responsibilities.
Orchestration and state management: An explicit state machine carries long processes, records the input and output of each step, supports resuming from breakpoints and compensating transactions, and avoids “half-completed” states polluting business data.
Always-on and triggering: Through scheduled dispatch and message-queue-driven triggers, it achieves nightly batch processing and event response, completely eliminating dependence on endpoint availability.
Asset operations: Model prompts, tool definitions, and workflow templates are stored in a unified repository with version numbers, canary releases, and rollback capabilities. Combined with metering and quotas, it enables usage visualization by team and by project.
5. The Cloud-Device Channel: Secure Connectivity and Data Classification
The channel design must simultaneously satisfy two goals: traversing the intranet and being auditable.
- Adopt a model where the endpoint actively initiates outbound connections and the cloud issues commands, avoiding opening inbound ports.
- Mutual identity authentication: the endpoint holds rotatable device credentials, and the cloud grants tool sets based on least privilege.
- Data classification: public data can be processed in the cloud; internal data is desensitized in the cloud before processing; highly sensitive data does not leave the endpoint and only structured conclusions are returned.
- Full-chain traceability: commands, parameter summaries, execution results, and approval records are uniformly written to a logging service for auditing and tracing.
6. Observability and Quality Assurance
After the platform goes live, three types of metrics need to be established: task success rate and average number of steps reflect orchestration quality; tool failure rate and timeout rate reflect integration health; and manual takeover rate reflects whether the automation boundary is reasonable. Combined with monitoring alerts and distributed tracing, teams can quickly identify whether an issue is caused by model decision deviation or a tool contract change.
7. Recommended Implementation Roadmap
In the first phase, converge the entry point and tool contracts, and get two or three high-frequency processes working end to end. In the second phase, complete governance and auditing, and bring assets under version management. In the third phase, introduce always-on scheduling and multi-endpoint collaboration to cover 24/7 scenarios. Baidu AI Cloud, through general cloud product categories such as container platforms, message queues, logging services, and monitoring alerts, can provide the underlying foundation for the above layers, allowing enterprises to focus their energy on orchestration logic and business adaptation itself.
