Mobile Technology Analysis
Emerging Mobile Tech

Mobile AI Agents: On-Device Autonomous Task Execution Architecture

Cloud assistants answer. On-device agents *act*. The next generation of mobile AI doesn't just generate text — it perceives your screen, reasons over multi-step goals, and executes tools autonomously without ever leaving the SoC. Here's how the stack actually works.

By Jones Consortium Editorial — Embedded Systems Engineer September 9, 2026 8 min read

For a decade, “assistant” on mobile meant a remote procedure call. You spoke, audio was streamed to a data center, an intent classifier fired, and a canned response returned. The device was a thin client. That model is now inverted. With 3 to 8-billion parameter models quantized to 4-bit and accelerated on 35+ TOPS NPUs, the phone can run a full agentic loop locally: observe, plan, use tools, verify, and retry — all under 900ms per reasoning step.

This is not just a smaller ChatGPT on your phone. An autonomous mobile agent is an event-driven control system. It closes the loop around the operating system itself. Understanding its architecture is critical for anyone building, securing, or evaluating the next wave of mobile software.

Key distinction: A generative model predicts the next token. An agent predicts the next action over a typed toolset, conditioned on device state, and commits it to a verifiable execution environment.

1. From Chatbot to Agent: What Changes

A traditional assistant is stateless and single-turn: user utterance → NLU → API call → TTS. An autonomous agent is stateful, multi-step, and goal-directed. Give it “Rebook my missed flight for tomorrow morning and message my hotel” and it will not ask you for a confirmation after every sub-step. It will decompose the goal, sequence dependencies, and recover from failures.

Three properties define an on-device agent:

On Android, this builds on App Actions and the Accessibility Framework; on iOS, on App Intents, Shortcuts, and the new App Intents-driven Screen Understanding APIs introduced in iOS 19. The crucial shift is that the LLM is no longer the product — the orchestrator is.

2. The Perception–Reasoning–Action Loop

Every mobile agent, from research prototypes to Samsung Gauss Agent and Apple’s on-device Siri Agent, implements the same core loop, typically running at 2–5 Hz:

Mobile Connectivity Standards Comparison
Feature 5G NR Wi-Fi 7 Bluetooth 5.4
Peak Throughput20 Gbps46 Gbps2 Mbps
Latency1–4 ms1–2 ms3–6 ms
RangeSeveral km30–50 m100–400 m
Power DrawHighMediumUltra-low
Primary UseCellular dataLocal networkingPeripherals/IoT

Perception

Two parallel perception streams feed the agent. The symbolic stream extracts a structured view hierarchy (view IDs, bounds, text, clickability, scroll state) via Accessibility or Semantic Tree APIs. This is cheap, deterministic, and privacy-preserving. The visual stream runs a 300–400M parameter vision encoder on downscaled screenshots (224–448px) to resolve ambiguous UI where the view tree is incomplete — custom canvases, games, or WebViews. The fusion layer produces a compact UI graph: ~1,500 tokens vs. 8,000+ for raw HTML.

Reasoning & Planning

The core LLM (typically a 3B–7B instruction-tuned model quantized to INT4 with AWQ/GPTQ) runs with a ReAct-style prompt: Thought → Action (tool_call) → Observation. The loop is bounded by a planner that maintains a task graph. Modern agents use hierarchical planning: a 7B planner decomposes “plan a commute” into subtasks, while a distilled 1.5B executor handles atomic tool invocations, saving 40–60% NPU cycles.

Context management is decisive. With 8K–16K context windows on-device, the trajectory must be compressed. Implementations use rolling summarization and tool-output distillation: only the last 3 observations are kept verbatim; earlier steps are summarized to 300 tokens.

Action & Verification

Actions are typed commands against a Tool Registry. After each action, a verifier model (often the same LLM in judge mode) checks the new UI state against the expected post-condition. If verification fails — e.g., tap missed, or login wall appeared — the agent re-plans rather than hallucinating success. This is what separates reliable agents from brittle RPA scripts. Critically, this verification must also be on-device to avoid leaking screen content.

