agent-desktop-macos
Qué hace
Ofrece al asistente una guía para controlar apps en un Mac mediante la herramienta agent-desktop. Está pensada para personas que quieren que el asistente haga clic y lea apps de macOS.
Cuándo usarla
- ✓Cuando quieres que el asistente haga clic, escriba o lea apps en tu Mac.
- ✓Cuando la automatización en Mac falla con un error de permisos o un árbol de accesibilidad vacío.
- ✓Cuando necesitas ayuda con apps Chromium o Electron en macOS.
Link de la skill
https://github.com/NanmiCoder/cc-haha/blob/main/native/agent-desktop/skills/agent-desktop-macos/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Prepara mi Mac para que puedas navegar por la app de Ajustes por mí, y dime qué permisos necesitas.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La guía explica cómo comprobar los permisos en Ajustes del Sistema y luego usa la herramienta para observar la pantalla y actuar sobre los controles. También cubre menús, diálogos y apps Chromium o Electron.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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 (, . / ; ' [ ] \ - =
Preguntas frecuentes
¿Qué permisos necesita?
El permiso de accesibilidad para la app que lanza la herramienta. La grabación de pantalla solo es necesaria para las capturas.
¿Puede el asistente conceder los permisos por mí?
Puede abrir la página correcta de Ajustes del Sistema con una guía, pero tú confirmas el cambio con Touch ID o una contraseña.
¿Qué versiones de macOS son compatibles?
La guía indica macOS 13 o posterior, tanto en Mac con procesador Intel como con Apple Silicon.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 15 mil
- Posición en el ranking
- #10915
- Licencia
- —
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
agent-desktop-ffi
15 milAyuda a los desarrolladores a llamar a la biblioteca agent-desktop desde Python, Swift, Node, Go o C++, sin iniciar la herramienta de línea de comandos en cada acción.
agent-desktop-linux
15 milEnseña a tu agente a controlar apps de escritorio Linux con agent-desktop, incluido lo que funciona en X11 y Wayland y los arreglos habituales de la primera ejecución.
agent-desktop-windows
15 milMuestra a tu agente cómo automatizar apps de Windows: qué funciona, comillas en PowerShell, ventanas minimizadas y límites de las apps elevadas.
agent-desktop
15 milPermite que tu agente vea y maneje apps de escritorio en Mac, Windows o Linux leyendo el árbol de accesibilidad, haciendo clic, escribiendo y comprobando resultados.
Skills parecidas
add-model-provider
394 milPermite que tu agente conecte un nuevo proveedor de modelos de IA a OpenClaw con comandos de configuración seguros, mantenga las claves API fuera del texto plano y haga una prueba en vivo.
acp-router
394 milAyuda a tu agente a enviar una tarea a un asistente de programación como Claude Code o Cursor a través de OpenClaw, para que el trabajo se ejecute en esa herramienta.
browser-automation
394 milEnseña a tu agente a controlar páginas web paso a paso, incluidos los inicios de sesión, las pestañas y la recuperación cuando una página deja de responder.