blog

Mobile-native agents, in depth.

Long-form articles on the primitives behind agentlib, how it compares to other agent SDKs, and what mobile-native actually means in practice. Subscribe via RSS.

announcements
cornerstone
guides
guide · 7 min

Voice in, vision out, device automation: building a pocket assistant with agentlib

Wire voice input, vision-based screen understanding, accessibility-driven app automation, and on-device routing together. The pocket-assistant pattern in agentlib.

  • #voice
  • #vision
  • #automation
guide · 6 min

MCP on mobile: HTTP and WebSocket transports for Model Context Protocol servers

agentlib speaks Model Context Protocol over both HTTP and WebSocket. MCP tools surface as /bin/mcp.<server>.<tool> CLIs, ready for Sh pipelines. Notifications stream live.

  • #mcp
  • #websocket
  • #http
guide · 6 min

Suspend, resume, and push-resume: agents that survive the OS lifecycle

iOS backgrounds apps. Android kills processes under memory pressure. agentlib's Runner state is serialisable, lifecycle hooks fire on every transition, and push notifications can wake the agent.

  • #lifecycle
  • #suspend
  • #resume
guide · 6 min

21 hooks: the most fine-grained agent loop in any SDK

agentlib has more interception points than any other agent SDK. PreToolUse, PostToolUse, OnSuspend, OnLowBattery, OnNetworkChange — guardrails without prompt hacking.

  • #hooks
  • #guardrails
  • #lifecycle
guide · 7 min

Snapshots, revert, fork: time-travel debugging for mobile AI agents

agentlib's snapshot API is public, content-addressed, and SQLite-backed. snapshot(), revert(), fork() — and an auto-snapshot before any highImpact tool call so users can always undo.

  • #snapshots
  • #fork
  • #revert
guide · 7 min

Subagents at scale: parallel and background dispatch on mobile

agentlib's subagents run sync, in parallel, or in the background — each with its own context window. Research + draft simultaneously; index in the background; survive backgrounding.

  • #subagents
  • #parallel
  • #background
guide · 6 min

Progressive-disclosure skills: 30 skills in 600 tokens

Skills are markdown bundles that load lazily. The orchestrator sees only name + description until invocation, so a 30-skill catalog costs ~600 tokens instead of 12 K.

  • #skills
  • #context
  • #orchestration
install

Read, then ship.

The articles are written assuming you have agentlib running in front of you. Install takes 60 seconds.