This article explains cua-driver, an open-source macOS tool enabling AI agents to control apps in the background without hijacking the cursor. It uses SkyLight's private API and yabai patterns to achieve seamless automation.
Highlights
cua-driver allows background AI control without moving the user's cursor or changing focus.
It leverages SkyLight's private SLEventPostToPid API for sparse accessibility access.
The tool uses yabai's focus-without-raise pattern to prevent Space switching.
Inspired by OpenAI's Codex, it solves synchronous input constraints of traditional GUI agents.
Contrasts with previous VM-based isolation methods by enabling direct background control.