AI Agent Hub
Back to plugins
🖥️

dsh-mac-cua

Client Updated 2026.09.16

Run the following command in DeepSeek Harness:

dsh plugin install Saunato/dsh-mac-cua

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install Saunato/dsh-mac-cua in DeepSeek Harness. The source is available at https://github.com/Saunato/dsh-mac-cua. After installation, run dsh-cua-setup --write to register absolute paths and grant Accessibility permission.

About this plugin

In the DSH agent ecosystem, the command line is well-served, but the desktop GUI has always been the missing piece. dsh-mac-cua closes that gap: it lets the agent read and operate any macOS desktop application through the native Accessibility API, from Finder to Safari to any Cocoa or Swift app, without AppleScript, JXA, or System Events. Everything flows through a single, fixed JavaScript REPL channel.

The design philosophy is deliberately minimal: only two tools are exposed, js and js_reset. Every capability, including clicking, typing, pasting, key chords, scrolling, dragging, selecting text, reading the accessibility tree, and capturing screenshots, lives inside the sky API. The first read returns the full tree; subsequent reads return only the diff, keeping long interactions cheap in tokens. Elements are addressed by element_index with coordinates as a fallback rather than a default. Paste restores your clipboard automatically, and multi-line text should use paste rather than type_text to avoid unintended form submission.

This plugin is ideal for developers who run DSH Desktop and want their AI agent to operate macOS GUIs the way a human would. It requires macOS 14.4+ and Node.js 20+, with Accessibility permission granted and Screen Recording permission if screenshots are needed. Once set up, the agent gains the same class of desktop read-write access as a screen reader, with prompt-level policy guidance to confirm before high-risk actions such as deleting data, sending messages, or submitting financial transactions.

Use Cases

  • Let the DSH agent read and operate any macOS native app UI directly, without window switching or manual copy-paste
  • Run multi-step form filling in long conversations with incremental diff-based tree reads to reduce token cost
  • Agent autonomously performs clicks, typing, key chords, scrolling, and dragging, falling back to coordinates and informing the user when elements are inaccessible

Best For

  • DSH Desktop users who want their AI agent to operate the macOS GUI like a human
  • macOS developers building GUI automation workflows for native applications
  • AI engineering teams extending desktop-level interaction capabilities for DSH agents