Who it is forA developer or QA tester who needs to check an app's sign-in or checkout flow on a real Android or iPhone when no emulator is available.
The problemManually tapping through a flow on several phones is slow, and emulators do not always match the device a user holds.
The outcomeThe agent walks through the flow, reads the screen after each tap, and returns a step-by-step log with the final state.
What you need first
- uv installed, with Python 3.12 available
- A coding agent such as Claude Code or Codex
- Either a Mac with iPhone Mirroring, an Android phone with adb and developer options on, or a Phone Harness Cloud account
- Your own hands to pair the phone, grant Accessibility and Screen Recording, or approve adb
Steps
- Install Phone Harness with uv using Python 3.12, for example
uv tool install phone-harness. (inferred, check the README) - Run
phone-harness skillto register the skill with your coding agent. - Run
phone-harness doctorto check the connection to the phone. - Start your test in the agent, asking it to use
screenshot(),find_text, andtapon the target app. - Read the agent's log and screenshots, then rerun with
phone-harness cloud stopafter a cloud session ends.
Prompt for your agent
Using the phone-harness repo at https://github.com/ShawnPana/phone-harness, open <app name> on the connected phone, follow the test script <script path>, and report each step with the screen text it read. Verify that the last screen matches the expected result in the script before reporting success.
Caveat. OCR sees text, not icons, so unlabeled buttons need a screenshot and a vision-capable model.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for ShawnPana/phone-harness and "Test a mobile app flow on a real phone with an agent"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer