On-Device AI Agents Are Rising: The Operating System Is the New AI Battleground

    This article examines the shift from in-app AI features to system-level agents and breaks down the four building blocks that make them possible: system-wide context, a standardized app intent framework, on-device small models, and an agent runtime inside the OS. It covers the architecture components each layer needs — unified context services, event buses, permission gateways, capability registries, planners, execution engines, and audit trails — along with device/cloud collaboration patterns, model lifecycle management, power and privacy constraints, developer practices such as intent-ifying core features, designing slots and confirmation flows, declaring permissions and side effects, building agent observability, and the security and governance guardrails (least privilege, human-in-the-loop, explainability, idempotency, rollback) required before agents can act on a user's behalf.

    1. The Trend: From In-App AI to System-Level Agents

    Over the past few years, intelligent capabilities have mostly shipped as in-app features: call a model inside an application to summarize, translate, generate, recommend, or hold a conversation. The value of that model is not in question, but it has a natural ceiling — the AI’s abilities are sealed inside a single app’s data and interaction loop. When a user wants to complete a task that spans several apps, they end up absorbing the cost themselves: moving information from one place to another, stitching steps together, and confirming the final result.

    The change on-device agents introduce is not simply “put a model in the OS.” It pushes the operating system itself into a more proactive role. Instead of waiting for the user to launch an app, the system starts to understand the user’s goal, dispatch app capabilities, assemble context across apps, and then — at the right moment — surface an actionable suggestion or carry out the action directly.

    This shift can be described as three layers stacking on top of one another:

    1. System-level context capability. The OS already holds foundational signals such as input, notifications, clipboard, location, calendar, sensors, and device state, and it can assemble them into cross-app context within the bounds of granted permissions.
    2. App capabilities become schedulable. Apps stop being collections of screens and progressively expose their functionality as “intent capabilities” that the system can discover and invoke.
    3. On-device models become the normal operating mode. Small models run locally for intent understanding, information extraction, summarization, classification, and routing, giving system-level agents a foundation of low latency, privacy friendliness, and offline availability.

    Once these three layers combine, the role of the operating system changes in a subtle but profound way: it is no longer just the environment in which apps run, but gradually becomes an agent runtime environment. In that environment, the core work is no longer “render a screen” but “understand the goal, plan the steps, select capabilities, execute actions, and verify results.”

    2. System-Level Context: The Prerequisite for a Global View

    One of the biggest limitations of conventional AI apps is fragmented context. Each app only knows what happens inside its own boundaries, while a user’s real needs almost always cut across multiple apps and device states. A user might want to create a reminder from a conversation, adjust a schedule based on travel plans, start a collaboration from a file’s contents, or get a recommended action based on the current device state.

    The first job of a system-level agent is to organize scattered information into a context model that is understandable, controllable, and auditable. Context here is not about “collecting more data” — it is about striking a balance between permissions, privacy, and usefulness.

    A mature system-level context model typically includes the following elements.

    2.1 Explicit context

    Information the user provides deliberately, such as:

    • The text currently being entered;
    • Voice commands;
    • Selected content;
    • The object currently being viewed or edited;
    • A goal description the user initiates.

    Explicit context usually carries higher priority because it is a direct expression of the user’s present intent.

    2.2 Implicit context

    Supporting information the system obtains through legitimately granted permissions, such as:

    • Current time, location, and network status;
    • Calendar entries, reminders, and notification summaries;
    • Clipboard contents;
    • Application running state;
    • Battery level, storage, and performance state.

    Implicit context helps an agent judge whether now is a good time to do something, but it must be tightly permission-controlled. The system cannot override user expectations in pursuit of appearing “smart,” or it will create serious trust problems.

    2.3 Application state context

    This includes which app the user is currently in, the page state, editing state, and task progress. It matters a great deal to an agent because it determines whether the system can correctly interpret the situation in which a user action occurs.

    For example, when a user says “move this to tomorrow,” a system that can perceive whether the current screen is an itinerary, an email, a chat thread, or a document can choose a different capability entry point. Without application state context, the agent is reduced to vague guessing and the probability of a wrong action rises sharply.

    2.4 User preferences and historical patterns

    If a system-level agent wants to keep improving the experience, it needs to learn user preferences without violating privacy — frequent contacts, habitual time slots, common workflows, and how tolerant the user is of notifications and automated execution. The key here is not unbounded collection but a preference model that is controllable, explainable, and revocable.

    From an architectural perspective, system-level context generally requires several foundational components:

    • A unified context service responsible for aggregation, structuring, freshness management, and permission filtering;
    • An event bus to propagate inputs, notifications, and application state changes;
    • A permission gateway that decides which data which class of agent may use, and when;
    • Context storage that manages the boundary between short-lived session context and long-term preferences;
    • An audit system that records how sensitive context was used, so usage can be traced and corrected.

    In other words, whether a system-level agent can exist at all depends first on whether the context architecture is clear, controllable, and governable enough.

    3. An App Intent Framework: Turning Features from “Screens” into “Callable Services”

    Context alone is not enough. Without a mechanism for invoking capability, an agent can “understand” but cannot “act.” So the second key element of a system-level agent is an application intent framework.

    The traditional interaction model is “the user finds an entry point, opens a screen, completes an action.” The agent-era model looks more like “the user states a goal, the system finds the right capability, and a composed set of actions runs.” That requires apps to expose their capabilities in a structured way.

    3.1 An intent is not just a command

    Many people read “intent” as a voice command or a keyboard shortcut, but in the context of system-level agents it is closer to a semantic capability description. It describes what the app can do, not exactly how the user should tap.

    A calendar capability, for instance, does not have to expose only an “open calendar” entry point. It might offer:

    • Create an event;
    • Query free time;
    • Modify an existing event;
    • Detect conflicts;
    • Set reminders;
    • Share an event summary.

    Each capability can be abstracted as an intent node. The system then picks the most appropriate node given the context, rather than always opening a fixed screen.

    3.2 Intent capabilities need standardized descriptions

    For the system to schedule them safely, app capabilities generally need to carry the following descriptive information:

    • Capability name and semantic category;
    • Input parameters and slots;
    • Output result type;
    • Required permissions;
    • Preconditions;
    • Whether it produces side effects;
    • Whether user confirmation is required;
    • Whether it supports idempotency and rollback;
    • Applicable scenarios and constraints.

    A sample capability description might look like this:

    1. {
    2. "intent": "create_calendar_event",
    3. "description": "Create a calendar event",
    4. "slots": {
    5. "title": "Event title",
    6. "start_time": "Start time",
    7. "duration": "Duration"
    8. },
    9. "required_permissions": ["calendar.write"],
    10. "side_effect": true,
    11. "confirmation_policy": "required"
    12. }

    This is platform-agnostic. It is a general way of expressing that the system needs to know what the capability is, what input it requires, whether it changes external state, and whether user confirmation is mandatory.

    3.3 Apps move from “UI-first” to “capability-first”

    This shift has a large impact on developers. In the past, developers focused on navigation paths, button placement, and visual hierarchy. Going forward, they also need to consider:

    • Whether the app’s core capabilities can be discovered by the system;
    • Whether capability descriptions are sufficiently semantic;
    • Whether input parameters are structured;
    • Whether partial parameter completion is supported;
    • Whether asynchronous execution and result callbacks are supported;
    • Whether a recoverable path exists when execution fails;
    • Whether least-privilege permissions and auditability are in place.

    Put differently, an app has to design capability interfaces for the “system” as well as designing screens for people. This pushes app architecture away from being screen-centric and toward being service-oriented, intent-oriented, and event-driven.

    3.4 Routing and orchestration on the system side

    When the system receives a user goal, it usually does not invoke a single capability; it orchestrates several. Suppose the user says, “Tidy up today’s itinerary and remind me to bring the documents.” The system might need to:

    1. Recognize that the goal is “organize itinerary + document reminder”;
    2. Query the calendar and relevant notifications;
    3. Extract events and to-dos;
    4. Invoke the calendar capability to create or adjust events;
    5. Invoke the reminder capability to set a notification;
    6. Invoke a document or notes capability to add a document checklist;
    7. Summarize the result and ask the user to confirm.

    This requires the system to have a task planner, a capability registry, an execution engine, conflict handling, and state recovery. Without these components, an agent easily degrades into a single-shot command executor, unable to handle complex tasks.

    4. On-Device Small Models: The Local Inference Engine

    A system-level agent has to respond in real time, so it cannot rely entirely on the cloud. The value of on-device models is amplified further on mobile devices and at the edge.

    On-device small models are not meant to replace large cloud models. They take on a subset of tasks that are high-frequency, low-latency, privacy-sensitive, and closable locally.

    4.1 Tasks that suit on-device models

    On-device models are typically a good fit for:

    • Initial screening of user input intent;
    • Key entity extraction;
    • Text classification and routing;
    • Summarization and compression;
    • Simple semantic matching;
    • Local preference judgment;
    • Preliminary processing of privacy-sensitive data;
    • Offline basic Q&A and assisted suggestions.

    These tasks share a common profile: strict latency requirements, high data sensitivity, frequent invocation, and relatively concentrated context.

    4.2 Device–cloud collaboration becomes the default architecture

    The realistic architecture is neither “everything on device” nor “everything in the cloud,” but device–cloud collaboration:

    • The device handles fast understanding, preliminary planning, privacy-sensitive processing, and low-latency feedback;
    • The cloud handles complex reasoning, long-context integration, multi-step planning, cross-modal understanding, and deep generation;
    • The system chooses dynamically based on task complexity, network conditions, battery level, privacy classification, and user preferences.

    For example, simple schedule recognition can complete locally, while summarizing a long document, planning across multiple conversational turns, or deeply orchestrating several apps may need a cloud model. Even then, a cloud call should minimize unnecessary data upload and send only the necessary summary or structured result.

    4.3 Model lifecycle management

    Once on-device models enter the system, they introduce new engineering problems:

    • How model versions are updated;
    • How to roll back a failed update;
    • How multiple models coexist;
    • How model resource consumption is scheduled;
    • How inference tasks are coordinated with the system’s power policy;
    • How to avoid intent-understanding drift caused by a model upgrade;
    • How to run safety and compliance checks on model output.

    So an on-device model is not simply “bundled into the system.” It needs to be brought under a unified model service capability covering distribution, version management, staged rollouts, resource limits, runtime monitoring, and degradation strategies.

    4.4 The twin constraints of privacy and power

    On-device models are naturally advantageous for privacy, but that is not a reason to loosen governance. On-device intelligence demands even clearer permission boundaries and stricter data minimization.

    At the same time, mobile devices have limited resources. An agent that wakes frequently, infers continuously, and schedules work in the background can raise power consumption significantly. The system therefore needs deliberate operating policies for on-device intelligence, such as:

    • Waking only on user interaction or a key event trigger;
    • Using lightweight models for high-frequency tasks;
    • Asking the user to confirm when confidence is low;
    • Batching the handling of complex tasks;
    • Enforcing resource quotas for background agents;
    • Lowering the level of automatic execution when the battery is low or the network is unstable.

    The maturity of on-device agents depends not only on model capability but also on whether the system can balance experience, performance, privacy, and power consumption.

    5. Agent Runtime: How the OS Becomes an Orchestration Center

    Once context, intent capabilities, and on-device models are in place, the operating system can form a complete agent runtime. This runtime is not a single module but a set of cooperating system mechanisms.

    5.1 Core components

    A typical agent runtime usually includes the following parts.

    (1) Intent understanding module. Identifies the goal expressed by the user, covering both explicit input and implicit needs, and uses context to judge what task the user actually wants done.

    (2) Task planning module. Breaks a complex goal into executable steps. For example, “organize today’s meetings and prepare materials” is decomposed into querying the schedule, extracting meeting information, generating to-dos, setting reminders, and preparing a materials checklist.

    (3) Capability registration and discovery module. Maintains the app and system capabilities that can be invoked. It must support capability description, permission declaration, version management, trust classification, and conflict handling.

    (4) Execution engine. Invokes concrete capabilities and manages task state, retries, rollback, asynchronous execution, and result aggregation.

    (5) Permission and policy center. Determines whether a given agent may read a class of context, invoke a capability, or trigger a category of side effect. It needs to support tiered authorization, user confirmation, temporary authorization, and audit records.

    (6) Memory and state service. Separates short-term session memory from long-term user preferences. The system must know which information is valid only for the current task and which may, with user authorization, be retained as a long-term preference.

    (7) Monitoring and audit module. Records the agent’s decision path, invocation chain, abnormal states, and user feedback, supporting debugging, effectiveness evaluation, and security traceability.

    5.2 How a typical task flows

    The following pseudocode shows a generic agent dispatch flow:

    1. def handle_user_request(user_input, device_context):
    2. # 1. Understand the user's goal
    3. intent = planner.understand(
    4. user_input=user_input,
    5. context=device_context
    6. )
    7. # 2. Build the task plan
    8. plan = planner.create_plan(
    9. intent=intent,
    10. available_capabilities=registry.list()
    11. )
    12. # 3. Invoke capabilities step by step
    13. results = []
    14. for step in plan.steps:
    15. capability = registry.find(step.intent)
    16. if not policy.allow(capability, step.slots):
    17. return request_user_confirmation(capability)
    18. result = capability.invoke(
    19. slots=step.slots,
    20. timeout=step.timeout
    21. )
    22. results.append(result)
    23. # 4. Summarize and respond
    24. return summarizer.compose(results)

    This code is illustrative only and does not map to any specific platform. It expresses one core idea: an agent does not simply call a function. It runs a complete loop of understanding, planning, authorization, execution, and summarization.

    5.3 Proactive dispatch versus passive invocation

    Traditional operating systems are mostly reactive: the user taps an icon and the system launches the app. An agent runtime is more proactive: based on context and the user’s goal, the system initiates task orchestration at an appropriate moment.

    Proactive dispatch has to obey a few principles:

    • Explainable — users should be able to understand why the system suggested or performed an action;
    • Controllable — high-risk operations must support confirmation, delay, or cancellation;
    • Reversible — operations with external side effects should support rollback wherever possible;
    • Auditable — sensitive operations should leave logs;
    • Degradable — when a model is untrustworthy, the network misbehaves, or permissions are insufficient, the system should fall back to conventional interaction.

    Without these constraints, the more proactive an agent becomes, the more uncontrollable users will feel it is. Genuinely mature system-level intelligence is not unlimited automatic execution; it is bounded, proactive service delivered inside a trust framework.

    6. What Developers and Enterprises Should Do

    For developers and enterprises, on-device agents are not a distant concept. They will gradually change app design, service architecture, and interaction patterns. A few areas are worth preparing for now.

    6.1 Turn core capabilities into intents

    Developers need to review their own apps: which capabilities are worth having the system schedule? Which actions are suitable to be agentified?

    A collaboration app, for example, could expose:

    • Create a task;
    • Query task status;
    • Update task progress;
    • Extract meeting notes;
    • Generate a to-do list;
    • Share a project summary.

    If these capabilities remain buried in buttons and screens, a system-level agent cannot invoke them effectively. Only by making capabilities semantic, parameterized, and permission-aware can they enter a larger scheduling ecosystem.

    6.2 Design good slots and confirmation mechanisms

    When an agent invokes a capability, it often cannot supply all the required information at once. Capability design therefore needs to support:

    • Missing parameters;
    • Slot clarification;
    • Multi-turn completion;
    • Default value strategies;
    • User confirmation;
    • Fallback on failure.

    When creating an event, for instance, the start time may be missing. The system should be able to ask a follow-up question or infer the value from context rather than failing outright. For high-impact operations, the action about to be performed should be shown clearly and remain editable by the user.

    6.3 Define permission and side-effect boundaries

    Developers must declare clear permissions and side-effect levels for each capability. For example:

    • Query capabilities generally carry lower risk;
    • Create capabilities require input validation;
    • Modify capabilities require version control and conflict handling;
    • Delete capabilities require stronger confirmation;
    • Highly sensitive actions such as payments, sending messages, or changing account details should require explicit user authorization by default.

    This is not only a security requirement but the basis of user trust.

    6.4 Build agent observability

    When an app is invoked by an agent, developers need new observability dimensions:

    • Which system agent initiated the call;
    • Whether the invocation source and context are trustworthy;
    • Whether slots were filled accurately;
    • What the invocation success rate is;
    • Whether users frequently cancel;
    • Which intents tend to fail;
    • Which capabilities are frequently invoked in combination.

    This data helps developers improve capability design instead of relying only on conventional screen-tap metrics.

    6.5 Build device–cloud service capabilities

    If an enterprise wants to offer capabilities to on-device agents, it usually needs to consider both the device and the cloud:

    • The device handles fast recognition and local execution;
    • The cloud handles complex reasoning, unified accounts, synchronization, and cross-device coordination;
    • General-purpose cloud services can carry foundational needs such as logging, monitoring, messaging, storage, and containerized services;
    • Data synchronization, model distribution, policy configuration, and audit analysis also need cloud support.

    The point is not simply stacking resources but establishing a clear division of labor: which tasks must complete locally, which can be uploaded asynchronously, and which require user authorization before any upload.

    7. Security, Privacy, and Governance: The Non-Negotiables

    The more powerful a system-level agent becomes, the more rigorous its governance structure needs to be. An agent does not only read information; it may also perform actions. It does not only understand the user; it can also affect the state of the user’s device.

    7.1 Least privilege

    An agent should not hold blanket context permissions by default. It should request only the minimum permissions a task requires and release them promptly when the task ends. For sensitive data, the system should support:

    • Tiered authorization;
    • Temporary authorization;
    • Single-use authorization;
    • User revocation;
    • Scope limitation on usage;
    • Time limitation on usage.

    7.2 Human-in-the-loop

    For high-risk operations, a human-in-the-loop mechanism must remain in place. For example:

    • Confirm the recipient before sending a message;
    • Confirm the target path before modifying a file;
    • Confirm the amount and account before creating a payment;
    • Show the scope of impact before deleting data;
    • Provide a preview and a rollback entry point before a bulk operation.

    An agent can offer suggestions and prepare results, but the decisive authority should stay with the user wherever possible.

    7.3 Explainability and auditability

    The system needs to be able to explain to the user:

    • Why the operation was performed;
    • Which context was used;
    • Which capabilities were invoked;
    • Whether confirmation took place;
    • Whether the action can be undone.

    At the same time, developers and service providers need audit capability so problems can be localized when something goes wrong. This is not only a technical issue but a matter of compliance and trust.

    7.4 Preventing wrong execution and chained errors

    Agent tasks often span multiple steps. If one step in the middle is wrong, it can trigger a chain reaction. The system needs to design for:

    • Step validation;
    • Result confirmation;
    • Rollback on failure;
    • Idempotency control;
    • Transaction boundaries;
    • Abnormal interruption;
    • Points where the user can intervene.

    Cross-app tasks in particular need clear execution boundaries, so that one incorrect instruction does not pollute the state of multiple apps.

    8. Implications for the Industry and Product Teams

    On-device agents will not replace the traditional app form overnight, but they will change product design priorities. Going forward, the competitiveness of endpoint products may no longer rest only on visual polish and feature count, but on the following:

    1. How standardized the capabilities are — whether an app can be discovered and safely invoked by the system.
    2. How usable the context is — whether the system can understand the user’s goal within granted permissions.
    3. How efficient device–cloud collaboration is — whether a balance can be struck between privacy, latency, and complexity.
    4. How trustworthy the security mechanisms are — whether users dare to hand tasks to an agent.
    5. How open the ecosystem is — whether the system can accommodate many kinds of app capabilities rather than being monopolized by a single service.
    6. How natural the interaction is — whether users can complete tasks in a goal-driven way instead of learning complicated paths.

    From this angle, the operating system is becoming the infrastructure of the agent era. It no longer merely manages hardware and app lifecycles; it also takes on intent understanding, task planning, capability dispatch, and policy enforcement.

    For developers, this means rethinking the value an app provides: not just offering screens, but offering capabilities that can be composed; not just waiting for user taps, but participating in system-level task orchestration.

    For users, the ideal state is not “more buttons” but “fewer actions”: the system understands the goal, proactively proposes a path, and completes complex tasks with the user’s approval.

    9. Conclusion: The Agent Race Is a System-Capability Race

    The rise of on-device agents looks, on the surface, like one more step forward in model capability. In substance, it is a systemic upgrade of the operating system, the app ecosystem, the permission model, and the device–cloud architecture. System-level context gives agents a global view, the app intent framework lets them invoke external capabilities, on-device models provide a real-time and privacy-friendly foundation, and the agent runtime organizes all of it into a scheduling system that can keep running.

    For the period ahead, the real question for the industry is not whether to build agents, but how to build them safely, controllably, and reliably. Whoever first establishes a clear capability catalog, sound context governance, an auditable execution chain, and a trust mechanism users can actually perceive will be better positioned in the next generation of intelligent endpoints.

    On-device agents are not a single feature. They are a rethinking of the operating system’s role. Computing devices are moving from “responding to instructions” to “understanding goals,” from “stacking apps” to “composing capabilities,” and from “users learning the system” to “the system understanding users.” That is the long-term shift most worth watching in this round of technological change.