agent-desktop

agent-desktop is a skill for Claude Code from ericboehs/claude-plugins. It costs 68 tokens per session (2,514 once invoked), scanned A, original, MIT.

A command-line tool for controlling native macOS applications through the accessibility tree, which describes an app’s visible controls.

In plain words
What is it for?
Use it to inspect app interfaces, click, type, select controls, manage windows, and take screenshots.
Why use it?
It lets the agent inspect and operate Mac apps using stable element references instead of relying only on screen coordinates.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the agent-desktop plugin — 1 skill shipped together

Good fit Use it to inspect app interfaces, click, type, select controls, manage windows, and take screenshots.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add ericboehs/claude-plugins
Claude Code
/plugin install agent-desktop

Made for: Claude Code.

Or install agent-desktop, the plugin that ships this one along with the rest of its 1 skill.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/ericboehs/claude-plugins/agent-desktop/github.svg)](https://agentmods.dev/skills/ericboehs/claude-plugins/agent-desktop)
Your own site
<a href="https://agentmods.dev/skills/ericboehs/claude-plugins/agent-desktop"><img src="https://agentmods.dev/badge/skills/ericboehs/claude-plugins/agent-desktop/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ericboehs/claude-plugins/agent-desktop"><img src="https://agentmods.dev/badge/skills/ericboehs/claude-plugins/agent-desktop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,514 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.00068 $0.02514
Opus 5.5 $0.00027 $0.01006
Sonnet 5.5 $0.00014 $0.00503
Haiku 4.5 $0.00007 $0.00251

Measured 2mo ago against content hash 8d54a23731ff, 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 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 2mo 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.

plugins/agent-desktop/skills/agent-desktop/SKILL.md · 134 lines

How it starts

The opening of the file, as written. The whole thing — 134 lines — stays where its author put it; the contents beside it link to each section on GitHub.

agent-desktop (macOS accessibility automation)

Drive native macOS apps through the OS accessibility tree with the agent-desktop CLI. It is NOT an agent; it is a tool you (the agent) invoke. Every command prints a JSON envelope on stdout; you run the observe→act→observe loop.

Prerequisites

agent-desktop must be on PATH and the launching terminal needs Accessibility permission (Screen Recording too, for screenshots). Check with agent-desktop status; it reports both permissions and the latest snapshot. If the command is missing or a binary error appears, suggest /setup-agent-desktop.

The loop

snapshot → decide → act → snapshot → decide → act → ...

Refs (@e1, @e2, …) are assigned per snapshot and scoped to a snapshot_id (e.g. s8f3k2p9). Pass --snapshot <id> on ref commands for determinism; it does not require --session.

Dense apps: skeleton then drill (saves 60–96% tokens)

# 1. shallow depth-3 map; truncated containers show children_count and get refs
agent-desktop snapshot --skeleton --app Xcode -i --compact   # keep snapshot_id

# 2. drill into ONE region instead of re-dumping the whole tree
agent-desktop snapshot --root @e11 --snapshot <id> -i --compact

# 3. act on something revealed in the drill
agent-desktop click @e57 --snapshot <id>

# 4. re-drill the same region to verify (scoped invalidation: only @e11's subtree refs change)
agent-desktop snapshot --root @e11 --snapshot <id> -i --compact

Simple apps: full snapshot is fine

agent-desktop snapshot --app Finder -i --compact   # or use `find` if you know the element
agent-desktop find --role button --app TextEdit

Electron apps: enable accessibility first, THEN snapshot

Electron/Chromium apps (Slack, VS Code, Discord, Notion, Obsidian, Teams, Figma) ship their full a11y tree turned OFF for performance. Until something flips it on, every snapshot returns only a ~3-ref stub. Set AXManualAccessibility=YES on the app once per launch with the bundled helper, then proceed as normal. On a live test this took Slack from 3 refs to 534.

Read the full file on GitHub · 134 lines

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. 2mo ago First seen · 134 lines · 68 tokens per session scan A 8d54a23731ff

Subscribe to this mod's changes

agent-desktop is a skill published in the GitHub repository ericboehs/claude-plugins (2 stars, last pushed 2mo ago), licensed MIT. It adds 68 tokens to every session and 2,514 once invoked, about $0.0003 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-08-31.

Related

agent-desktop compared with skills from other repositories

agent-desktop next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-desktopericboehs/claude-pluginsSkill22mo agoMITA68Claude Code
imagegenopenai/codexSkill134ktodayApache-2.0A113Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79ktodayMITA200Claude Code, Codex
playwright-climicrosoft/playwrightSkill99ktodayApache-2.0A19Claude Code
systematic-debuggingobra/superpowersSkill314k4d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143ktodayMITA95Claude Code
chat-pet-sprite-creationmicrosoft/vscodeSkill195ktodayMITA53Claude Code, Codex