agent-device gives AI coding agents a live feedback loop on a running app, so an agent can check its own changes. Agents inspect, control, debug, and verify apps on iOS, Android, and HarmonyOS (simulators, emulators, and physical devices), plus tvOS, Android TV, Amazon Vega OS TV, web, macOS, and Linux. It is exposed three ways over one runtime: a CLI, a built-in stdio MCP server, and a typed Node.js API.
Instead of reasoning over screenshots alone, agents read token-efficient snapshots of the app's accessibility tree, where each element gets a stable ref such as @e2. They act through those refs or through semantic selectors by text, label, or role, and commands that wait for the UI to settle return a diff of what changed. Screenshots, video, logs, traces, network data, performance samples, crash details, and React profiles serve as evidence for review.
Device state lives in sessions scoped to the caller's git worktree, and host-local device claims stop parallel agents from taking over each other's simulators. Each platform uses its own backend: XCTest and an accessibility bridge on iOS and tvOS, ADB on Android, HDC and ArkUI on HarmonyOS, AT-SPI on Linux, and Agent-browser for basic web support. Newer backends cover a subset of commands. The same commands drive hosted devices on BrowserStack, AWS Device Farm, and Limrun.
Working runs can be saved as replay scripts for local use or CI, with experimental healing of stale selectors, or exported as Maestro YAML. Unlike Appium, Detox, or Maestro, where teams write and maintain test suites, the agent chooses each command at run time. It supports native iOS and Android apps as well as React Native, Expo, and Flutter apps.
Features
- Accessibility snapshots: compact screen trees with stable refs, smaller than raw screenshots or verbose dumps
- Semantic actions: tap, fill, scroll, gesture, wait, and assert through refs or selectors by text, label, or role
- Settle diffs: actions can wait for the UI to settle and return only what changed
- Three entry points: a CLI, a stdio MCP server, and a typed Node.js client over the same runtime
- Evidence capture: screenshots, video, logs, traces, network data, performance samples, crash details, and React profiles
- Replay and E2E: saves flows as replay scripts for CI, with experimental selector healing and Maestro YAML export
- Parallel agent safety: sessions scoped to git worktrees and device claims that prevent agents from taking each other's devices
- Remote devices: a remote proxy and device-cloud support for BrowserStack, AWS Device Farm, and Limrun
- Wide target coverage: iOS, Android, HarmonyOS, tvOS, Android TV, Vega OS TV, web, macOS, and Linux
- React Native insight: component trees and re-render profiling for React Native apps
- Agent skills: official skills that teach agents the workflows, targeting rules, and debugging patterns


