Computer use
incu, from Incode
incu lets an agent see and drive a desktop: read a window's controls through the accessibility tree, act on them by name, and fall back to screenshots and pixel clicks where a program has no tree. It is an MCP server over stdio.
Shipped. Off unless you turn it on. macOS input has not yet been tested live, and Linux supports X11 only, not Wayland.
What it is
Desktop control is the one kind of action an undo checkpoint cannot take back, so it is off by default. In Incode, set INCODE_DESKTOP=1 and Incode starts the tools for its model; every call passes Incode's permission gate and is checked again by incu itself.
On Windows it drives your own desktop, so do not use the mouse or keyboard while it runs.
| OS | How it reads and acts |
|---|---|
| Windows | UI Automation and SendInput, in the logged-in session. |
| macOS | The accessibility API and CGEvent. Needs the Accessibility and Screen Recording permissions. |
| Linux | AT-SPI2 and X11. Runs on a display you name, or a private Xvfb; never your own desktop by default. |
Run it
| Command | What it does |
|---|---|
| incu serve | Speak MCP on stdin/stdout (the default). |
| incu serve --tier observe | Look at the screen, never touch it. |
| incu stop | Halt the desktop a running server drives. |
| incu routine list | Show every learned routine, step by step. |
| incu routine keep <words> | Keep a routine from expiring. |
MCP tools
| Tool | What it does |
|---|---|
| screen_info | Displays, sizes and scale; on macOS, any missing permission. |
| list_windows | The open windows, with title, app and position. |
| ui_tree | One window's controls, each with an id and a selector. |
| screenshot | The screen, or one window. |
| cursor_position | Where the pointer is. |
| wait_for | Wait until a control or window appears or goes, or the screen changes. |
| watch | The same, for up to 24 hours, with no model polling. |
| click_element | Click a control by id or selector. |
| set_value | Set a field's value through the accessibility interface, then read it back. |
| element_action | Run a control's own action: press, toggle, expand, select, focus. |
| focus_window | Bring a window to the front. |
| type_text · key · paste_text | Keystrokes, a key chord, or a paste that restores the clipboard. |
| scroll · drag | Scroll over a control; drag between controls or points. |
| move_mouse · click | The pixel fallback. |
| routine_save · routine_run | Keep what was done as a routine, and run it again with no model. |
| routine_list · routine_match · routine_forget | List routines, see which one a phrase would run, or forget one. |
A selector such as role=button;name=Save names a control by what it is, so it still works after the program restarts. It must match exactly one control, or the call is refused rather than guessed.
How it connects to Watchman
routine_save can build a routine from turns Watchman already recorded, read from the Inmem engine at 127.0.0.1:9180 (loopback only). A routine is not kept if any recorded step failed, timed out, or depended on a pixel position.
Watchman does not start incu by itself yet: today it runs through Incode. Computer use from the Watchman app is planned.