On-Device Autonomous Agent Architecture Block diagram showing NPU, perception, reasoning, tool registry and secure enclave. ON-DEVICE AGENTIC RUNTIME • Secure Sandbox • 4-bit Quantized • NPU-Accelerated PERCEPTION LAYER SYMBOLIC PARSER Accessibility Tree • View Hierarchy Intents Inventory • Sensors VISUAL ENCODER (ViT 350M) Screenshot 448px • OCR • Icon Grounding ~120ms on NPU • 4-bit FUSION & UI GRAPH Compressed 1.5k token state → Agent Context Window REASONING CORE LLM PLANNER / EXECUTOR 3B–7B • INT4 AWQ • 22–35 tok/s ReAct • Hierarchical • Early-Exit Thought → Tool_Call → Observation MEMORY & TASK GRAPH Rolling summary • Trajectory (last 3 turns) VERIFIER / JUDGE Post-condition check • Retry / Re-plan ACTION & TOOLS TOOL REGISTRY Calendar • Mail • Wallet • Settings • UI Control • File • Sensors (declared schema) EXECUTION SANDBOX Capability-based IPC • User confirm gate Trajectory log • Rollback SECURE ENCLAVE Key attestation • Biometric consent Private Cloud Compute (opt-in) HARDWARE: SoC NPU (35 TOPS INT8) • DSP • Unified LPDDR5 • TrustZone / Secure Enclave • Power Scheduler VERIFICATION FEEDBACK LOOP
Figure 1 — Canonical on-device agent stack. Perception and tool execution remain isolated; the LLM never directly touches raw UI without the fusion layer and capability checks.

3. The On-Device Runtime Stack

Building this loop in a production phone is less about model size and more about determinism, power, and latency.

Model Runtime

Most vendors now ship with an on-device inference framework: Apple’s ANE + MLX, Qualcomm’s QNN, MediaTek NeuroPilot, and Google’s AICore. Models are delivered as 4-bit quantized weights with separate 8-bit activations (W4A8) and use flash attention-2 kernels optimized for the NPU. A 3B model occupies ~1.8 GB after quantization, leaving room for the vision encoder and KV cache in 12 GB devices. Speculative decoding with a 0.5B draft model lifts throughput from ~22 to 35 tokens/s without quality loss.

Orchestration sits above the runtime. Instead of a monolithic prompt, the agent is configured via a signed manifest:

// agent-manifest.json — declared capabilities for install-time review
{
  "agent_id": "com.jones.travel-agent.v2",
  "planner_model": "jones-3b-agent-int4",
  "max_autonomy_mins": 3,
  "tools": [
    { "name": "calendar.read", "risk": "low" },
    { "name": "ui.tap", "risk": "medium", "requires": "foregroundApp" },
    { "name": "wallet.pay", "risk": "critical", "requires": "biometric" }
  ],
  "verification": "on_device_judge",
  "data_residency": "on_device_only"
}

A single reasoning step then looks like a tool call:

Thought: User wants rebooking tomorrow AM. Current flight UA412 is missed.
Action: tool_call({ "tool": "airline.search", "args": {"date": "2026-09-10", "cabin": "economy"} })
Observation: { "options": 3, "cheapest": "UA412 08:20 $312" }
Action: tool_call({ "tool": "ui.verify", "expect": "rebooking list visible" })

This structure is why supply-chain security for agent tooling matters: each tool is an attack surface. A compromised calendar provider could inject prompt instructions into an observation. Leading runtimes now isolate tool outputs as untrusted data and apply instruction hierarchy — system > developer > user > tool — so tool content can never override user goals.

4. Security: Capability Isolation & Enclave Attestation

Giving an LLM the ability to tap your screen and send messages is the most privileged software boundary on the phone. The OS must treat the agent as an untrusted principal, even when the model is first-party.

Best practice (see our analysis of secure enclave architecture on modern SoCs) is three-tier isolation:

Privacy benefits are real but conditional. On-device execution avoids the DNS and network metadata leakage inherent to cloud assistants, but the perception layer still processes sensitive screen content. Apple and Google both mandate that screenshots used for grounding never leave the NPU SRAM and are discarded after fusion — a claim that must be verified via binary attestation, not just policy.

5. Cloud vs. On-Device vs. Hybrid

