Logo di Agent Desktop

Agent Desktop

CommunityPopolare
mvanhorn
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.

Panoramica

Autoremvanhorn
Repositoryprinting-press-library
Nome della skillagent-desktop
Stelle
2K
Fork
614
File inclusi
Solo istruzioni
LicenzaApache-2.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da mvanhorn su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Agent Desktop in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/mvanhorn/printing-press-library/tree/main/cli-skills/pp-agent-desktop
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mvanhorn/printing-press-library.git /tmp/printing-press-library
mkdir -p .claude/skills
cp -r /tmp/printing-press-library/cli-skills/pp-agent-desktop .claude/skills/agent-desktop
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Agent Desktop in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Agent Desktop non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Agent Desktop non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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:

  1. Install via the Printing Press installer. It defaults binaries to $HOME/.local/bin on macOS/Linux and %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows:
    bash
    npx -y @mvanhorn/printing-press-library install agent-desktop --cli-only
  2. Verify: agent-desktop-pp-cli --version
  3. Ensure the reported install directory is on $PATH for 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:

bash
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:

bash
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:

bash
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:

bash
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_id and 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, or scroll @e1 before mouse-click --xy.
  • Use wait --predicate actionable, wait --text, wait --window, or wait --notification instead of blind sleeps.
  • On STALE_REF or AMBIGUOUS_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.jsonl when diagnosing stale refs, ambiguity, policy denial, or actionability failures.
  • Use --headed only 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:

json
{
  "version": "2.0",
  "ok": true,
  "command": "snapshot",
  "data": {
    "snapshot_id": "s8f3k2p9",
    "ref_count": 14
  }
}

Error:

json
{
  "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:

CategoryCommands
Observationsnapshot, screenshot, find, get, is, list-surfaces
Interactionclick, double-click, triple-click, right-click, type, set-value, clear, focus, select, toggle, check, uncheck, expand, collapse
Scrollscroll, scroll-to
Keyboardpress, key-down, key-up
Mousehover, drag, mouse-move, mouse-click, mouse-down, mouse-up
App/windowlaunch, close-app, list-windows, list-apps, focus-window, resize-window, move-window, minimize, maximize, restore
Notificationslist-notifications, dismiss-notification, dismiss-all-notifications, notification-action
Clipboardclipboard-get, clipboard-set, clipboard-clear
Waitwait
Systemstatus, permissions, version, skills
Batchbatch

Common examples:

bash
agent-desktop snapshot --app Finder -i --compact
agent-desktop snapshot --skeleton --app Slack -i --compact
agent-desktop snapshot --root @e3 --snapshot <snapshot_id> -i --compact
agent-desktop find --app TextEdit --role button --name Save
agent-desktop get @e3 --snapshot <snapshot_id> --property value
agent-desktop is @e7 --snapshot <snapshot_id> --property checked
agent-desktop click @e5 --snapshot <snapshot_id>
agent-desktop type @e2 --snapshot <snapshot_id> "hello@example.com"
agent-desktop check @e6 --snapshot <snapshot_id>
agent-desktop scroll @e1 --snapshot <snapshot_id> --direction down --amount 3
agent-desktop press cmd+s --app TextEdit
agent-desktop list-windows --app Finder
agent-desktop focus-window --app Finder
agent-desktop clipboard-get
agent-desktop wait --element @e5 --snapshot <snapshot_id> --predicate actionable --timeout 5000
agent-desktop batch '[{"command":"status","args":{}}]' --stop-on-error

Printing Press Bridge Commands

Use these only for catalog, install, diagnosis, and delegation:

bash
agent-desktop-pp-cli info
agent-desktop-pp-cli install --version latest
agent-desktop-pp-cli install --version latest --dry-run
agent-desktop-pp-cli install --manager bun
agent-desktop-pp-cli doctor
agent-desktop-pp-cli doctor --json
agent-desktop-pp-cli run version
agent-desktop-pp-cli run status

After doctor confirms the real binary is on PATH, agents may call agent-desktop directly. Keep using agent-desktop-pp-cli run when the caller needs a stable Printing Press entry point.

Platform Notes

macOS is the Phase 1 fully implemented adapter. The launching app, such as Terminal, iTerm, Codex, or another agent runtime, needs Accessibility permission for UI automation. Screenshots need Screen Recording permission. Some automation surfaces may also require Automation permission.

Check and request permissions with:

bash
agent-desktop permissions
agent-desktop permissions --request

If permissions are denied, stop and surface the returned error.suggestion. Do not work around TCC failures with coordinate clicking.

Domande frequenti

Cosa fa la skill IA 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.

Perché usare Agent Desktop su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Agent Desktop è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Agent Desktop in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/mvanhorn/printing-press-library/tree/main/cli-skills/pp-agent-desktop. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Agent Desktop?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Agent Desktop?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Agent Desktop: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Agent Desktop è gratuita?

Sì. È pubblicata su GitHub da mvanhorn con licenza Apache-2.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