The phone-control directory in lowercaseLabs lets a Codex agent operate apps on a nearby physical iPhone from a local Mac, starting with Eight Sleep, according to the repository README. Builders open phone-control as a Codex project to invoke $iphone-mirroring-codex or $eight-sleep-codex, or point Codex directly to the corresponding SKILL.md file from another project. For Claude Code or another agent, the README instructs builders to place macOS computer-control calls in a separate adapter that selects the Mirroring window, observes the phone screen, and sends input, while reusing the two shared skills.1

How the Codex workflow runs

In the documented Codex workflow, the adapter selects the app with cua.getApp("iPhone Mirroring") and falls back to cua.getApp("/System/Applications/iPhone Mirroring.app") if it receives cgWindowNotFound. When the accessibility tree exposes only the Mac window or toolbar, the skill calls getScreenshot() or getAXStateAndScreenshot() to locate visible controls. It opens iPhone Spotlight with pressKey("super+3"), sends individual pressKey calls such as eight if typeText leaves the field blank, and launches the highlighted app with pressKey("Return").1

Configuring checks and reading outputs

Before reading or changing a Pod temperature, the Eight Sleep skill verifies the selected side on a split Pod and the displayed unit or level scale, according to eight-sleep-control/SKILL.md. For clock-time schedules, overnight-profile.md records the Pod side, local timezone, start and end times, nights to run, displayed units, check interval, and any approved absolute targets with their time windows. During a check, the workflow logs the time, current target or Off status, and any verified live-dial changes, then reports observations and skipped or failed checks when the window ends.1

How it works

System requirements and limits

Apple's documentation states that iPhone Mirroring requires a Mac with Apple silicon or the Apple T2 Security Chip, two-factor authentication on the shared Apple Account, a passcode on the iPhone, and both Wi-Fi and Bluetooth enabled. The Mac cannot share its internet connection or use AirPlay or Sidecar, and iPhone Mirroring is currently unavailable in the European Union. Apple also notes that mirroring pauses automatically after inactivity and stops if the iPhone is unlocked.2

What changed

Safety checks for unattended runs

Because Apple pauses mirroring after idle time, the repository's overnight workflow requires a read-only scheduled test after the intended idle interval under the planned Mac power and lock settings before enabling writes. Live desktop access during an interactive chat does not establish scheduler access, according to overnight-profile.md. In an unattended run, if the app has no capturable window or Apple shows an authentication prompt, the skill reports the blocker and ends.1