- Feb 9, 2018
- 2,485
- 891
Been building iPhone automation for a while. A few weeks ago we hooked real iPhones up to AI agents through MCP, so Claude Code / Codex can see the screen and tap, swipe and type on an actual phone. Sharing what we learned, because most of it wasn't what I expected.
1. The AI is not the hard part. The phone is. Agents are decent at "look at the screen, decide where to tap". What kills runs is latency and timing. A real phone needs ~1 s after a tap, 1.5–2 s after a swipe, 3–5 s after opening an app. Agents love to fire the next action instantly, so we had to build the waiting into every tool instead of hoping the model waits.
2. WDA was the first thing we dropped. The usual way to automate a non-jailbroken iPhone is WebDriverAgent (Appium / XCUITest). It works for testing, but it leaves traces apps can see: a test-runner app on the phone, developer signing, the phone in UI-automation mode. For anything running on real accounts that was a dealbreaker, so we built our own "modems" instead: a small device plugged into each iPhone that lets us control it remotely, no jailbreak and no WDA on the phone.
3. "Did it happen?" is the real problem. The phone receiving a tap doesn't mean the app did anything. Every action returns a fresh screenshot so the agent checks before moving on, and if the link stalls we mark the result "uncertain" instead of letting the agent blindly repeat it. Repeating a "type text" or "open app" twice is how you end up with doubled posts.
4. Jailbroken vs non-jailbroken is a different game. On jailbroken phones you can read the UI tree, so the agent can tap by text ("tap Next") instead of guessing coordinates. Way more reliable. Non-jailbroken (through the modems) works too, but the agent has to be the eyes.
5. Don't use your own AI credits for vision. We dropped our own vision/OCR layer from the MCP. The agent you already pay for (Claude, GPT) reads the screenshots fine, and users don't want a second AI bill.
Where we are now: 10 iPhones posting on Instagram, Facebook and TikTok, driven only by MCP agents. No custom scripts per app, just the agent, the screen and the tools. Getting here was a hassle, but it was worth it.
What it's good at right now: posting flows, repetitive in-app work, checking things across many phones, "open app X, go to Y, screenshot it" jobs. What it's bad at: anything time-critical, and long chains without a human glancing at it now and then.
Happy to answer questions on the setup: MCP config, how we handle timing, modems vs jailbroken, why we left WDA.
1. The AI is not the hard part. The phone is. Agents are decent at "look at the screen, decide where to tap". What kills runs is latency and timing. A real phone needs ~1 s after a tap, 1.5–2 s after a swipe, 3–5 s after opening an app. Agents love to fire the next action instantly, so we had to build the waiting into every tool instead of hoping the model waits.
2. WDA was the first thing we dropped. The usual way to automate a non-jailbroken iPhone is WebDriverAgent (Appium / XCUITest). It works for testing, but it leaves traces apps can see: a test-runner app on the phone, developer signing, the phone in UI-automation mode. For anything running on real accounts that was a dealbreaker, so we built our own "modems" instead: a small device plugged into each iPhone that lets us control it remotely, no jailbreak and no WDA on the phone.
3. "Did it happen?" is the real problem. The phone receiving a tap doesn't mean the app did anything. Every action returns a fresh screenshot so the agent checks before moving on, and if the link stalls we mark the result "uncertain" instead of letting the agent blindly repeat it. Repeating a "type text" or "open app" twice is how you end up with doubled posts.
4. Jailbroken vs non-jailbroken is a different game. On jailbroken phones you can read the UI tree, so the agent can tap by text ("tap Next") instead of guessing coordinates. Way more reliable. Non-jailbroken (through the modems) works too, but the agent has to be the eyes.
5. Don't use your own AI credits for vision. We dropped our own vision/OCR layer from the MCP. The agent you already pay for (Claude, GPT) reads the screenshots fine, and users don't want a second AI bill.
Where we are now: 10 iPhones posting on Instagram, Facebook and TikTok, driven only by MCP agents. No custom scripts per app, just the agent, the screen and the tools. Getting here was a hassle, but it was worth it.
What it's good at right now: posting flows, repetitive in-app work, checking things across many phones, "open app X, go to Y, screenshot it" jobs. What it's bad at: anything time-critical, and long chains without a human glancing at it now and then.
Happy to answer questions on the setup: MCP config, how we handle timing, modems vs jailbroken, why we left WDA.