Your AI agent says "done." Reticle finds out if that is true.
It drives your real, running app and reads what happened. Then it returns a verdict, pass · fail · cannot tell, with the file:line to fix.

Install · What Reticle does · Demo · Use it · Commands · vs Playwright · Safe to install · Benchmarks · Community · Docs
⭐ Star the repo · Good first issues · Contribute
Install
Start with one command in your app's folder. It needs no account and no coding agent, and it changes no file in your project. It ends in a verdict on your running app.
You need: Node 20.11+ (no Node? brew install node or nodejs.org) and a web app you run locally with a dev server. For step 2, a coding agent that speaks MCP. The frameworks page lists what is proven, and how far.
Full guide: docs.reticle.sh/quickstart walks through the same steps and shows real output at each one. Agent install and manual install cover every flag and every framework.
Step 1: Check your app, with nothing installed
cd path/to/your-app
npx @reticlehq/server
It finds your app's dev server. If the app does not run, it starts the dev script, and it stops that server at the end. It opens the app in a Reticle browser and installs nothing in your app. It checks that the page loads, that there is no console error and no failed request, and that each same-origin link opens (8 at most). Then it prints a verdict and the next step. This run found a broken page behind a link:
Starting your dev server: npm run dev
Reticle is checking http://localhost:58473/. It installs nothing in your app.
✗ Console error on /broken: Uncaught Error: status page broke
✗ Failed request on /broken: GET http://localhost:58473/api/missing: HTTP 404
- 1 of 2 link(s) opened with no fault.
verified: no — 2 fault(s) on http://localhost:58473/
Next: connect your coding agent, so it can verify each change it makes:
npx @reticlehq/server init
✅ It worked when the output ends in verified: yes or verified: no, then the next step. A no is a finished check: each ✗ line names one fault. The command exits 0 only on yes. When the app sends the page to a sign-in page, Reticle verifies up to there and says so.
Not in the app's folder? It checks the one dev server that runs on this computer. When several run, it names them and does not choose. In a folder that init already wired, the same command starts the Reticle server (reticle serve) instead.
Step 2: Connect your coding agent (once per project)
In the same folder, run the command that step 1 printed:
npx @reticlehq/server init
It adds the dev-only SDK to your app and registers Reticle with every coding agent it finds on this machine. To see the changes first, or to pick one app in a monorepo:
npx @reticlehq/server init --dry-run # show the plan, write nothing
npx @reticlehq/server init --app apps/web # monorepo: wire this app
✅ It worked when init lists every file it changed and says that your app connected. To check again at any time:
npx @reticlehq/server status
Was your dev server already running? Restart it and reload the tab. The server read your build config before init changed it. Until it restarts, it serves your app without Reticle.
What reticle init changes, file by file
It detects your framework, then:
- Installs two dev dependencies, at the same version as the CLI: the SDK (
@reticlehq/react on a React app, the framework-neutral @reticlehq/browser on Vue, Svelte and other stacks) and the build plugin (@reticlehq/vite-plugin, or @reticlehq/next for Next.js).
- Writes
.reticle.json: { "framework", "projectId", "port" }. The projectId keeps two apps running at once apart. The port is the local bridge that the app dials. init writes it only when it is not the default 4400 (that one was taken).
- Adds the plugin to your build config (one import and one entry), which injects the connect call in development only.
- Writes the dev module,
reticle-dev (below).
- Writes agent instructions, so every agent in this repo knows to verify with Reticle. A short rule goes in
CLAUDE.md and AGENTS.md (appended, never overwritten), the full rules in RETICLE.md, and a /reticle command in .claude/commands/reticle.md. --no-mcp skips these files and agent registration.
- Installs a prompt hook for each agent it finds that has one: one entry in that agent's project config, such as
.claude/settings.json or .cursor/hooks.json. The hook runs reticle hook prompt, which keeps each prompt, redacted, in .reticle/request.json and .reticle/requests.jsonl. --no-prompt-capture skips it. Prompt capture has the full list and every switch.
- Starts your dev server if none is running, opens the app, and waits until it connects. That connection is what
init verifies. It never drives your app. Verifying a flow is the next step.
This is what it writes for the two most common setups, recorded from runs on fresh templates. Frameworks has the other frameworks:
| Vite (React, Vue, Svelte…) | Next.js (App Router) |
|---|
| Dev dependencies | @reticlehq/react (Vue, Svelte: @reticlehq/browser), @reticlehq/vite-plugin | @reticlehq/react, @reticlehq/next |
| Build config | vite.config.ts: plugins: [reticle(), react()] (reticle({ port: N }) only when port 4400 was taken) | next.config.ts: export default withReticle(nextConfig) |
| Dev module | src/reticle-dev.ts, loaded by the plugin's injected connect | app/reticle-dev.tsx, a client component that connects after hydration |
| Mounted in | nothing to mount | app/layout.tsx: {process.env.NODE_ENV === 'development' ? <ReticleDev /> : null} |
| Project config | .reticle.json | .reticle.json |
You edit the reticle-dev file. It is dev-only: it tests import.meta.env.DEV (Next.js: NODE_ENV === 'development'), so it does nothing in a production build. Here you tell Reticle what your app holds. At first, it registers nothing:
// src/reticle-dev.ts: written by `reticle init`. You never import it; the plugin loads it.
import { registerCapabilities, registerStore } from '@reticlehq/react';
import { useApp } from './store';
if (import.meta.env.DEV) {
registerStore('app', useApp); // pass the STORE, not () => store.getState(): the store form sees every change
registerCapabilities({
testids: ['login-submit', 'cart-total'], // the data-testid values your key flows touch
signals: ['order:saved'], // names you emit with reticle.signal() where a thing really succeeds
stores: ['app'],
});
}
The store registration is the most valuable line. It lets the agent verify what the app believes, not only what it rendered. You do not need it on day one, because Reticle already reads the DOM, network and console. Start with the store your most important flow reads (Instrument your app).
Read the marks init prints. ✓ done · · already in place · – skipped by a flag · ⚠ could not be done, with the exact fix printed · ℹ done but incomplete, read it. If you skip a ⚠ or ℹ, a "green" install can still find nothing.
More flags:
npx @reticlehq/server init --env KEY=VALUE # something the app needs to boot (repeatable)
npx @reticlehq/server init --files-only # write the files, don't boot the app
npx @reticlehq/server init --json # one JSON object, for agents
npx @reticlehq/server init --no-mcp # skip agent registration and rule files
What you commit. The edits above and your saved flows in .reticle/flows/, so a teammate or CI can replay them. The rest of .reticle/ stays local, because session journals hold request bodies and page text. Reticle writes a .reticle/.gitignore that keeps it out of git.
Undoing it. Run reticle hook uninstall. Revert the other edits that init listed, including the lines it appended to CLAUDE.md and AGENTS.md. Remove the two dev dependencies. Delete .reticle.json, .reticle/, RETICLE.md, .claude/commands/reticle.md, the reticle-dev file and, if init wrote one, reticle.local.js. Your production build never contained Reticle.
Step 3: Restart your agent and run your first check
Restart your coding agent once, so it loads Reticle's tools. Then open it in your app's folder and ask for one real journey:
"Verify the sign-up flow with Reticle."
The agent finds your app with reticle_session, clicks and types with reticle_act_and_wait, and gets back a verdict with its evidence:
{
"verified": "yes",
"effect": {
"action": "click",
"name": "Sign up",
"source": { "file": "src/SignUp.tsx", "line": 42 },
},
"verdict": {
"pass": true,
"evidence": { "method": "POST", "url": "http://localhost:5173/api/signup", "status": 201 },
},
}
Without an agent, you can verify one fact about the current page from a terminal. It does not click through a flow; that is the agent's job. It exits 0 only on yes:
npx @reticlehq/server verify http://localhost:5173 --expect '{"kind":"element","query":{"role":"heading","name":"Welcome"},"state":"visible"}'
PowerShell changes those quotes. On Windows, put the JSON in a file and pass --expect-file check.json instead.
✅ It worked when you get verified: "yes", "no" or "unknown" with evidence. That verdict means the install is finished. A connected app only shows that the SDK reached the page. unknown means cannot tell, not pass. When the session ends, Reticle saves each drive with a check in it as a flow. The flow runs again later with no model.
Other ways to connect your agent
The installer puts reticle on your PATH once per machine and registers Reticle with every coding agent it finds. It does not touch your project. Run it before you open your coding agent: an open agent must restart once to see the new tools.
curl -fsSL https://raw.githubusercontent.com/reticlehq/reticle/main/install/install.sh | sh
Windows (PowerShell):
irm https://raw.githubusercontent.com/reticlehq/reticle/main/install/install.ps1 | iex