> ## 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/terminal

> The Reticle realm for a command-line program. It runs the program, watches what it prints and the files it changes, and gives a verdict on a claim.

`@reticlehq/terminal` runs a command-line program and gives a verdict on a claim about it. The evidence is the output, the exit code, and each file that the program added, changed or removed. The program needs no change.

**Apache 2.0. Depends on [`open-verification`](https://docs.reticle.sh/packages/open-verification). Bin: `reticle-terminal`.**

## Run it

```bash theme={"dark"}
npx -p @reticlehq/terminal reticle-terminal --expect "dist/index.js is written" --path dist/index.js -- npm run build
```

| Flag | Meaning |
| - | - |
| `--expect "<claim>"` | What should become true. Required. Give it before the command runs. |
| `--path <file>` | The file that shows the claim. Required. It is watched also when it is in a folder that is not watched by default, such as `dist/`. |
| `--cwd <dir>` | Run the command in this folder, and take the file snapshot there. Default: the current folder. |
| `--json` | Print the record for an agent: `verdict`, `ground`, `exit`, `changes`, `blindSpots` and `reasons`. |
| `-- <command> [args...]` | The command to run. Required. |

The verdict is `yes`, `no` or `unknown`. An exit code of 0 is not a pass by itself: the file that the claim names must show the change. The command exits `0` only for `yes`. It exits `1` for `no` and for `unknown`, and `2` when a required flag is missing.

## Exports

| Export | What it is |
| - | - |
| `TerminalRealm`, `TerminalSummary`, `closedBy` | The realm for a program that runs and exits. It knows the world only through a `Supervisor`. |
| `TerminalChannel` | The channels the realm reports on. |
| `NodeSupervisor`, `exitStatus` | The `Supervisor` that runs a process with Node. |
| `nodeWorkspace`, `takeSnapshot`, `diffSnapshots`, `ChangeKind`, `EXCLUDED_BY_DEFAULT` | The file snapshot before and after a command, and the folders it leaves out by default. |
| `detectAnomalies` | Two things in one window that cannot both be true, such as a process that the system ended while it said it succeeded. |
| `buildRun`, `renderReport` | The run record, and the report a person reads. |
| `createLiveHud`, `renderFrame` | The live pane that `reticle-terminal` paints in a terminal. |
| `startConnectProxy` | A local proxy that records which hosts the program connected to. It reads nothing that the program sent. |
| `commandNamed` | Find one command in a command manifest. |

`@reticlehq/computer` uses `nodeWorkspace` to report the files that a desktop action wrote.

## Do you install it?

Only to check a command-line program, or to build on the realm. Run the bin with `npx`. `@reticlehq/computer` brings it as a dependency.


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