Cross-Device AI Agent Architecture: Control, Execution, and Data Planes
This article breaks down the architecture of cross-device AI agents, where tasks are initiated on mobile, executed on desktop or cloud hosts, and returned to mobile. It explains the shift from single-device assistants to delegated execution, the separation of control, execution, and data planes, persistent threads for resumable tasks, least-privilege security policies with human confirmation, and a practical engineering checklist for building observable, recoverable, and auditable agent systems.
1. From a Single-Point Assistant to a Cross-Device Agent
Over the past two years, the dominant form of the AI assistant has been the chat box: the user types a question, the model returns an answer, and the interaction closes within one device and one session. That changed once models gained the ability to call local files, execute system commands, read and write code repositories, and connect to external collaboration services. The interaction paradigm shifted fundamentally: AI no longer just answers questions, it acts on your behalf.
Once AI starts acting, three new problems appear:
- Where execution happens: the compute that does the real work usually sits on a desktop or server, where the compute capacity and file system live, not on the phone.
- Where the request originates: people are often away from their computers, yet ideas show up at any moment and need to be issued from a mobile context.
- Trust: if AI is going to touch your files and send your messages, a human must confirm the critical actions.
The cross-device agent architecture of “initiate on mobile, execute on desktop, return results to mobile” is a systematic answer to these three problems. Its essence is not to squeeze the model into a phone, but to decouple control from execution.
2. Layered Architecture: Separating the Control, Execution, and Data Planes
A robust cross-device agent system can usually be abstracted into three layers:
- Control Plane: runs on mobile or in the cloud, receives human instructions, displays the execution plan, collects confirmations, and reports progress. It consumes no local compute and holds no sensitive files.
- Execution Plane: runs on a desktop or cloud host, where coding agents and command-line agents actually land. It owns the file system, terminal, package management, and credentials for external services.
- Data Plane: handles persistence and synchronization of session state, task queues, logs, and artifacts.
An illustrative task description (pseudocode that expresses structure only, not the interface of any specific product):
task = {id, title,goal: "Fix the login timeout issue and add unit tests",scope: { repos: ["service-a"], allow_paths: ["src/", "tests/"] },permissions: { shell: "ask", network: "deny", git_push: "deny" },notify: ["mobile"]}
The key design principle: the control plane never directly holds production credentials, and every high-risk action must return to the execution plane and pass policy checks.
3. Persistent Threads: Keeping Cross-Device Conversations Alive
The hard part of a cross-device experience is not “being able to connect,” but “being able to resume after a disconnect.” In engineering terms, a task should be modeled as a resumable persistent thread:
- Decouple sessions from tasks: one session can spawn multiple tasks, and tasks retry independently without polluting the context.
- Event sourcing: record the stream of “instruction—plan—tool call—result” as an append-only event log, and after reconnecting, either side catches up by event sequence number.
- Idempotency and deduplication: every instruction carries an idempotency key to prevent duplicate execution caused by network jitter (for example, sending the same email twice or submitting code twice).
- Checkpoint resume: the execution plane periodically persists checkpoints during long tasks, and the mobile side can take over at any time to inspect and append instructions.
On the cloud, you can use a message queue for instruction distribution and peak shaving, object storage for artifacts and checkpoints, and logging plus monitoring and alerting to trace the full task chain. These are common cloud product categories in the industry.
4. Security Boundaries: Writing “What It Can Do” as an Auditable Policy
When AI controls the mouse and keyboard and reads and writes files, the biggest risk is not insufficient capability but excessive permission. The recommendation is least privilege plus tiered confirmation:
- Action tiers: read-only (viewing files and logs), reversible writes (changing code, running tests), irreversible (deletion, pushing, sending externally).
- Policy as code: version, review, and roll back permission rules instead of scattering them across prompts.
- Human-in-the-loop confirmation: irreversible actions require a second confirmation on mobile, showing the affected paths and a summary of commands.
- Sandboxing and isolation: run the execution plane in a dedicated container or host, restrict network egress, and issue credentials on demand for short periods.
- Full audit: record who approved what and when, for traceability and compliance checks.
A simplified policy decision example:
def decide(action, policy):if action.level == "read":return "allow"if action.level == "write" and action.path in policy.allow_paths:return "allow"if action.level == "irreversible":return "require_human_confirm"return "deny"
5. The Ecosystem Debate: Do We Still Need Apps in the Age of AI Agents?
A recurring question is whether apps will be bypassed once natural language becomes the primary entry point. A more accurate conclusion: the form of the app will change, but an interface that carries trust and confirmation matters more than before.
The reason is that the more automated agent execution becomes, the more humans need a stable place to do three things: review the plan, approve high-risk actions, and inspect traceable results. A chat window is good for initiating, but a structured panel is better for review and authorization. The future therefore looks more like a “remote control plus dashboard”: mobile issues and confirms at any time, desktop performs the real execution, and the cloud handles state and audit.
6. Engineering Implementation Checklist
- Define the execution location: keep heavy compute and sensitive data on the desktop or a cloud host, and let mobile do control only.
- Build an event stream and checkpoints: prioritize recoverability, then optimize for real-time behavior.
- Minimize permissions: deny network and push by default, and grant temporary elevation per task.
- Observability first: track metrics and alerts for task duration, failure rate, and confirmation time.
- Cost control: set limits on steps, duration, and resources for long tasks to avoid runaway loops.
- Support multiple clients: decouple the control plane from specific clients to make it easier to add more device form factors later.
7. Conclusion
The core competitiveness of a cross-device AI agent is not that “AI can click a mouse,” but engineering execution capability, the control entry point, and the trust mechanism. Whoever makes persistent threads, permission policies, and observability solid can let intelligence safely enter daily production workflows. To host such a system, you can build on common capabilities such as the container platform, message queue, object storage, and monitoring and alerting from Baidu AI Cloud, keeping the architecture neutral and easy to evolve over the long term.
