piagent_
← ~/map

$ cat ~/map/pi-agent-desktop.md

pi-agent-desktop

Gives pi eyes and hands on native apps: accessibility-tree reads, clicks, and typing across Windows, macOS, and Linux.

extensions✓ Nov 2

Facts

repository
github.com/lennix1337/pi-agent-desktop ↗
GitHub Stars
★ 1
Forks
0
license
MIT
npm / mo
—
last push
Nov 23, 2026

install

pi install npm:@lennix1337/pi-agent-desktop (the native binary for your platform ships inside the package — no global install, no Python; on macOS, grant Accessibility and Screen Recording to the terminal that runs Pi).

## TL;DR

A pi extension that gives the coding agent a desktop tool and matching skill for driving native apps on Windows, macOS, and Linux through the accessibility tree: apps snapshot as compact JSON refs instead of pixels, and click, type, set-value, and screenshot actions run against those refs, with semantic headless delivery by default and physical input gated behind a headed flag.

## Key points

## FAQ

Q Does it move my mouse or steal focus?

Not by default — delivery is semantic and headless. Physical input such as mouse, drag, hover, double-click, or key-down/up is refused unless the call explicitly sets headed: true.

Q Is this the same thing as the abcwyc/pi-agent-desktop repo?

No — the README warns about the name collision: abcwyc's repo is a desktop chat app for Pi, while this package gives Pi a desktop tool; it is not an app.

Q How does it read a screen without OCR?

Through the accessibility tree: snapshot returns compact JSON with @ref ids, so exact text and values come straight from the OS instead of being guessed from pixels; a PNG screenshot is attached only when the tree is not enough.

Q Why does an Electron app snapshot slowly or time out?

Electron and Chromium apps such as Slack or VS Code expose deep trees — snapshot them with --max-depth 3; the tool suggests this on timeout. Native apps snapshot in about 0.2 s.

Q What does pi need on macOS?

Grant Accessibility to the terminal that runs Pi, and Screen Recording as well when screenshots are needed.

## References

## Related entries

## Guides

Last updated: Nov 23, 2026