pilot
README.md
# pilot
Desktop control for AI agents: give it a goal, it looks at the screen, acts,
and stops when the goal is done. It drives the whole desktop on Linux (COSMIC,
Wayland) and Windows. It is an MCP server, so a coding agent like Claude Code
can use your screen as a tool. (Web pages are left to the agent's own browser.)
> Status: planning. Nothing runs yet.
## The loop
```
goal → snapshot (accessibility tree with element refs + screenshot) → model picks an action
→ act (click, type, key, scroll, navigate) → check → … → done | ask human
```
## Architecture
```
Claude Code / agent loop ──MCP──► pilot (this repo) ──tailnet HTTP──► pilot-host on each PC
├─ pop-os (COSMIC/Wayland)
└─ Windows
```
- **pilot-host** runs on each PC: screenshot, mouse, keyboard, list windows.
- Linux/Wayland: screenshot through the portal (or `cosmic-screenshot`),
input through a uinput virtual device (same approach as `talk`).
- Windows: `SendInput` and desktop duplication / GDI capture.
- Elements: AT-SPI on Linux, UI Automation on Windows. The agent clicks
`ref=42` ("Save" button) when the app exposes it, and falls back to
pixel coordinates when it doesn't.
- **pilot** is the brain and the MCP server. It picks the PC you used last
(presence, like `talk`'s speech relay) unless told otherwise.
## Safety
- Every action is logged with its screenshot.
- Confirm before: sending messages, purchases, deleting, anything with
passwords. A kill switch on the host (hotkey) stops everything at once.
- The host listens on the tailnet only, with a token.
## Plan
- [ ] pilot-host on pop-os: screenshot + uinput mouse/keyboard
- [ ] MCP server: `snapshot`, `act`, `list_windows`, `focus`
- [ ] Accessibility tree (AT-SPI) with refs, pixel fallback
- [ ] pilot-host on Windows (UI Automation + SendInput)
- [ ] Eval: a handful of fixed tasks with pass/fail, run on every change
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues