> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reticle.sh/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Reticle is a verification layer for AI coding agents. Its SDK runs in development builds, and in staging or production only through the signed activate loader (see /production-mode). It reads program truth (network, state, console, routing, animations, framework state) from inside a running web app and returns a deterministic verdict with evidence. It is not a screenshot tool and not a browser automation library. For a desktop application, the computer realm (`@reticlehq/computer`) reads the app through the accessibility tree of the operating system on macOS, Windows and Linux (X11), with no SDK; an agent can use it for a check or for any other task in the app.
> Verdicts come from `reticle_act_and_wait`, `reticle_assert`, `reticle_act { steps }` when a step declares `expect`, and `reticle_verify` (`change`/`flows`). Everything else moves or reads the app and proves nothing. Only `verified: "yes"` is a pass: `unknown` means Reticle could not tell, and `no-fault` means nothing was declared to prove. A drive that ends without a verdict has no result, however many tools it used. Never weaken a check to make it pass.
> Package names are scoped `@reticlehq/*`. Run every CLI command as `npx @reticlehq/server <command>`, for example `npx @reticlehq/server init`. `reticle` is a bin name that `@reticlehq/server` installs once it is on your PATH, NOT a package on npm: `npx reticle` fetches an unrelated package published by somebody else, so never run that. The complete tool surface is on the `/usage` page; `/agent-cheatsheet` is the one-screen version.

# @reticlehq/computer

> The Reticle realm for a desktop application. It reads the application through the accessibility tree of the operating system, acts on it, and reports what each action changed.

`@reticlehq/computer` joins a desktop application to the Reticle daemon as a session, with no SDK in the application. It runs on macOS (AX), Windows (UI Automation) and Linux (AT-SPI, on X11).

**Apache 2.0. Depends on [`@reticlehq/core`](https://docs.reticle.sh/packages/core), [`@reticlehq/terminal`](https://docs.reticle.sh/packages/terminal), [`open-verification`](https://docs.reticle.sh/packages/open-verification), `ws` and `zod`. Bin: `reticle-computer`.**

## Run it

```bash theme={"dark"}
npx -p @reticlehq/computer reticle-computer --app "TextEdit"
```

The package holds the macOS helpers `reticle-ax` and `reticle-hud` already built. Only a source checkout compiles them with `swiftc`. In 3.11.1 and earlier, an installed package can also try to compile them; see [Troubleshooting](https://docs.reticle.sh/troubleshooting.md#the-computer-realm). [The computer realm](https://docs.reticle.sh/computer.md) has every flag, the permissions for each system, and the limits.

An agent can also open the realm with `reticle_open_realm`. See [Open and close a realm](https://docs.reticle.sh/tools/realms.md).

## Exports

The package root is the part of the realm that needs no operating system, plus the driver and the peer that `reticle-computer` uses.

| Export | What it is |
| - | - |
| `ComputerRealm` | The realm class: describe, act, and the effect of each action. |
| `connectPeer` | Join the realm to the bridge as a peer, so the agent tools work on the application. |
| `MacDriver`, `servingHelper` | The driver that talks to the helper of the system: the Swift helper on macOS, the PowerShell script on Windows, the Python script on Linux. |
| `helperLaunch`, `makeRunnable`, `mustBuild`, `WINDOWS_HELPER_SCRIPT` | How to start the helper on each system, and whether a source checkout must build it. |
| `UiRole`, `place`, `AxNodeSchema`, `fromAx` | The element shape that every reader gives. |
| `RefTable`, `writeLines` | The tree text that an agent reads: `- button "Save" (ref=e5)`. |
| `ChangeKind`, `EffectKind`, `changeLine`, `effectOf` | What an action changed. |
| `CU_SURFACE`, `CuChannel`, `CuSummary` | The channels the realm reports on. |
| `ActKind`, `ActRefusal`, `Delivery`, `PIXELS_CHANGED_SIGNAL` | The kinds of action, the reasons for a refusal, and whether an action needs a person to be able to reach the element. |
| `PeerCommands`, `PEER_ACTIONS`, `PEER_COMMANDS`, `HUMAN_DONE` | The commands and actions the peer serves, and the message the agent gets when the person presses **Done** in the HUD. |
| `FILE_SIGNAL_PREFIX`, `DISK_WROTE_SIGNAL`, `SETTINGS_CHANGED_SIGNAL`, `CLIPBOARD_CHANGED_SIGNAL` | The names of the evidence signals. |
| `attachPlan`, `withOwnerLimits`, `OWNER_SETTINGS_FILE`, `STOPPED_FILE` | The flags of `reticle-computer`, and the person's limits in `~/.reticle/computer.json` and `~/.reticle/computer.stopped`. |
| `pickApp`, `isElectron`, `electronWarning`, `joinedAnswer` | Find the application, detect Electron, and the line printed after the join. |
| `doctorReport` | The checks of `--doctor`. |
| `macHud`, `HudEffect` | The HUD on macOS. |

## Do you install it?

No. Run the bin with `npx`, or let the agent open it. Add it as a dependency only to build on the realm.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.