TL;DR
ClawMobile introduces a hierarchical runtime architecture for smartphone-native LLM agents that separates high-level language reasoning from deterministic device control. By prioritizing stable system APIs and implementing an iterative verify-and-recover loop, it achieves a 100% task completion rate on real-world mobile tasks, overcoming the inherent brittleness of purely UI-centric mobile agents.
What Problem Does This Paper Address?
As Large Language Models (LLMs) evolve from conversational chatbots into action-oriented agents, smartphones have emerged as the next major frontier for autonomy. However, mobile devices present a uniquely hostile environment for AI agents due to constrained compute resources, fragmented control interfaces, and highly dynamic application states.
Current mobile agents typically rely on a "UI-centric" approach, using probabilistic reasoning to interpret screenshots or UI trees and click on elements. This makes them incredibly brittle; they frequently fail due to minor timing issues (like an app taking too long to launch), ambiguous UI targets, or unexpected pop-up prompts. Conversely, purely API- or tool-based control is stable but incomplete across arbitrary third-party apps. ClawMobile addresses this practical tension by exploring how to systematically coordinate deterministic system control with probabilistic UI reasoning within a single mobile runtime.
Methods
The authors present ClawMobile, an on-device runtime built on top of the OpenClaw agent framework. Instead of embedding all interaction logic within a monolithic agent loop, ClawMobile splits mobile autonomy into three cooperating components:
- Agent Orchestrator: The high-level "brain" that interprets user intent and plans tasks. Crucially, it never directly manipulates the UI; instead, it routes all actions through explicit tool calls to the backends.
- Control Backends: Pluggable modules categorized into Deterministic Backends (system-level ADB commands and hardware-level Termux APIs), UI Agents (using DroidRun for semantic screen interpretation), and Direct UI Control Actions (low-level fallbacks).
- Memory: An auxiliary runtime layer that maintains mobile-specific knowledge and execution preferences to bias backend selection.
ClawMobile employs an Execution-Aware Scheduling strategy driven by a "deterministic-first" policy. When given a task, the orchestrator first checks memory for a structured system API. If available, it executes via a deterministic backend to minimize reasoning overhead and guarantee predictability. If no API exists, it escalates to a semantic UI agent.
Most importantly, scheduling is an iterative verify-and-recover loop. After every backend execution, ClawMobile explicitly re-queries the actual device state to verify progress. If an action fails or a transient interruption occurs (like a slow app launch), the orchestrator re-evaluates the context and adapts its plan rather than blindly repeating the failed action.
Datasets
The system was evaluated on a physical Google Pixel 9 smartphone running Android 16. The authors curated a benchmark of six real-life tasks reflecting common but challenging mobile scenarios:
- Settings: Toggling the system dark theme.
- Chrome: Searching for daily gold prices.
- Google Play: Installing a specific application (RedNote).
- YouTube (Playback): Opening an app, playing a specific music video, and skipping ads.
- YouTube (Interaction): Navigating to the comments section of a video and posting a comment.
- Multi-App Workflow: Searching for Premier League match results in Chrome and writing a summary in the Notes app.
Key Insights and Ideas
- Deterministic-First over Probabilistic-Always: Mobile agents shouldn't treat every interaction as a visual UI task. If a stable ADB command or hardware API can accomplish a step (e.g., launching an app or changing a setting), the system should always prioritize it over pixel-clicking.
- The Power of Explicit State Verification: Traditional agents fail because they implicitly infer success from their own planning logic. ClawMobile treats actual device state updates as first-class feedback signals, transforming fragile one-shot execution into robust, error-correcting workflows.
- The Reliability vs. Efficiency Trade-off: Achieving near-perfect reliability introduces a significant latency penalty. The constant state-checking and fallback planning loops require more time and model invocations, highlighting a core systems challenge for future mobile runtimes.
Key Results
ClawMobile achieved a 100% completion ratio across all six real-world evaluation tasks. It significantly outperformed the baseline UI agent (DroidRun), which frequently failed due to asynchronous app launch delays and ambiguous UI targets (for instance, DroidRun scored only 33% on the Google Play installation task).
However, this robustness comes at the cost of speed: ClawMobile was, on average, 57.5 seconds slower than DroidRun due to its iterative verification steps and deliberate execution pacing.
Limitations and Future Work
- Efficiency & Token Overhead: Serializing full UI trees or screenshots for verification consumes massive amounts of context tokens and network bandwidth. The authors note that future work must explore incremental, delta-based state updates.
- Model Placement: While ClawMobile's runtime is local, LLM inference is currently performed remotely. The authors advocate for hybrid runtime partitioning—using lightweight, on-device models for rapid state verification and offloading complex planning to larger cloud models.
- Skill Abstraction: To operate smoothly across rapidly evolving app ecosystems, mobile runtimes need mechanisms to automatically extract and reuse structured "skills" from execution traces, reducing the need to plan low-level interactions from scratch.
Summary updated