lahfir/agent-desktop

Computer use CLI for AI agents

About the project

agent-desktop is a command-line tool that lets AI agents inspect and control desktop applications through operating-system accessibility data instead of screenshots or pixel matching. It is used to automate applications such as Finder, Safari, Xcode, and Slack with structured JSON commands and results.

This repository also configures its own agents. See what agent-desktop tells them →

26kStars on the repository
7Mods indexed here, across every type
12d agoLast push, which is what freshness is scored on
Apache-2.0Licence, which decides whether bodies are shown

agent-desktop-ffi

01

lahfir/agent-desktop

Skill Claude CodeCodex

C-ABI bindings over agent-desktop's PlatformAdapter. Consumers (Python ctypes, Swift, Node ffi-napi, Go cgo, C++, Ruby fiddle) link libagentdesktopffi.{dylib,so,dll} and call ad functions directly instead of spawning the CLI binary per call. The canonical observe-act workflow is: adinit → adadaptercreate[withsession]…

not rated 26k changed 1mo ago A SkillSpector: warn 122 tokens original Apache-2.0

agent-desktop

02

lahfir/agent-desktop

Skill Claude CodeCodex

Operate desktop applications on macOS, Windows and Linux through native accessibility trees, using the agent-desktop CLI. Use when an AI agent must see or act on a desktop GUI: click buttons, fill forms, read UI state, navigate menus, toggle checkboxes, scroll, drag, type text, press shortcuts, take screenshots…

not rated 26k changed 1mo ago A SkillSpector: warn 161 tokens original Apache-2.0

jev-desktop

03

lahfir/agent-desktop

Skill Claude CodeCodex needs its repo

Drive a desktop application from one plain-language goal, or resolve one intent at a time, without ever reading the accessibility tree. Use when automating a desktop app and you want to keep a 150-element JSON tree out of your context. Hand run.mjs a whole goal and it observes, decides and acts until the goal is met…

not rated 26k changed 1mo ago A 125 tokens original Apache-2.0

agent-desktop-macos

04

lahfir/agent-desktop

Skill Claude CodeCodex

Read the core skill first (agent-desktop skills get desktop) for the observe, act, verify loop. This skill covers only what is different on macOS. Symptoms and fixes are in references/troubleshooting.md.

not rated 26k changed 1mo ago A 98 tokens original Apache-2.0

lahfir/agent-desktop

Skill Claude CodeCodex

Windows platform guide for the agent-desktop CLI. Lists per command group what works on Windows and what refuses, the first-contact gotchas (PowerShell ref quoting, minimized windows, headed-only input), and where to find shell surfaces, notifications, the cursor overlay, UIPI elevation, Chromium/Electron settle…

not rated 26k changed 1mo ago A 119 tokens original Apache-2.0

agent-desktop-linux

06

lahfir/agent-desktop

Skill Claude CodeCodex

Linux platform guide for the agent-desktop CLI. Lists per command group what works on X11 and on Wayland, how to check the AT-SPI accessibility bus, the first-contact gotchas (app names, Chromium and Electron flags, headed focus, blocked key combos), and where to find lifecycle, screenshot, clipboard, tray…

not rated 26k changed 1mo ago B 132 tokens original Apache-2.0

At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: