AI Agents Control iPhones Directly via 'phone-harness' and macOS Mirroring
A new tool called 'phone-harness' allows AI agents like Claude Code to directly control and automate iOS applications on an iPhone without requiring APIs. It achieves this by interfacing with the iPhone through the macOS iPhone Mirroring application. This development enables seamless mobile automation by bypassing the need for official app APIs, allowing AI agents to interact with any iOS app just like a human user. It marks a significant step forward in mobile GUI agent capabilities and human-computer interaction. The 'phone-harness' tool can be installed locally and registered as an agent skill, enabling terminal-based AI tools like Claude Code to execute commands on a connected physical iPhone. The setup relies on macOS's built-in iPhone Mirroring feature to bridge the AI's actions to the mobile device.
## BACKGROUND
Historically, automating mobile applications required developers to use dedicated testing frameworks or official APIs, which are often restricted or unavailable for many apps. Claude Code is a command-line AI agent developed by Anthropic that assists developers with coding tasks, while macOS iPhone Mirroring is a feature that lets users view and control their iPhone screen directly from a Mac. By combining these technologies, developers can now grant AI agents visual and interactive access to mobile operating systems.