callstack/agent-device

Mobile app automation and verification for AI coding agents. CLI, MCP server, and typed Node.js API for iOS, Android, HarmonyOS, TV, web, macOS, and Linux.

What it solves

agent-device provides a feedback loop for AI coding agents, allowing them to verify their code changes in a live running application. It eliminates the need for agents to rely solely on screenshots, providing them with structured data to inspect, control, and debug apps across multiple platforms.

How it works

The tool operates as a CLI, an MCP server, or a Node.js API. It uses a local accessibility bridge for iOS Simulators, XCTest for physical iOS/tvOS, ADB for Android, and various other platform-specific helpers (HDC for HarmonyOS, Vega CLI for Vega OS, AT-SPI for Linux).

Agents interact with the app using token-efficient accessibility snapshots and references (refs) to elements. The system manages device ownership to prevent parallel agents from conflicting on the same simulator or emulator, and it can connect to remote device clouds like BrowserStack and AWS Device Farm.

Who it’s for

It is designed for AI coding agents (such as Claude Code, Cursor, Windsurf, and Cline) and developers building their own agents using the AI SDK or Eve, who need to automate the verification of mobile, TV, and desktop applications.

Highlights

  • Multi-platform support: Works across iOS, Android, HarmonyOS, tvOS, Android TV, Amazon Vega OS, web, macOS, and Linux.
  • MCP Server: Built-in Model Context Protocol (MCP) server for easy integration with compatible AI agents.
  • Evidence Capture: Ability to capture screenshots, video, logs, traces, and performance samples as evidence for review.
  • CI/CD Integration: Supports saving workflows as .ad scripts for automated replay in CI environments.
  • Device Coordination: Coordinates device access across parallel agent worktrees to prevent conflicts.

Related

  • Project
  • Project
  • Project
  • Project
  • Project