agent-desktop-macos
Что он делает
Даёт ассистенту руководство по управлению приложениями на Mac с помощью инструмента agent-desktop. Он нужен людям, которые хотят, чтобы ассистент нажимал кнопки и читал приложения macOS.
Когда использовать
- ✓Когда вы хотите, чтобы ассистент нажимал, печатал или читал приложения на вашем Mac.
- ✓Когда автоматизация на Mac падает с ошибкой разрешений или показывает пустое дерево доступности.
- ✓Когда нужна помощь с приложениями Chromium или Electron на macOS.
Ссылка на скилл
https://github.com/NanmiCoder/cc-haha/blob/main/native/agent-desktop/skills/agent-desktop-macos/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Настрой мой Mac так, чтобы ты мог за меня нажимать в приложении «Настройки», и скажи, какие разрешения нужны.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Руководство проводит по проверке разрешений в «Системных настройках», затем инструмент наблюдает за экраном и действует с элементами управления. Также описаны меню, диалоги и приложения Chromium или Electron.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
agent-desktop on macOS
Read the core skill first (agent-desktop skills get desktop) for the observe, act, verify loop. This skill covers only what is different on macOS. Symptoms and fixes are in references/troubleshooting.md.
Requirements
- macOS 13 or later, Intel or Apple Silicon.
- Accessibility permission for the app that launches agent-desktop (Terminal, iTerm2, Warp, VS Code, Codex). macOS 27 and later name this list Device Control and Data Access. If System Settings lists the
agent-desktopbinary separately, grant it too. - Screen Recording permission, only for
screenshotand forsession start --screenshotsartifacts. - Automation permission for System Events, only where a command reports it missing.
First contact
- Run
agent-desktop permissions. - If a permission is denied, run
agent-desktop permissions --guide. It opens the correct System Settings page with a panel that shows the user which app to drag into the list. The user confirms with Touch ID or a password, and the panel moves to the next missing permission by itself. The command returns at once with"guide": "started","already_running"or"not_needed".agent-desktop permissions --requestshows the system prompts instead. - If the guide cannot run, open System Settings > Privacy & Security > Accessibility (Device Control and Data Access on macOS 27 and later). Add the launching app and turn it on.
- Run
agent-desktop permissionsto confirmgranted. The next agent-desktop call sees a new grant, so the launching app does not need a restart. - Run
agent-desktop snapshot -ito confirm. It reads the focused app.snapshot --app Finder -ireturnsWINDOW_NOT_FOUNDwhen Finder has no open window.
permissions does not prompt. permissions --request can prompt, including for Automation. permissions --guide does not prompt and covers Accessibility and Screen Recording only. Automation reports unknown when macOS would need to prompt.
What differs on macOS
Headed is physical first for click, right-click, type, clear and scroll. Core focuses the exact window of the ref. The adapter then sends a real click, key or wheel event to the verified point. expand, collapse, set-value, select, toggle, check, uncheck, focus and scroll-to stay semantic under --headed. Double-click, triple-click, hover and drag need --headed. Raw --xy input never changes focus.
Judge delivery by observation. AX return codes do not prove an effect. Finder returns success from an AXConfirm that does nothing. Snapshot again or use get and is to check the result.
Surfaces. Use --surface menubar for File, Edit and View menus and for menu bar apps (status items). While a menu, sheet, alert or popover is open, refs from the window tree behind it are the wrong target.
Menus. right-click headless uses AXShowMenu. If the menu opened but the app returned APP_UNRESPONSIVE with retry: unsafe, do not retry. Inspect the menu with --surface menu. For combo boxes and menu buttons, use select @ref "Option". select needs a closed-to-open menu transition, so dismiss any open menu first.
Notification Center. The notification commands drive Notification Center through accessibility, with the rules in the core commands-system reference. When agent-desktop opens the center, it closes it afterwards and restores the previous app focus. Pass both --expected-app and --expected-title on a single dismiss or action, because the stack shifts. Use wait --notification --app "App" for banners that vanish before you list them.
Chromium and Electron. agent-desktop switches on the web accessibility of a Chromium renderer automatically when it needs it. For a dense running app, use snapshot --skeleton -i --compact, then drill with --root @ref.
Identity. launch accepts a display name ("System Settings") or a bundle ID (com.apple.systempreferences). Other commands take the display name through --app. Window IDs such as w-4521 stay valid for the life of the window. Find them with list-windows.
Keys. The primary modifier is cmd: press cmd+c, press cmd+s. Quit shortcuts such as cmd+q, cmd+shift+q, cmd+alt+esc, ctrl+cmd+q and cmd+shift+delete return POLICY_DENIED unless you pass --force. To quit an app, use close-app. Punctuation keys work in combos, as the symbol (, . / ; ' [ ] \ - =
Частые вопросы
Какие разрешения нужны?
Разрешение «Универсальный доступ» для приложения, которое запускает инструмент. Запись экрана нужна только для снимков.
Может ли ассистент выдать разрешения за меня?
Он может открыть нужную страницу «Системных настроек» по руководству, но изменение подтверждаете вы сами через Touch ID или пароль.
Какие версии macOS поддерживаются?
По руководству — macOS 13 или новее, на Mac с процессорами Intel и Apple Silicon.
Подробности
Оригинальное описание автора
macOS platform guide for the agent-desktop CLI. Use for desktop automation on macOS: granting Accessibility and Screen Recording permission (TCC), what headed mode does on macOS (physical-first click, type and scroll), surfaces (menu, menubar, sheet, popover, alert), Notification Center, Chromium and Electron apps including launch --cdp, and fixing PERM_DENIED, empty accessibility trees, ACTION_FAILED and APP_UNRESPONSIVE.
repo: NanmiCoder/cc-haha
Популярность
- Звёзды на GitHub
- 15k
- Место в рейтинге
- #10915
- Лицензия
- —
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
agent-desktop-ffi
15kПомогает разработчикам вызывать библиотеку agent-desktop напрямую из Python, Swift, Node, Go или C++, без запуска утилиты для каждого действия.
agent-desktop-linux
15kУчит агента управлять приложениями Linux через agent-desktop: что работает в X11 и Wayland и как исправить типичные проблемы первого запуска.
agent-desktop-windows
15kПоказывает агенту, как автоматизировать приложения Windows: что работает, кавычки в PowerShell, свёрнутые окна и ограничения повышенных прав.
agent-desktop
15kПозволяет агенту видеть и управлять приложениями рабочего стола на Mac, Windows или Linux: читать дерево доступности, нажимать, печатать и проверять результат.
Похожие скиллы
add-model-provider
394kПомогает агенту подключить нового провайдера ИИ-моделей к OpenClaw безопасными командами, хранить ключи API не в открытом виде и провести живой тест.
acp-router
394kПомогает агенту передать задачу инструменту для программирования, например Claude Code или Cursor, через OpenClaw, чтобы работа шла в этом инструменте.
browser-automation
394kУчит агента пошагово управлять веб-страницами: входить в аккаунты, работать с вкладками и восстанавливаться, если страница перестала отвечать.