Docs · See and drive a desktop

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.

OSHow it reads and acts
WindowsUI Automation and SendInput, in the logged-in session.
macOSThe accessibility API and CGEvent. Needs the Accessibility and Screen Recording permissions.
LinuxAT-SPI2 and X11. Runs on a display you name, or a private Xvfb; never your own desktop by default.

Run it

CommandWhat it does
incu serveSpeak MCP on stdin/stdout (the default).
incu serve --tier observeLook at the screen, never touch it.
incu stopHalt the desktop a running server drives.
incu routine listShow every learned routine, step by step.
incu routine keep <words>Keep a routine from expiring.

MCP tools

ToolWhat it does
screen_infoDisplays, sizes and scale; on macOS, any missing permission.
list_windowsThe open windows, with title, app and position.
ui_treeOne window's controls, each with an id and a selector.
screenshotThe screen, or one window.
cursor_positionWhere the pointer is.
wait_forWait until a control or window appears or goes, or the screen changes.
watchThe same, for up to 24 hours, with no model polling.
click_elementClick a control by id or selector.
set_valueSet a field's value through the accessibility interface, then read it back.
element_actionRun a control's own action: press, toggle, expand, select, focus.
focus_windowBring a window to the front.
type_text · key · paste_textKeystrokes, a key chord, or a paste that restores the clipboard.
scroll · dragScroll over a control; drag between controls or points.
move_mouse · clickThe pixel fallback.
routine_save · routine_runKeep what was done as a routine, and run it again with no model.
routine_list · routine_match · routine_forgetList 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.

Other docs

How every service reaches Watchman, in one place: How it connects.