agent-desktop
БесплатноБез исполняемых скриптовНе проверенDesktop automation through the real Rust agent-desktop CLI, published in Printing Press through a small bridge. Use when an agent needs to observe, inspect…
от mvanhorn★ 2 170 звёзд на GitHubОб этом скилле
Agent Desktop - Printing Press CLI
agent-desktop is a native desktop automation CLI for AI agents. It is not an
agent and does not call an LLM. It exposes the operating system accessibility
tree as structured JSON, assigns snapshot-scoped refs such as @e1, and lets
the calling agent perform semantic actions against those refs.
This Printing Press package installs agent-desktop-pp-cli, a catalog bridge.
The bridge does not reimplement automation. It installs or delegates to the real
remote agent-desktop package from https://github.com/lahfir/agent-desktop
and the npm package agent-desktop.
Prerequisites: Install the CLI
This skill drives the agent-desktop-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
- Install via the Printing Press installer. It defaults binaries to
$HOME/.local/binon macOS/Linux and%LOCALAPPDATA%\Programs\PrintingPress\binon Windows:npx -y @mvanhorn/printing-press-library install agent-desktop --cli-only - Verify:
agent-desktop-pp-cli --version - Ensure the reported install directory is on
$PATHfor the agent/runtime that will invoke this skill.
If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.6 or newer). This installs into $GOPATH/bin (default $HOME/go/bin), so add that directory to $PATH instead:
go install github.com/mvanhorn/printing-press-library/library/developer-tools/agent-desktop/cmd/agent-desktop-pp-cli@latest
If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.
Install the Real agent-desktop CLI
After the bridge is installed, install and verify the real remote desktop automation CLI:
agent-desktop-pp-cli install --version latest
agent-desktop-pp-cli doctor
The bridge defaults to agent-desktop@latest, so future upstream releases are
pulled from the remote package channel instead of being copied into Printing
Press. Use agent-desktop-pp-cli install --version <version> when a task needs
a pinned version. Use agent-desktop-pp-cli install --dry-run before mutating a
host when you only need to inspect the install command.
Load Version-Matched Docs
The real binary ships its own agent skills inside the executable. Prefer those
docs before nontrivial desktop work because they match the installed
agent-desktop version exactly:
agent-desktop skills
agent-desktop skills get desktop --full
agent-desktop skills get desktop workflows
agent-desktop skills get desktop commands-observation
agent-desktop skills get desktop commands-interaction
agent-desktop skills get desktop commands-system
agent-desktop skills get desktop macos
agent-desktop skills get ffi --full
After doctor confirms the real binary is installed, call agent-desktop
directly for commands that need their own flags.
Core Loop
Every useful automation follows the same loop:
agent-desktop permissions
agent-desktop snapshot --app "App Name" -i
agent-desktop click @e5 --snapshot <snapshot_id>
agent-desktop wait --text "Done" --app "App Name" --timeout 5000
agent-desktop snapshot --app "App Name" -i
Rules for agents:
- Snapshot before acting. Do not guess UI state.
- Keep the returned
snapshot_idand pass it to every ref-consuming command. - Treat refs as ephemeral. Re-snapshot after UI-changing actions.
- Prefer refs over coordinates. Use
click @e5,type @e2,check @e4, orscroll @e1beforemouse-click --xy. - Use
wait --predicate actionable,wait --text,wait --window, orwait --notificationinstead of blind sleeps. - On
STALE_REForAMBIGUOUS_TARGET, take a fresh snapshot and choose a new ref. Do not retry the same stale ref. - Use
--session <id>when concurrent agents may share latest-snapshot state. - Use
--trace /tmp/agent-desktop.jsonlwhen diagnosing stale refs, ambiguity, policy denial, or actionability failures. - Use
--headedonly when physical input is explicitly required. Ref actions are headless and accessibility-first by default.
JSON Contract
All real agent-desktop commands write a JSON envelope on stdout.
Success:
{
"version": "2.0",
"ok": true,
"command": "snapshot",
"data": {
"snapshot_id": "s8f3k2p9",
"ref_count": 14
}
}
Error:
{
"version": "2.0",
"ok": false,
"command": "click",
"error": {
"code": "STALE_REF",
"message": "Element could not be resolved from the requested snapshot",
"suggestion": "Run snapshot to refresh, then retry with an updated ref"
}
}
Exit codes are 0 for success, 1 for structured runtime errors, and 2 for
argument or parse errors. The bridge run command preserves the real binary's
exit code.
Command Surface
The real CLI exposes 54 commands:
| Category
Установить agent-desktop в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadBashВложенные файлы
FAQ
Что делает скилл agent-desktop?
Desktop automation through the real Rust agent-desktop CLI, published in Printing Press through a small bridge. Use when an agent needs to observe, inspect, or control native desktop applications with accessibility trees: snapshots, refs, clicks, typing, scrolling, windows, notifications, screenshots, clipboard, waits, and bundled version-matched skill docs.
Как установить скилл agent-desktop?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-desktop запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic