agent-desktop-macos

agent-desktop-macos is a skill for Claude Code, Codex from lahfir/agent-desktop. It costs 98 tokens per session (1,509 once invoked), scanned A, original, Apache-2.0.

A macOS guide for agent-desktop, a command-line tool that observes and controls applications on a desktop. It covers macOS requirements, privacy permissions, and troubleshooting.

In plain words
What is it for?
Use it to set up and diagnose desktop observation, screenshots, and actions on macOS 13 or later.
Why use it?
It helps avoid failures caused by missing Accessibility, Screen Recording, or Automation permissions, unsupported sessions, or other macOS restrictions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it to set up and diagnose desktop observation, screenshots, and actions on macOS 13 or later.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lahfir/agent-desktop/agent-desktop-macos
About the project

agent-desktop is a command-line tool that lets AI agents inspect and control desktop applications through operating-system accessibility data instead of screenshots or pixel matching. It is used to automate applications such as Finder, Safari, Xcode, and Slack with structured JSON commands and results.

lahfir/agent-desktop · 1,816 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add lahfir/agent-desktop --skill agent-desktop-macos
Clone the repo
git clone --depth 1 https://github.com/lahfir/agent-desktop

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-desktop-macos

README.md
[![agentmods](https://agentmods.dev/badge/skills/lahfir/agent-desktop/agent-desktop-macos/github.svg)](https://agentmods.dev/skills/lahfir/agent-desktop/agent-desktop-macos)
Your own site
<a href="https://agentmods.dev/skills/lahfir/agent-desktop/agent-desktop-macos"><img src="https://agentmods.dev/badge/skills/lahfir/agent-desktop/agent-desktop-macos/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agent-desktop-macos

Your own site · 80×15
<a href="https://agentmods.dev/skills/lahfir/agent-desktop/agent-desktop-macos"><img src="https://agentmods.dev/badge/skills/lahfir/agent-desktop/agent-desktop-macos.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,509 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00098 $0.01509
Opus 5.5 $0.00039 $0.00604
Sonnet 5.5 $0.00020 $0.00302
Haiku 4.5 $0.00010 $0.00151

Measured 4d ago against content hash 18a67d0f4c47, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agent-desktop-macos scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/agent-desktop-macos/SKILL.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on 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). 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 status. It includes the permission report and the state root.
  2. Run agent-desktop permissions. It reports accessibility, screen_recording and automation. Each is granted, denied, not_required or unknown. A denied entry carries a suggestion.
  3. If a permission is denied, run agent-desktop permissions --request. It shows the system prompt.
  4. Open System Settings > Privacy & Security > Accessibility. Turn on the launching app.
  5. Restart the launching app. A running process does not pick up a new grant.
  6. Run agent-desktop snapshot --app Finder -i to confirm.

permissions does not prompt. permissions --request can prompt, including for Automation. Automation reports unknown when macOS would need to prompt.

What differs on macOS

Headless by default. Ref actions use accessibility actions only. They do not steal focus, move the cursor, send keys, or write the pasteboard. Add the global --headed flag only when you want physical input.

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.

Read the full file on GitHub · 67 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 67 lines · 98 tokens per session scan A 18a67d0f4c47

Subscribe to this mod's changes

agent-desktop-macos is a skill published in the GitHub repository lahfir/agent-desktop (1,816 stars, last pushed today), licensed Apache-2.0. It adds 98 tokens to every session and 1,509 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-19.

Related

Other skills, from other repositories

kwin-desktop-automation

Use when the user asks to launch, click, type, screenshot, or otherwise drive a Linux KDE Plasma / Wayland desktop app through the kwin-mcp MCP server. Trigger when kwin-mcp tools are available and the task involves desktop GUI automation, end-to-end GUI testing, kiosk / embedded device control, or live KDE Plasma…

isac322/kwin-mcp · 140 tokens

tauri-pilot

Inspect, interact with, and test a running Tauri v2 app via CLI. Communicates over Unix socket using JSON-RPC 2.0. Use when testing UI, automating interactions, or debugging a Tauri app.

mpiton/tauri-pilot · 52 tokens

hatch3r-browser-verify

Opt-in browser verification skill — spec-run-first Playwright verification (assertions execute in the runner, agent reads only failures), axe-core a11y audits, toHaveScreenshot() regression diffs, E2E test scaffolds, and snapshot-mode exploratory driving. Default ON for UI-affecting agent invocations; disable globally…

hatch3r/hatch3r · 83 tokens

computer-use

A set of rules for controlling Windows desktop applications through screen observation and simulated mouse and keyboard actions. It also describes how to find and launch installed applications and verify the results.

Plocr/Reasonix-computer-use · 23 tokens

web-navigator

A browser-automation routing guide for web tasks. It directs navigation, page inspection, and actions such as clicking or filling forms to the appropriate browser tool.

Plocr/Reasonix-computer-use · 30 tokens

pagouse

Observe and (with a grant) drive Chromium tabs via the pagouse CLI: snapshot the accessibility tree, click/fill by ref, navigate. Not a seat adapter. Trigger keywords: pagouse, browser tab, fill form, click the button on the page, snapshot page, AX tree.

gianlucamazza/pagouse · 62 tokens