Aller au contenu
Skillpedia
Agents15k · #10915

agent-desktop-macos

Ce qu’il fait

Donne à l'assistant un guide pour piloter les applications d'un Mac grâce à l'outil agent-desktop. Il s'adresse aux personnes qui veulent que l'assistant clique et lise dans les applications macOS.

Quand l’utiliser

  • ✓Quand vous voulez que l'assistant clique, saisisse ou lise des applications sur votre Mac.
  • ✓Quand l'automatisation Mac échoue avec une erreur d'autorisation ou un arbre d'accessibilité vide.
  • ✓Quand vous avez besoin d'aide avec des applications Chromium ou Electron sous macOS.

Lien du skill

https://github.com/NanmiCoder/cc-haha/blob/main/native/agent-desktop/skills/agent-desktop-macos/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/NanmiCoder/cc-haha/blob/main/native/agent-desktop/skills/agent-desktop-macos/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Prépare mon Mac pour que tu puisses cliquer à ma place dans l'application Réglages, et dis-moi quelles autorisations tu as besoin.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Le guide vous accompagne pour vérifier les autorisations dans Réglages Système, puis utilise l'outil pour observer l'écran et agir sur les commandes. Il couvre aussi les menus, les boîtes de dialogue et les applications Chromium ou Electron.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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-desktop binary separately, grant it too.
  • Screen Recording permission, only for screenshot and for session start --screenshots artifacts.
  • Automation permission for System Events, only where a command reports it missing.

First contact

  1. Run agent-desktop permissions.
  2. 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 --request shows the system prompts instead.
  3. 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.
  4. Run agent-desktop permissions to confirm granted. The next agent-desktop call sees a new grant, so the launching app does not need a restart.
  5. Run agent-desktop snapshot -i to confirm. It reads the focused app. snapshot --app Finder -i returns WINDOW_NOT_FOUND when 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 (, . / ; ' [ ] \ - =

Questions fréquentes

Quelles autorisations sont nécessaires ?

L'accessibilité pour l'application qui lance l'outil. L'enregistrement de l'écran n'est nécessaire que pour les captures d'écran.

L'assistant peut-il accorder les autorisations à ma place ?

Il peut ouvrir la bonne page des Réglages Système avec un guide, mais c'est vous qui confirmez le changement avec Touch ID ou un mot de passe.

Quelles versions de macOS sont prises en charge ?

Le guide indique macOS 13 ou une version plus récente, sur les Mac Intel comme sur les Mac Apple Silicon.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
15k
Position au classement
#10915
Licence
—
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires