Authorization notice. Esp32 Iphone Agent is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Who it is forA developer or tester who needs to see why a phone agent tapped the wrong thing or got stuck, and wants the evidence in a form another agent can read.
The problemDebugging an AI phone agent is hard when the run is only a live screen. Without a record of each action, failures are guesswork.
The outcomeA replayable run on the phone with taps and swipes drawn on top, plus an exported trace of screenshots, actions and annotations.
What you need first
- An ESP32-S3 board, tested with a Seeed Studio XIAO ESP32S3 (plain version, 8 MB PSRAM)
- An iPhone on iOS 18 or later with cellular data
- An OpenAI-compatible vision model endpoint and API key
- A Mac with Xcode, needed once to flash the board and build the app
Steps
- Complete a run of the agent on the iPhone so it is saved on the phone.
- Open Runs in the app and select the run you want to examine.
- Replay the run step by step to see the taps and swipes drawn on the screen.
- Tap ⋯ and choose Export trace to get the screenshots, actions and saved annotations.
- Pass the exported trace to another agent and ask it to explain each failed step.
Prompt for your agent
Using the repo onehumanbeing/esp32-iphone-agent, take the exported trace from <run folder> and list every step where the taps or swipes did not change the screen. Expected output: a table of step number, action and whether the screen changed. Verify that each row matches a screenshot in the trace.
Caveat. Export is done from the app on the phone; the README's batch export and USB copying steps are in docs/run-data-export.md and were not checked here.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for onehumanbeing/esp32-iphone-agent and "Replay and export phone agent runs for analysis"
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