Dimension Cloud Agent On-Device Agent Hybrid (with PCC)
Latency (step) 1.2–3.5s + network jitter 180–450ms NPU local 400–800ms (local + enclave roundtrip)
Model capability 70B–400B, best reasoning 3B–8B quantized, good for routine 3B local + 70B in enclave for planning
Privacy / Residency Screen + data sent off-device On-device only Attested enclave, no vendor access
Offline use No Yes Degrades to on-device
Tool access Cloud APIs only Full local intents, UI control, sensors Both, with privacy gate
Battery cost Radio-heavy, 0.6–1W NPU-heavy, 1.2–2.5W burst Mixed, scheduler decides
Best for Complex research, web tasks Personal, repetitive phone tasks Balanced, future default

The pragmatic path for 2026–2027 is hybrid. The device handles perception and low-risk actions locally; the planner may call into a Private Cloud Compute enclave for multi-step decomposition when confidence is low. User policy — “never send health data off device” — is enforced at the broker, not by prompting.

6. Performance, Thermals & Battery Reality

On-device agents are thermally constrained. A Snapdragon 8 Gen 4 NPU can sustain ~35 TOPS for only 4–6 seconds before throttling to ~18 TOPS. An agentic task that takes 60–90 seconds will see mid-task throttling unless the scheduler interleaves.

Vendors mitigate this with three techniques: (1) Chunked execution — the loop sleeps 250ms between actions to let the SoC cool and to wait for UI animations; (2) Model cascade — a 1.5B model handles trivial taps, waking the 7B planner only for decisions; (3) KV-cache reuse — the prompt prefix (system + tool schemas) is cached in SRAM, saving 30% prefill time. Measured on a 2026 flagship, a 12-step “organize my photos and create an album” task consumed 4.2% battery and peaked at 42°C — acceptable for occasional use, not for background daemons.

Developers should also consider deterministic fallbacks. The sensor-to-software pipeline in camera modules already shows how tightly coupled hardware and post-processing must be. Agent-driven camera tasks (e.g., “scan receipts and file expenses”) need similar co-design: use the ISP’s own document detection before waking the VLM.

7. Outlook: The Agentic OS

The end state is not a better assistant app. It is an OS where every App Intent is an agent-addressable tool and the shell is agent-orchestrated. Users will express goals, not taps: “prep me for my 9am with briefing docs and a quiet notification profile.” The agent compiler will turn that into a verified plan, execute under enclave attestation, and present a diff for approval.

For engineers, this demands a new discipline: treat prompts as code, tools as syscalls, and trajectories as logs. Version your agent manifests, test them with simulated UI mutations, and assume the model will be jailbroken. The phone that can act for you must also be able to say no.

On-device autonomy is ready for narrow, high-value tasks today — triage, rebooking, organization, accessibility — and will widen as NPUs approach 60 TOPS and 4-bit 7B models close the reasoning gap with their cloud counterparts. The architecture above is the blueprint to get there without trading privacy for convenience.

Frequently Asked Questions

How do on-device AI agents differ from cloud-based assistants like Siri or Google Assistant?

On-device agents run a quantized LLM on the phone’s NPU and maintain an autonomous perception–action loop. They read the live screen, call local app intents and UI automation tools, verify results, and retry — all offline. Cloud assistants classify an utterance in a data center and return a single response; they lack persistent task memory and direct device control.

What hardware is required for reliable autonomous execution?

You need a current flagship SoC with a 15–45 TOPS NPU, 12 GB+ unified memory, and hardware isolation. Apple A18 Pro, Snapdragon 8 Gen 4, Dimensity 9400 and Tensor G5 can run 3–7B INT4 models at 20–35 tokens/s with under 800 mW sustained. Mid-range chips can run 1.5–3B agents for simple tasks at lower speed.

Are on-device agents secure when they can control apps and settings?

They operate under capability-based security. Each agent declares tools in a signed manifest, runs in a sandbox broker, and requires biometric-bound enclave attestation for sensitive actions. Tool outputs are treated as untrusted data to block prompt injection, and the full trajectory is logged for audit and rollback.

Why does battery life suffer with agentic AI?

Agents are NPU-intensive for extended periods: perception, LLM decoding, and verification may run 30–90 seconds per task at 1.2–2.5 W. Mitigations include hierarchical model cascades, speculative decoding, chunked execution with cooling gaps, and hybrid offload to a private enclave only when privacy policy allows.

References & Standards: IEEE 802.11 · 3GPP specifications