superagent-ai/grok-cli · Archived

agent-desktop

Use the built-in `Computer` sub-agent with `agent-desktop` for macOS desktop automation. Apply when a task needs application launching, accessibility snapshots, stable element refs, window focusing, semantic clicks/typing, or visual confirmation outside the browser sandbox.

First seen Apr 7, 2026

Installation

$ npx skills add superagent-ai/grok-cli --skill agent-desktop

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from superagent-ai/grok-cli.

npx skills add superagent-ai/grok-cli

Browse all from superagent-ai/grok-cli

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 3.4K
License LICENSE
Default branch main
Open issues 18
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,878 B
  • docs SUMMARY.md 295 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

agent-desktop

Use this skill when the task involves the host macOS desktop rather than repository files, shell output, or browser-only verification.

This project uses agent-desktop on the host. Prefer the built-in Computer sub-agent for these tasks instead of trying to drive the desktop with plain shell commands.

When to use it

  • The user wants to inspect or interact with a native macOS application.
  • The task needs app launch, window focus, accessibility snapshots, semantic element refs, clicks, typing, keypresses, or scrolling.
  • A browser-only workflow is not enough, or the target is not a web page.

Requirements

  • agent-desktop must be installed and its native binary available.
  • On macOS, the terminal app running grok needs Accessibility permission.
  • Refs from computer_snapshot are only valid until the next snapshot.

Preferred flow

  1. Delegate to task with agent: "computer" unless the current agent already has the computer_* tools and the task is tiny.
  2. Use computerlaunch, computerlistwindows, or computerfocus_window to get the target app/window ready.
  3. Start with computer_snapshot.
  4. Pick one ref-based action.
  5. After any UI transition, snapshot again before reusing refs.

Tool guidance

  • computersnapshot: primary observation tool; prefer interactiveonly.
  • computer_click: use ref values from the latest snapshot whenever possible.
  • computer_type: requires a target ref and is preferred over coordinate typing.
  • computer_press: use for shortcuts and special keys such as Enter, Tab, cmd+space, or cmd+k.
  • computer_scroll: pass an element ref, not raw coordinates.
  • computer_get: read text, value, bounds, role, or states from a ref.
  • computer_screenshot: use for visual confirmation or when the accessibility tree is not enough.

Reliability rules

  • Use a snapshot -> act -> snapshot loop.
  • Prefer refs over coordinates.
  • Refs go stale after the next snapshot; do not reuse them blindly.
  • Keep actions reversible and low risk unless the user explicitly asked for something destructive.
  • If the accessibility tree is poor or ambiguous, use computer_screenshot for confirmation and explain the limitation.

Blockers

Stop and report clearly if:

  • Accessibility permission is missing.
  • agent-desktop is unavailable or its native binary is missing.
  • The target app/window cannot be found.
  • Refs are stale or ambiguous after a UI transition.
  • The requested action could be destructive and the user did not explicitly ask for it.