Cloud-Executed AI Assistants: Multi-Device Collaboration Architecture for Mobile-Initiated Tasks
This article examines the architecture behind AI assistants that accept a task from a phone and continue executing it in the cloud, even when the user closes the laptop or turns off the phone. It covers hosted execution state machines, control-plane/data-plane separation across devices, session synchronization and idempotency, scheduled tasks, skill authorization, local reverse tunnels, remote control, checkpoint-based recovery, and how to turn a feature list into a coherent product narrative.
Cloud-Executed AI Assistants: Multi-Device Collaboration Architecture for Mobile-Initiated Tasks
A new way of using AI assistants has generated broad discussion in developer communities: a user issues a task in one sentence on a phone, the task is delivered to a cloud environment for continuous execution, and it does not stop even if the user closes the laptop or turns off the phone. The user can return later to check the result. This experience—“speak on the phone, work in the cloud, close the laptop and let it keep running”—looks like a product interaction innovation, but it involves a series of systems engineering problems: session hosting, task orchestration, multi-device collaboration, permission authorization, and remote control.
This capability is not unique to one vendor. Many industry solutions are highly similar at the functional foundation: they support multi-device collaboration, scheduled tasks, skill extension, plugin mechanisms, and review workflows. The real difference is often not whether these capabilities exist, but two other things: whether the access path to local resources is fully connected, and how a set of features is presented as a complete story. This article breaks down this model from an architecture perspective.
1. Why Cloud-Hosted Execution Has Become Standard
The traditional local Agent model has a natural weakness: the Agent lifecycle is bound to the local process. If the computer sleeps, the network fluctuates, or the user closes the lid, the task is interrupted. For complex tasks that may run for tens of minutes or even hours—batch data processing, long-chain code refactoring, multi-round retrieval and analysis—this is unacceptable.
Cloud-hosted execution solves three core problems:
- Execution environment decoupled from user devices: Tasks run in a cloud sandbox. The file system, browser, terminal, and other tools are provided on the cloud side. The user device becomes an “instruction terminal + result viewer.”
- Long-running tasks can resume: Task state is persisted on the server. Client disconnection does not affect execution. After reconnection, context is restored through state synchronization.
- Elastic resources: Cloud environments can allocate compute on demand and are not limited by the user’s local machine configuration.
A typical hosted execution session can be described by the following state machine:
created → queued → running → waiting_approval → running↓completed / failed / cancelled
The waiting_approval state is critical: when the cloud Agent reaches a high-risk operation, such as deleting files or sending an external request, it pauses and pushes an approval request to the user. The task continues after the user confirms on the phone. This is the technical foundation for the experience of “the human remains in the loop, but does not need to stay at the computer.”
2. Multi-Device Collaboration: The Phone Is an Entry Point, Not the Runtime
The core design principle of multi-device collaboration is separation of the control plane and the data plane. The phone, web, and desktop clients belong to the control plane and are responsible for task submission, progress viewing, and approval confirmation. The cloud execution environment is the data plane and is responsible for actual computation and tool invocation.
This creates several engineering problems that must be solved:
Session state synchronization: When multiple clients are online at the same time, task progress, intermediate artifacts, and approval requests need to be pushed to all devices in real time. A common approach is to deliver incremental events over a long-lived message channel such as WebSocket or Server-Sent Events, and to pull missed events by sequence number after reconnection.
Idempotency of instructions: If a user taps “confirm” on the phone and a network retry causes the request to be duplicated, the server must identify and deduplicate it to avoid executing the operation twice. Generating a unique request identifier for each user instruction is a necessary infrastructure-level detail.
Notification strategy: Task completion, task failure, and approval required are three event types with different push priorities. Approval requests should use strong reminders, such as push plus pinning, because they block task flow. Completion notifications can be silently aggregated.
3. Scheduled Tasks and Skill Authorization: Making the Agent Orchestratable and Governable
A one-off “send a sentence and run a task” interaction is only the entry-level form. What truly makes an AI assistant productive is two categories of capability:
Scheduled and recurring tasks. A user may want to “summarize updates from a data source every morning and generate a briefing.” This requires the task system to support cron-like scheduling expressions and to handle classic scheduling concerns such as time zones, failure retries, and concurrency control—whether the next trigger should be skipped or queued when the previous run has not finished. An illustrative task definition is shown below:
{"task": "daily_digest","schedule": "0 8 * * *","timezone": "Asia/Shanghai","on_overlap": "skip","retry": { "max_attempts": 3, "backoff": "exponential" }}
Authorization governance for skills and tools. When an Agent can invoke external capabilities—reading and writing files, accessing internal enterprise systems, calling third-party APIs—it must answer one question: on what basis does it obtain these permissions? A common industry approach is to build a skill registry. Each skill declares the permission scope it requires. After a user selects a skill on a client, the user must confirm authorization again on a trusted device. Authorization tokens are bound to specific scopes and validity periods rather than acting as a universal key. This follows the same fine-grained authorization philosophy as OAuth: least privilege, explicit confirmation, auditability, and revocability.
4. Local Connections and Remote Control: The Path That Truly Creates Differentiation
The pure cloud model has an unavoidable boundary: cloud files, browsers, and terminals are all “in the cloud.” The file system a user has built up on their own machine over years, internal systems they are already logged into, and specialized software installed locally are all inaccessible to a cloud Agent. Yet a large amount of real work happens locally.
Therefore, a more complete architecture provides a channel back to the local machine in addition to cloud execution: a task initiated on the phone can be routed to the user’s own computer for execution. The Agent uses local files and software to complete the work, and the phone merely “reaches over and taps a button.” The technical points of this path include:
- Reverse tunnel: A local agent proactively establishes an encrypted long-lived connection to the cloud. Cloud instructions are delivered through the tunnel, avoiding the need for users to configure a public entry point or port mapping.
- Capability negotiation: When the local agent starts, it reports the toolset available on the machine, such as which software is present and what file access scope is available. The cloud uses this information to decide whether a task can run locally.
- Dual-mode switching: If the user does not want to turn on the computer, the task can use the cloud sandbox. If local software is required, the task can be routed back to the computer. Both modes present a unified task interface to the user.
The remote control layer goes further: the user can see the real-time screen of the computer on the phone and operate it directly by tapping. This provides a fallback for a critical scenario—when the Agent is stuck on an interface that requires human judgment, such as an unexpected login verification, the user can intervene directly. From an engineering perspective, this requires handling screen compression and low-latency transmission, coordinate mapping for input events, and robustness when credentials are abnormal. Even if an account goes offline or an authorization token expires, the user should be allowed to re-confirm identity locally and let the task “continue running” rather than invalidating the entire task. This requires a well-designed task checkpoint mechanism: execution progress, intermediate artifacts, and to-do lists are persisted, and recovery resumes from the latest checkpoint instead of starting over.
5. From Product to Narrative: A Feature List Is Not a Value Proposition
A deeper issue worth discussing is why two solutions with similar features may be perceived by the market as a “digital colleague” in one case and merely a feature list in another.
This is a classic lesson in technical productization. Users do not buy the three terms “multi-device collaboration, scheduled tasks, and skill authorization.” They buy “I have a colleague. I give it a casual instruction, it does the work, and it tells me when it is done.” Architects design systems around capability dimensions, while users understand products around scenario dimensions. When capabilities are mapped back to scenarios—“if I do not want to turn on my computer, use the cloud; if I need local software, connect to the computer; if the account drops, tap once and it continues”—features become a story.
For developers, this means that when building similar systems, in addition to making each module solid, they should also think clearly at the design stage about which complete user journey these modules are connected to solve. Features determine the lower bound of a product, while a coherent narrative determines its upper bound.
Conclusion
“Speak on the phone, work in the cloud, close the laptop and let it keep running” is not mysterious. It is a combinatorial innovation built from mature technologies: session hosting, task scheduling, fine-grained authorization, local reverse connections, and checkpoint-based resumption. Understanding each part of this architecture and its engineering trade-offs helps both those building similar systems and those evaluating market solutions understand not only what they do, but also why they work.
