EAS agent-device demo
EAS Workflow with QA agent using agent-device and AI SDK
README
EAS agent-device demo
This repo is a minimal Expo + CNG example for running AI-assisted Android and iOS QA on EAS Workflows.
What it does
- Reuses compatible Android and iOS simulator builds with
fingerprint+get-build+repack - Falls back to a fresh
buildwhen the fingerprint changes - Runs a small Node.js QA agent built with the AI SDK
ToolLoopAgent - Uses
agent-deviceto drive the Android app and iOS simulator, take screenshots, and summarize findings - Posts one combined mobile QA summary back to the GitHub pull request with
github-comment - Optionally uploads screenshots to Vercel Blob so the PR comment can link them
qa-release and qa-ios-simulator are fast review artifacts for PR automation. They are not production shipping artifacts.
Files
Required setup
- Link the project to EAS.
- Keep using CNG. Do not commit
android/orios/. - Configure an EAS environment named
preview. - Add
AI_GATEWAY_API_KEYto that environment. - Treat the
qa-releaseandqa-ios-simulatorprofiles as CI review output only. Keep store or production release flows separate.
Optional environment variables for the QA job:
AGENT_DEVICE_ANDROID_DEVICE: Android AVD name to boot in CIAGENT_DEVICE_IOS_DEVICE: iOS simulator name to boot in CIQA_MODEL: Override the default model (openai/gpt-5.4-mini)BLOB_READ_WRITE_TOKEN: Upload screenshots to Vercel Blob and include public links in the PR comment
Local smoke test
npm install
npx tsc --noEmit
The workflow runner writes section.md, status.txt, and report.json to artifacts/qa/ during execution. Temporary screenshots are written outside the workspace and uploaded to Vercel Blob when configured.
To execute the runner directly with Node 24, provide the same environment variables the workflow sets:
Android:
AI_GATEWAY_API_KEY=... \
QA_PLATFORM=android \
APP_PATH=/absolute/path/to/app.apk \
APPLICATION_ID=dev.expo.easagentdevice \
BUILD_ID=test-build \
PR_JSON='{"number":1,"title":"Test PR","body":"Smoke test"}' \
node ./scripts/agent-qa/index.ts
iOS simulator:
AI_GATEWAY_API_KEY=... \
QA_PLATFORM=ios \
APP_PATH=/absolute/path/to/MyApp.app \
APPLICATION_ID=dev.expo.easagentdevice \
AGENT_DEVICE_IOS_DEVICE="iPhone 17" \
BUILD_ID=test-build \
PR_JSON='{"number":1,"title":"Test PR","body":"Smoke test"}' \
node ./scripts/agent-qa/index.ts