Agent Device, AI workflows, and mobile testing in practice

Featuring
Kewin Wereszczyński
Software Engineer
@
Callstack
Michał Pierzchala
Principal Engineer
@
Callstack

Agent Device and remote simulators

The session introduced Agent Device, an open-source library designed to let AI agents interact with iOS and Android simulators. The setup involves running a server, for example on a Mac mini, which exposes simulators over the network. Agents running in lightweight environments, such as Linux VMs, can’t run builds or simulators directly, so they rely on this connection. The system enables actions like opening apps, taking snapshots, clicking elements, and collecting visual feedback without local device access.

How agents interact with mobile apps

Agent Device operates through a CLI that abstracts platform-specific tools. It allows agents to boot devices, open apps, inspect UI trees, simulate interactions, and collect logs or performance data. The key mechanism is the accessibility tree snapshot, which provides a structured representation of the UI. Agents use this lightweight data instead of screenshots, reducing cost and improving reliability.

Each interaction is based on references extracted from the snapshot. After every action, the agent can take a new snapshot to verify changes and continue exploration. This enables iterative validation of UI behavior.

From exploration to deterministic tests

The tool can record sessions and generate scripts that replay interactions deterministically. These scripts capture steps like opening an app, clicking elements, and verifying outcomes. They can be reused in CI pipelines without relying on AI at runtime.

Tests remain somewhat resilient to UI changes by using selectors and fallbacks, but still reflect meaningful regressions. This bridges exploratory testing done by agents with reproducible automated tests.

Accessibility as a core dependency

Since Agent Device relies on accessibility data, missing or incorrect accessibility configuration directly impacts its effectiveness. This surfaced issues during usage, such as elements not appearing in snapshots. Fixing accessibility improved both agent performance and app usability for non-visual users.

The approach enforces better accessibility practices while enabling automation, combining both concerns into a single workflow.

AI workflows, costs, and iteration loops

The discussion also covered working with coding agents like Codex and Claude. Agents can generate large amounts of code quickly, but require careful review due to over-engineering or incorrect assumptions. Iteration loops can be slow, especially in cloud environments where agents take time to execute tasks.

Cost evaluation for AI models is non-trivial due to factors like caching and token reuse. Benchmarks need to consider worst-case scenarios to remain comparable across models.

Watch the full stream recording to see Agent Device in action and explore the workflow step by step.

Insights

Learn more about Testing

How AI Agents Can Cut Manual QA by 30% — cover

Oct 30Article

How AI Agents Can Cut Manual QA by 30%

Explore an agentic QA workflow targeting 30% less manual effort across mobile, web, and TV, with test selection, failure triage, and validation.

Give QA Agents the Controls They Need With Appduct — cover

Oct 20Article

Give QA Agents the Controls They Need With Appduct

Use Appduct to give AI QA agents access to app functions for setting test conditions, triggering events, and checking results with UI automation.

cover

Oct 13Article

Agentic Mobile Testing With e2e and agent-device

See how e2e uses agent-device for AI-driven iOS and Android tests, combines exact assertions with agent actions, and replays cached steps without model calls.

Who Tests AI-Written Code? Inside TesterArmy With Szymon Rybczak — cover

Oct 12Podcast

Who Tests AI-Written Code? Inside TesterArmy With Szymon Rybczak

Szymon Rybczak explains how TesterArmy tests web and mobile apps with AI agents, creates test plans for pull requests, and fits into QA workflows.

cover

Aug 4Article

Automating Mobile QA With Cloud Agents

Code review and green CI checks do not prove a mobile app still works. Learn how cloud agents, agent-device, and runtime evidence can verify app behavior before merge.

cover

Jul 21Webinar

Behavior Review for AI-Native Delivery

AI can increase code output faster than teams can verify the real app. See why behavior review matters before merge.

cover

Jul 6Article

Introducing Sniffler: Run only the E2E tests your changes can affect

Sniffler maps changed files to affected E2E tests, so teams can avoid running the full suite on every pull request.

cover

Jun 17Talk

Automating Mobile QA with Cloud Agents

Michał Pierzchała will present Automating Mobile QA with Cloud Agents at Ship London on 17 June 2026.

cover

May 13Podcast

How AI Is Changing React Native Development and Testing

Zack Ebenfeld joins React Universe On Air to talk about how AI is changing React Native workflows, testing, QA, and day-to-day engineering work.

cover

Apr 14Article

Agent React DevTools: Give AI Agents Access to React Internals

Agent React DevTools gives AI agents access to the React component tree, state, and performance data, enabling deeper debugging and more reliable QA for React and React Native apps.

cover

Nov 14Talk

Testing Native Modules Reliably With JavaScript

Learn how React Native Harness bridges the gap between mocking and E2E testing: real device tests, full native access, Jest-style simplicity.

cover

Aug 23Podcast

Introducing E2E Tests to React Native Core

This episode of the React Native Show dives into the recent introduction of End-to-End (E2E) testing in RNTester. Join us as we unpack the thought process, technical considerations, and practical implementation of this new approach to testing in React Native.

cover

Mar 19Tutorial

The Hard Way vs. The React Native AI SDK Way: Stop Writing Custom Modules for Every Model

Learn how React Native AI uses a unified provider model to switch between cloud and on-device LLMs without rewriting application logic, enabling reliable AI experiences online and offline.

cover

Mar 12Tutorial

Build Smarter Apps: Tool Calling & AI Orchestration Explained

Learn how on-device models in React Native can call tools, interact with external APIs, and return structured outputs you can use directly in application logic.

cover

Mar 5Tutorial

MLC LLM + React Native: On-Device AI Without the Pain

Learn how to run third-party on-device LLMs in React Native using MLC LLM. Choose your models, run them efficiently across platforms, and keep a unified JavaScript API with React Native AI.

cover

Feb 24Tutorial

Intelligent Fallbacks with Apple Intelligence in React Native

Learn how to use Apple’s built-in Foundation Models in React Native apps, reduce memory usage, and enable fast, fully on-device AI with React Native AI Apple.

cover

Feb 10Tutorial

What Is the React Native AI SDK? A Complete Intro & Quickstart

Learn why on-device AI matters for React Native apps, how local LLMs behave offline, and what problems React Native AI is designed to solve from day one.

cover

Jan 29Tutorial

Implementing an Android TurboModule with Kotlin

Learn how to implement a React Native TurboModule on Android, from the TypeScript spec and Codegen to the Kotlin implementation and package registration.

cover

Jan 19Tutorial

Working with Different Threads in Swift TurboModules

Learn how JavaScript, native module, background, and main threads interact in React Native TurboModules, and how to use GCD queues to run async work safely in Swift.

cover

Jan 9Tutorial

How to Add Type-Safe Constants to Swift TurboModules

Learn how to expose typed, immutable constants from a Swift TurboModule using Codegen, and get full end-to-end type safety between native and JavaScript.

cover

Dec 30Tutorial

Adding Event Emitters to Your TurboModule in Swift

Learn how to emit native events from a Swift TurboModule and subscribe to them in JavaScript, including proper memory management and Codegen integration.

cover

Dec 22Tutorial

Writing Your First TurboModule in Swift

Learn how to build a fully working TurboModule in Swift, integrate it with Codegen, and bridge it through Objective‑C inside an Expo app.