Skip to main content
@reticlehq/computer joins a desktop application to the Reticle daemon. The application needs no SDK and no change. The realm reads it through the accessibility tree of the operating system, and the tools that an agent has for a page then work on it. Use it to prove a change in a desktop application, and also for any other task in one: fill a form in a native app, export a file, read a value from one app and type it into another.

Install and run

The package holds the command reticle-computer. Run it with npx:
The npm package holds the macOS helpers already built. Only a source checkout of the repository compiles them with swiftc, from the Xcode command-line tools. In 3.11.1 and earlier, an installed package can also try to compile them; see Troubleshooting. --app waits up to 30 seconds for the daemon when it is not there yet. When the application joins, the command prints one line of JSON and stays open until you stop it:
Give that sessionId on each tool call. A desktop application is in no project unless you give --project. An agent can also open the realm itself, with reticle_open_realm. See Open and close a realm.

Flags

Permissions

  • macOS: System Settings, Privacy & Security, Accessibility. Switch on the terminal that runs the command, then start the terminal again. reticle_screenshot also needs Screen Recording.
  • Windows: nothing to give and nothing to install.
  • Linux: install python3-gi gir1.2-atspi-2.0 gir1.2-gtk-3.0 xdotool (Debian and Ubuntu). Install xprintidle to make the realm wait while the person types.

What the person sees (macOS)

  • The realm’s own pointer. It goes to the element that the realm acts on. A click goes through it.
  • The HUD. A circle at the bottom right. Press it to see the action that runs, the last actions and what each one did. Pause stops the realm until you press it again, and the agent is told why. Stop ends the realm and leaves the application.
  • After Stop, the command writes ~/.reticle/computer.stopped. No application is joined until you remove that file.
The realm does not read its own window and does not act on it, so an agent cannot press your buttons.

The person’s limits

An agent starts the command, so an agent picks its flags. Your limits are in ~/.reticle/computer.json, and no flag lifts them:
  • backgroundOnly forbids the real pointer and real keys.
  • hud keeps the HUD and the pointer on the screen, also with --no-hud.
The applications that an agent may open with reticle_open_realm are in a different file, ~/.reticle/computer-open.json:
An agent adds an application to that list only when you say yes. An agent never changes computer.json. A program with a shell can change a file, so these files say what you want. They are not a wall.

Actions and the foreground

The realm acts in the background. A press is an accessibility action, and text goes to the application, not to the screen. Your pointer does not move. Some actions need the real pointer or the application in front: dblclick, hover, drag, focus, the menu bar of an application that is not in front, and a control that takes only a real click. Give args: { foreground: true } on that one action. The realm brings the application to the front, does the gesture, and puts the pointer and the front application back. It waits until the person has not typed or moved the pointer for a moment. A refusal says when an action needs the foreground. See Actions for the full list.

Evidence

Each action reports what it changed on the screen. An action that changed nothing is a result of its own. These signals prove more than the screen does:

The browser and the computer together

reticle_attach_tab joins a tab of your own Chromium browser as a session, next to a desktop session. Start the browser with --remote-debugging-port (default http://127.0.0.1:9222, or RETICLE_CDP_URL). reticle_session { action: "board", carry } moves a value from an element of one session into another and says whether it arrived. See Open and close a realm.

Limits

  • The screen must not be locked. A locked macOS screen gives no window of any application. The realm says that the screen is locked.
  • Only the Space in front. An application on another Space reads as an application with no window. Bring it to the front.
  • The menu bar needs the application in front. Use focus first.
  • Linux on Wayland. A Wayland session takes no input from a program. The realm still reads and acts through the accessibility interface (press, fill), and refuses a step that needs the real pointer, with the reason.
  • An application with no elements (a canvas, a game) is read as a picture. On macOS the picture comes with the words in it and their boxes, read on the machine.
  • The tree is the application’s own word. Watch a folder and name the file when the action writes one.
The README of the package has every limit, and Troubleshooting has the fixes.
Last modified on November 28, 2026