agent-device

Automate iOS and Android app interactions with snapshot-based discovery and selector-driven replay. Supports iOS simulators/devices and Android emulators/devices with session-bound automation, multi-tenant remote daemon mode, and device-scope isolation for QA workflows Core commands: snapshot for UI discovery with refs, press / fill / scroll for interactions, open / close for app lifecycle, install / reinstall for binary deployment Includes utilities for logging, network inspection,...

npx skills add https://github.com/callstackincubator/agent-device --skill agent-device

agent-device

For a normal app-driving task, start immediately. Do not probe first with --help, --version, devices, appstate, snapshot, or screenshot:

agent-device open <app> --foreground

That starts the session and returns the initial interactive snapshot with @refs.

Loop: act with press|click|fill|longpress <target> ... --settle, scroll <direction> --settle, or back --settle; continue from the printed diff, verify the named expectation with a read-only command (wait text "...", is, or get; bare find clicks, so check with find text "..." exists), then run agent-device close, or agent-device close --shutdown if your session booted a local simulator or emulator, unless the user asks to keep it running. When a result needs time, wait with wait stable or wait absent <selector> instead of sleeping and reading again. Pull to refresh is scroll refresh. To restart the app, or make it load new JavaScript, run open <app> --relaunch; for a JS-only change, metro reload. There is no reload command.

For exploratory QA, read agent-device help dogfood; its platform checks run agent-device audit.

For an accessibility review of a whole app, read agent-device help accessibility.

Reaching an off-screen target is one command, not a scroll-and-check loop: scroll down --until <selector> scrolls until that element is on screen, and scroll bottom runs to the end of the content. Repeated bare scroll down calls are the slow way to find something.

Copy refs byte-for-byte: @e12, @e12-s4 — keep the @ and any -sN. Prefer current refs, then id/label/role selectors; coordinates are a last resort. If snapshot reports sparse/AX-unavailable, its refs and selectors are invalid: run agent-device screenshot, inspect the image, use coordinates, then retry snapshot -i after navigating. Otherwise run snapshot -i only when the diff lacks the next target. Save a capture to a file you keep: agent-device screenshot evidence.png (or pass --out <path>).

Error output includes corrective hints; follow them instead of re-planning. When your host runs commands in a sandbox and allows agent-device by command name, run each call as its own command: do not chain it with ;, &&, or |, and do not quote its binary path, or the host's allow rule misses the call and it cannot reach the daemon or the device. If the error is DEVICE_IN_USE, another session holds the device: open with --wait <ms>, or run agent-device device status --stale and then agent-device device release --stale to clear a reclaimable owner. Never kill daemon processes with pkill -f agent-device. Only when the task is specialized (for example gestures, scripting, TV, macOS, remote, or debugging) or a command shape is unclear, run agent-device help <topic>. agent-device --help lists topics, agent-device help commands lists commands; neither is a startup step.

To capture network traffic on a Limrun session, see agent-device help remote or the Limrun docs.

More skills from callstackincubator

agent-device
callstackincubator
Automates interactions for Apple-platform apps (iOS, tvOS, macOS) and Android devices. Use when navigating apps, taking snapshots/screenshots, tapping, typing,…
assess-react-native-migration
callstackincubator
Assesses whether and how an existing mobile product should migrate to React Native. Use when auditing one or more product repositories for migration readiness,…
cordierite
callstackincubator
Connect a Cordierite-enabled React Native app to your machine and drive it from the terminal using tools the app registers — useful for agents, scripts, and…
create-react-native-library
callstackincubator
Scaffolds React Native libraries with create-react-native-library for standalone libraries or local native modules and views. Use when creating or working on…
dogfood
callstackincubator
Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA,…
dogfood
callstackincubator
Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to "dogfood", "QA",…
github
callstackincubator
GitHub workflow automation via gh CLI for pull requests, stacked PRs, and repository management. Provides stacked PR merge workflow: squash-merge the first PR, then rebase and update base branch for each subsequent PR in the chain Includes conflict detection and manual resolution prompts to prevent silent failures during multi-PR merges Covers core gh CLI operations: PR creation, status checks, squash/rebase merging, and branch management Optimized for low context usage by relying on gh CLI...
github-actions
callstackincubator
GitHub Actions workflow patterns for React Native iOS simulator and Android emulator cloud builds with downloadable artifacts. Use when setting up CI build…