En

Agent Desktop

A CLI tool for automating desktop applications via the accessibility tree.

开发流程 自动化桌面应用交互操作自动填写表单切换多账号批量处理文件 claudecursor通用 ★ 2k Updated 2026-08-02

Install & Use

Copy this prompt and send it to your AI assistant (Claude / Cursor / TRAE / Codex / WorkBuddy etc.) to auto-install:

Help me install this AI Skill: Agent Desktop.
It is used for: A CLI tool for automating desktop applications via the accessibility tree.
Full Skill content: https://321skill.com/skills/agent-desktop-x-2/raw/index.md
Read that page and install it.

The prompt includes a link to the full Skill content. You can also view the full content.

This Skill addresses the challenge of AI agents being unable to directly control native desktop applications. In practical development, AI coding assistants or agents often need to click buttons, fill forms, switch windows, or read UI states, but traditional solutions rely on image recognition or browser automation, which are ineffective for native desktop apps. agent-desktop leverages the operating system's native accessibility tree, enabling AI to observe and operate any desktop software just like a human.

Usage is straightforward: simply install the CLI tool in your terminal and grant it accessibility permissions. You can then use natural language instructions to have your AI agent invoke agent-desktop to perform actions, such as "Open Calculator, click number 7, click plus, click 3, click equals, screenshot the result." It employs a progressive skeleton traversal strategy, first obtaining a UI skeleton overview and then expanding details as needed, significantly reducing token consumption. All interactions return structured JSON containing ref identifiers, making it easy for AI agents to maintain state.

It is ideal for teams or individuals looking to extend AI capabilities to desktop applications. This is especially useful for developers already using AI coding agents like Claude or Cursor, who wish to automate desktop software testing, batch-process office tasks, or build agent workflows. Test engineers can use it to write automated test cases for desktop GUIs; operations engineers can use it to monitor and operate management tools; and agent developers can integrate it as part of their toolchain.

It is recommended to use this tool uniformly in a macOS 12+ environment. Note that it currently only supports the macOS Phase 1 adapter; Windows and Linux versions are in the planning stages. Before use, you must grant the terminal app "Accessibility" and "Screen Recording" permissions in System Preferences. Due to its reliance on the native accessibility tree, some non-standard UI frameworks (e.g., games, custom controls) may not be fully recognized.

Key Features

Unlike SikuliX, which relies on image recognition, agent-desktop accesses UI structure via the native accessibility tree, outputting structured JSON instead of coordinates, allowing AI agents to directly reference element IDs for precise operations. Compared to Playwright, it is not limited to browsers and can control any native desktop application.

Limitations

Currently only supports macOS 12+ and requires Accessibility and Screen Recording permissions. Windows/Linux adapters are under development.

FAQ

What system permissions are required?

You need to grant the terminal app "Accessibility" and "Screen Recording" permissions in System Preferences > Privacy & Security.

Does it support Windows or Linux?

Currently, only the macOS Phase 1 adapter is supported. Windows and Linux versions are in the planning stages.

Installation guide for AI assistants

If your AI coding assistant (Claude Code, Cursor, TRAE etc.) can see this page, send it this message to auto-install:

Visit https://321skill.com/skills/agent-desktop-x-2/raw/index.md to read the original Skill definition (Markdown format) for Agent Desktop, and install it according to the instructions.