Give the agent a task. It reads the app through agent-device, asks Jev to choose an action, performs it, and repeats with a fresh snapshot. Each run saves a report, decision trace, snapshots, and, when supported, a device recording.
This is a local proof of concept built with the TypeSafe and agent-device SDKs.
Use Node.js 24 or newer. For live runs, you also need an iOS simulator/device with Xcode or an Android emulator/device with ADB, and an installed test app.
npm ci
cp .env.example .envSet TYPESAFE_API_KEY in .env, or supply it in your shell environment. .env and run artifacts are ignored by Git.
Check your device setup with npx agent-device devices. See the agent-device setup guide for platform prerequisites.
Pass the app ID, platform, and task. Describe the expected outcome in the task itself:
npm run qa -- \
--app com.apple.Preferences \
--platform ios \
"Open Accessibility, then Display & Text Size. Scroll to Smart Invert and verify that its switch is visible. Do not change any settings."This example uses Settings on an English-language iOS simulator. For your app, replace the app ID and task:
npm run qa -- \
--app com.example.shop \
--platform android \
"Add a Canvas backpack to the cart, increase its quantity to two, and open checkout. Verify that the summary shows the backpack and a quantity of two. Stop before placing an order."Jev chooses actions until it selects qa_pass, qa_fail, or incomplete. That choice sets the final status. No separate assertion file is needed. The harness selects a simulator or emulator automatically, preferring one already booted. Use --udid on iOS or --serial on Android to override the selection. npm run qa -- --help lists the optional controls.
Each decision receives the current snapshot, the previous snapshot, and the action executed between them. Earlier snapshots stay in the saved artifacts instead of accumulating in the model context.
For text entry, put exact values in double quotes inside the task. The harness makes those strings available as fill choices:
npm run qa -- --app com.example.shop --platform ios \
'Search for "Canvas backpack" and verify that its product page opens.'The CLI prints each selected action, then the result, startup time, run duration, token usage, estimated inference cost, and video path. Run details are saved as JSON.
PASSED: Jev found that the task was satisfied.
Actions executed: <count> | QA confidence: <confidence>
Startup: <seconds> s
Duration: <seconds> s
Jev input tokens: <tokens>
Estimated inference cost: $<cost>
Video: artifacts/<run-id>/run.mp4
JSON: artifacts/<run-id>/report.json
Startup includes device selection, app launch, runner preparation, and recording setup. Duration starts with the QA loop and includes saving the recording and closing the session.
If the requested state is already visible, the run can pass without any actions. Ask the agent to repeat the navigation from a specific starting screen if you want to exercise the full path.
Exit codes are 0 for pass, 1 for fail, 2 for incomplete, and 3 for an error. Incomplete means the agent couldn't finish or confidently assess the result.
The video, screenshots, snapshots, and decision trace are saved in artifacts/<run-id>/. Inference cost uses returned token usage and JEV_INPUT_USD_PER_MILLION; it excludes device costs.
- Runs stop after 40 steps or 180 seconds by default. Adjust these with
--max-stepsand--timeout. - Large screens can exceed Jev's 255-choice limit. Use
--scopeto focus on part of the app. The harness also caps each request's state at 80,000 characters.