Featured answer
Give me an overview of agent-desktop
agent-desktop is a command-line tool and C library that lets AI agents see and operate desktop apps on macOS, Windows, and Linux. It reads each app's accessibility tree and returns it as JSON, with a ref for each element the agent can act on, so no screenshots or pixel matching are needed. The agent's own model decides each step, since agent-desktop has no model inside. Input enters through the CLI in src, which can also run as an MCP server via the mcp subcommand, and both the CLI and the C library run the same Rust core in crates/core. crates/ffi exposes that core as a C ABI shared library, and crates/linux uses AT-SPI to act on Linux apps. To start reading, open crates/core/src/lib.rs, the entry point of the core.
| Layer | Files |
|---|---|
| Application | 2161 |
| CLI | 218 |
| Config | 21 |
| Types | 75 |
| Service | 466 |
| Docs & Tooling | 173 |
Basis: Inferred · knowledge graph· as of 8e8dd7c