The Computer Use Agent That Doesn’t Hijack Your Mac.

Give Claude Code direct MCP superpowers into native desktop apps — tapping Meta AI for live Instagram trends and Google Gemini for continuous video QA — running 100% invisibly in the background while you keep typing code.

0.00px Physical Mouse Drift
0ms Keyboard Focus Theft
0 Mission Control Swooshes
~500 Lines of Clean Python

See GhostCUA In Action

Watch traditional CUAs steal cursor focus vs. GhostCUA silently executing in the background.

GhostCUA in Action
Interactive Terminal & MCP Inspector

Inspect The Live Agent Session

Switch between Claude Code CLI, the FastMCP servers, and the universal AGENT.md blueprint.

0 Focus Theft

If you cannot use your computer, it is not automation.

Current computer use agents turn your workstation into a frozen kiosk. GhostCUA routes directly through the Darwin Accessibility tree and Carbon AppleEvents.

Traditional Screen-Hijacking CUA

Anthropic CUA, trycua, and traditional visual agents

1
Fires 60fps ScreenCaptureKit loops eating battery
2
Steals hardware mouse pointer and jerks coordinates
3
WindowServer triggers Mission Control Space swoosh
4
Target window flashes to front; IDE typing lost
Result: Developer cannot touch their laptop until the agent finishes.

GhostCUA Background Engine

Native PyObjC, Carbon AppleEvents, and FastMCP

1
Direct AppleEvent aevt/odoc with kAENeverInteract
2
DFS Accessibility tree traversal targets PID directly
3
In-place AXUIElement text injection with verified clearance
4
Lossless pasteboard restoration preserves user clipboard
Result: 0px cursor movement. 0ms focus loss. You keep coding undisturbed.

The Three Workflows You Cannot Do Today

Stop doing manual copy-paste ping-pong between AI chat windows. Let Claude Code delegate autonomously.

Built For Your Coding Agent Workflow

GhostCUA ships with native Model Context Protocol (MCP) servers. Configure it once, and Claude Code, Cursor, Zed, or Antigravity can call desktop apps as first-class tools.

Claude Code (CLI) Cursor Antigravity Codex Zed
Star & Clone on GitHub
~/.cursor/mcp.json or claude_desktop_config.json
{
  "mcpServers": {
    "ghost-cua-gemini": {
      "command": "/path/to/ghost-cua/.venv/bin/python",
      "args": ["/path/to/ghost-cua/gemini_mcp.py"]
    },
    "ghost-cua-meta-ai": {
      "command": "/path/to/ghost-cua/.venv/bin/python",
      "args": ["/path/to/ghost-cua/meta_ai_mcp.py"]
    }
  }
}

The Engineering Benchmark

Why GhostCUA outperforms heavyweight computer use automation frameworks.

Capability GhostCUA (Ours) Anthropic CUA mac-cua trycua / CUA
Runs 100% in Background Yes (0 Focus Theft) Hijacks screen Flashes windows Requires focus
Preserves Physical Mouse 0 Cursor Movement Moves pointer Clicks screen Coordinate clicks
Mission Control Space Swoosh 0 Space Changes Frequent jumps Swooshes spaces Swooshes spaces
Screen Recording Permission Not Required Mandatory Trips SCK breaker Mandatory
Framework Footprint ~500 lines pure Python ~400MB runtime 170MB multi-process 1.1 GB Rust ecosystem
User Clipboard Safety Lossless snapshot & restore Overwrites pasteboard Overwrites pasteboard Overwrites pasteboard

Keep Coding While Your Agent Works.

Clone the open-source repository, link it to Claude Code or Cursor via MCP, and never lose keyboard focus again.

Clone ghost-cua on GitHub