AI Productivity on Mobile: A Dual-Mode Architecture for Mini-Program Agents

    This article explores how mobile entry points can carry real AI productivity by decoupling task execution from the desktop. It explains a dual-mode execution model—cloud sandbox mode for availability and local mode for capability depth—along with the criteria for switching between them. Seven tested scenarios are covered, including expense report processing, investment research aggregation, competitive and user research, personal knowledge management, voice-triggered tasks, long-document review, and cross-mode scheduled workflows. The article also discusses capability extension through a skill ecosystem and expert role orchestration, plus practical rollout advice and risk controls around data boundaries, auditing, structured output, and human confirmation.

    Introduction: Agents Are Moving from Desktop-Bound to Scenario-Bound

    Interest in AI coding and AI office tools has cooled noticeably over the past period, but the drop in attention does not mean demand has disappeared. It signals that the discussion is shifting from “how powerful the tool itself is” to “what specific problem it can solve.” Early users cared about installation, configuration, and model capability comparisons. Today, they care more about whether an expense reimbursement workflow can run end to end, whether industry research can produce structured conclusions, and whether a personal knowledge base can keep accumulating.

    In their early days, these tools were almost always tied to the desktop: tasks depended on a local device that had to be powered on, connected to the network, and kept alive in the foreground or background. Even when some solutions supported issuing commands remotely through enterprise collaboration platforms, the model was still essentially “remotely controlling a computer.” The bottleneck of this approach is clear—device online rate determines availability.

    This article focuses on how mobile can carry real productivity and discusses a practical technical path: a lightweight entry point that connects a cloud sandbox with a local runtime to form a dual-mode execution architecture, combined with a skill extension mechanism and expert role orchestration, covering high-frequency scenarios such as reimbursement, investment research, user research, and knowledge management.

    1. Core Architecture: Dual-Mode Execution and Task Location Abstraction

    The key to understanding this kind of solution is not the interface but where the task actually executes. The industry usually abstracts execution location into two categories:

    • Cloud mode: The task runs in an isolated cloud sandbox, decoupled from local device state. After the user submits a task, the cloud handles parsing, planning, tool invocation, and result generation, then syncs the artifacts back to the local workspace.
    • Local mode: The task runs on the user’s local device and can access the local file system, local extension capabilities, and even perform desktop-level operations, provided the device is online and reachable over the network.

    The difference between the two can be summarized in one sentence: the task runs in the cloud or runs locally. This abstraction matters because it splits “availability” and “capability boundary” into two independent dimensions.

    1. Cloud Mode Solves Availability

    The value of cloud mode is that it removes device dependency. During a commute, between meetings, or in a hotel while traveling, the user only needs a lightweight entry point to start a task. A typical implementation flow looks like this:

    1. User submits task
    2. ↓
    3. Task normalization (intent recognition / parameter completion)
    4. ↓
    5. Cloud sandbox allocation (isolated environment + runtime dependencies)
    6. ↓
    7. Tool invocation and multi-step planning
    8. ↓
    9. Artifact persistence (documents / spreadsheets / images)
    10. ↓
    11. Sync back to local workspace

    Three engineering concerns stand out: first, sandbox isolation to prevent cross-task contamination; second, idempotency of artifact synchronization to avoid duplicate writes; third, checkpoint resume for long-running tasks so that network jitter does not cause an overall failure.

    2. Local Mode Solves the Capability Boundary

    Local mode addresses what the cloud cannot reach: raw files on the local disk, systems reachable only from the intranet, extension scripts that must run on the machine, and operations that require a graphical interface. Its essence is exposing local environment capabilities for remote invocation.

    The security design here cannot be skipped. At minimum, it should include explicit device-side authorization, an operation allowlist, isolation of sensitive directories, and full audit logging of operations. An illustrative policy configuration can be expressed as follows:

    1. local_bridge:
    2. require_pairing: true # Pairing authorization is mandatory
    3. allowed_paths: # Only expose necessary directories
    4. - ~/workspace/inbox
    5. - ~/workspace/outbox
    6. denied_actions: # High-risk actions are denied by default
    7. - shell_recursive_delete
    8. - system_setting_modify
    9. audit_log: true # Full audit trail

    3. Criteria for Switching Between Modes

    In practice, three rules can decide the mode: choose local mode when local files or intranet resources are needed; choose cloud mode when the device is offline or the task is long-running; run information gathering and a first draft in the cloud, then switch to local mode for final organization and archiving. This “draft in the cloud, deliver locally” combination is often more efficient than either mode alone.

    2. Seven Real-World Scenarios: From Task Submission to Result Delivery

    Scenario 1: Streamlined Expense Reimbursement

    The pain point of reimbursement is not filling out forms but scattered receipts and inconsistent standards. A workable flow is: photograph and upload receipts → recognize amount, date, and header → classify by travel, entertainment, or office → generate a structured detail table → output a spreadsheet-ready file. The key is fixed field specifications and separate flagging of anomalies, rather than letting the model improvise.

    Scenario 2: Market and Investment Research Aggregation

    The core of this kind of task is traceability. A sound approach is to limit the scope of information sources and output a structured summary containing conclusions, supporting evidence, timestamps, and risk disclosures, with an explicit statement that it does not constitute investment advice. Cloud mode suits scheduled fetching and aggregation, while local mode suits writing results into a local research library.

    Scenario 3: Competitive and User Research

    The difficulty in research lies in samples and dimensions. It is advisable to first define a dimension framework (features, pricing, experience, reputation), then feed materials in batches, and finally generate a comparison matrix. Image input is clearly valuable here: photographing a page or a whiteboard is much faster than typing a description.

    Scenario 4: Personal Knowledge Management and Reprocessing

    Knowledge management is not bookmarking but making content searchable and reusable. A workable chain is: fragmented input → automatic tagging → filing into topic directories → generating summaries and related entries → periodic review output. The cloud handles initial processing, and the local environment handles long-term archiving.

    Scenario 5: Instant Conversion in Meeting and Voice Scenarios

    The value of issuing tasks by voice is that it does not interrupt the current activity. While walking, commuting, or with hands occupied, a single sentence can start a task, with details added later when convenient.

    Scenario 6: Long-Document Review and Structured Rewriting

    After uploading a long document, first split it into sections, then reorganize it into a three-part structure of “conclusions—supporting arguments—items to confirm,” and finally output a list of revision suggestions. Segmented processing effectively reduces omissions caused by long context.

    Scenario 7: Cross-Mode Scheduled Tasks

    For example, aggregate information in the cloud early each morning and generate a to-do draft; when the user reaches their desk, switch to local mode to write the draft into a local directory and trigger downstream workflows. This orchestration chains the two modes into a pipeline.

    3. Capability Extension: Skill Ecosystem and Expert Role Orchestration

    A single model cannot cover every task, so the extension mechanism determines the ceiling. A common industry approach has two layers:

    • Skill layer: Package reusable capabilities as independent units that declare inputs, outputs, and preconditions, loaded on demand. Good practices include versioning, least privilege, and rollback on failure.
    • Role layer: Orchestrate multiple skills by responsibility into “experts”—for example, a research expert handles collection and cross-validation, a document expert handles drafting and formatting, and a review expert handles compliance and risk disclosure.

    An illustrative skill declaration:

    1. {
    2. "skill": "expense_extract",
    3. "version": "1.2.0",
    4. "inputs": ["image[]", "policy_profile"],
    5. "outputs": ["expense_table", "anomaly_list"],
    6. "permissions": ["ocr", "table_write"],
    7. "on_error": "mark_for_manual_review"
    8. }

    It is worth emphasizing that more skills is not necessarily better. Three things truly affect the experience: accurate routing (selecting the right skill), concise context (providing only necessary information), and verifiable results (having a defined output format).

    4. Rollout Advice and Risk Control

    1. Start with a narrow pilot: pick a task with a clear workflow and quantifiable benefits, prove it works, then expand.
    2. Define data boundaries clearly: keep sensitive data local whenever possible, and let the cloud process only desensitized content.
    3. Establish auditing and traceability: all automated write operations should be queryable and reversible.
    4. Output must be structured to avoid free text that downstream systems cannot consume.
    5. Retain a human confirmation step: actions involving funds, external publishing, or compliance judgments must be reviewed.

    In the general capability system of cloud platforms such as Baidu AI Cloud, container platforms can host the sandbox runtime, object storage can hold task artifacts, message queues can support asynchronous orchestration of long-running tasks, and logging services with monitoring and alerting can be used to observe task success rates and latency distribution. These are general industry-standard capability categories, and specific choices should be evaluated against your own compliance and cost requirements.

    Conclusion

    The real significance of a mobile entry point is not shrinking desktop functionality but making the task execution location a schedulable resource. When the cloud provides anytime availability and the local environment provides capability depth, combined with layered orchestration of skills and roles, AI can evolve from “a tool you occasionally use” into “infrastructure embedded in daily workflows.”