Cross-platform native desktop UI automation (macOS, Windows, Linux) for AI coding agents using OS Accessibility trees via agent-desktop. Use when an agent needs to inspect, click, type into, verify, or operate native desktop apps or system windows across platforms without fragile pixel-coordinate guessing.
22 stars
0 votes
0 copies
0 views
Added December 4, 2026
ai-agentsshellbashnodeapisecurity
Works with
terminal
cli
api
Security analysis
A92/100
mediumInstalls packages at runtime which could introduce malicious dependencies
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Remodeck Computer Use?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/guuguo-remodeck-computer-use)
---
name: remodeck-computer-use
description: Cross-platform native desktop UI automation (macOS, Windows, Linux) for AI coding agents using OS Accessibility trees via agent-desktop. Use when an agent needs to inspect, click, type into, verify, or operate native desktop apps or system windows across platforms without fragile pixel-coordinate guessing.
---
# Universal Cross-Platform Computer Use (`remodeck-computer-use`)
Control native desktop applications across **macOS**, **Windows**, and **Linux** reliably using **OS Accessibility Trees** (`agent-desktop`: macOS AX API, Windows UI Automation, Linux AT-SPI) rather than blind screenshot pixel clicking.
## 1. Tool Choice Hierarchy
1. **Web pages / web apps**: Prefer your browser automation tool (Playwright, Chrome CDP, etc.) when inspecting or controlling standard browser tabs.
2. **Terminal / CLI / local files**: Prefer shell commands and file tools directly — never automate a terminal window via GUI clicks when a direct command exists.
3. **Native desktop apps (macOS / Windows / Linux)**: Use `agent-desktop`. It reads the OS accessibility tree into structured JSON with deterministic element refs (`@s...:e...`) and runs **headless by default** without moving the user's physical pointer or stealing focus unless `--headed` is explicitly required.
---
## 2. Preflight & Installation
Always check availability and OS permissions before attempting GUI actions:
```bash
agent-desktop status
```
- **If `agent-desktop` is not installed**:
- Cross-platform (Node.js): `npm install -g agent-desktop`
- macOS / Linux (Homebrew): `brew install agent-desktop`
- Verify afterwards with `agent-desktop status`.
- **If macOS Accessibility permission is missing**:
- Run `agent-desktop permissions --guide` and ask the user to grant Accessibility permission in System Settings.
- **Never** attempt to bypass OS permission/TCC dialogs.
---
## 3. Core Observe → Act → Verify Loop
Never click blind coordinates. Always follow a strict **snapshot → act on ref → re-snapshot** loop:
### Step 1: Discover Apps & Windows
```bash
agent-desktop list-apps
agent-desktop list-windows --app "AppName"
```
### Step 2: Capture Interactive Tree Snapshot
```bash
agent-desktop snapshot --app "AppName" -i --compact
```
- For dense Electron/IDE windows, map the skeleton first and drill into a subtree:
```bash
agent-desktop snapshot --skeleton --app "AppName" -i --compact
agent-desktop snapshot --root @s8f3k2p9:e3 -i --compact
```
- Every ref belongs to its snapshot ID (`@<snapshot_id>:<element_id>`). Never pass a bare `@e8`.
- **PowerShell users**: Always single-quote refs (`'@s8f3k2p9:e8'`) because `@token` is PowerShell's splatting operator.
### Step 3: Act Deterministically
```bash
agent-desktop click @s8f3k2p9:e8
agent-desktop focus @s8f3k2p9:e12
agent-desktop press Return
agent-desktop scroll @s8f3k2p9:e4 --direction down --amount 3
```
- **Typing text safely (keep secrets/special characters out of process args)**:
```bash
printf '%s' "text to enter" | agent-desktop type @s8f3k2p9:e12 --stdin
printf '%s' "exact value" | agent-desktop set-value @s8f3k2p9:e12 --stdin
```
### Step 4: Verify & Recover
- Re-run `agent-desktop snapshot --app "AppName" -i --compact` or `agent-desktop wait ...` to verify UI state changed as expected.
- **Error recovery**:
- `STALE_REF`: UI changed since snapshot → take a fresh `snapshot` and use the new ref.
- `AMBIGUOUS_TARGET`: Multiple windows matched → pick the target `window_id` from `error.details` and pass `--window-id <id>`.
- Retry a failed command **only** when `error.disposition.retry === "safe"`.
- **Custom-drawn surfaces** (canvas/WebGL/games lacking accessibility nodes): Fall back to `agent-desktop screenshot` + explicit `--headed` physical input only when accessibility refs are unavailable, and inform the user before taking over pointer/focus.
---
## 4. Safety, Privacy, and Human-Handoff Gates
- **Protect private desktop data**: Snapshots, screenshots, and clipboard contents can contain sensitive personal or credential data. Never print secrets in replies, commit them, or upload them externally; always use `--stdin` for sensitive text input.
- **Confirm irreversible or external actions**: Before clicking buttons that send messages/emails, delete data, transfer money, submit production changes, or authorize OAuth grants on the user's behalf, stop and obtain explicit user confirmation.
- **Never bypass security gates**: Never attempt to solve or bypass CAPTCHAs, MFA prompts, OS keychain/password dialogs, or login walls. Pause and hand off to the user (for example via RemoDeck's `remodeck verify` human-verification panel when available).