jevway 0.1.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +227 -149
- package/SETUP.md +212 -0
- package/dist/browser/downloads.js +103 -0
- package/dist/browser/frames.js +21 -1
- package/dist/browser/snapshot.js +53 -0
- package/dist/browser/tab.js +59 -10
- package/dist/cli/daemon-call.js +78 -0
- package/dist/cli/dispatch.js +76 -0
- package/dist/cli/flags.js +152 -0
- package/dist/cli/help.js +46 -0
- package/dist/cli/inbox-command.js +199 -0
- package/dist/cli/journey-command.js +162 -0
- package/dist/cli/look-command.js +54 -0
- package/dist/cli/main.js +64 -0
- package/dist/cli/output.js +27 -0
- package/dist/cli/run-command.js +221 -0
- package/dist/cli/session-commands.js +132 -0
- package/dist/daemon/client.js +175 -0
- package/dist/daemon/paths.js +35 -0
- package/dist/daemon/protocol.js +28 -0
- package/dist/daemon/server.js +339 -0
- package/dist/inbox/inbox-file.js +43 -0
- package/dist/inbox/inbox-registry.js +33 -0
- package/dist/inbox/inbox.js +127 -0
- package/dist/inbox/mail-api.js +52 -0
- package/dist/inbox/message.js +34 -0
- package/dist/jev/replay.js +7 -3
- package/dist/jev/retry.js +29 -0
- package/dist/jev/secrets.js +4 -3
- package/dist/journeys/journey-doc.js +2 -1
- package/dist/journeys/journey-session.js +14 -3
- package/dist/journeys/render-viewer.js +163 -150
- package/dist/mcp/inbox-tools.js +82 -0
- package/dist/mcp/instructions.js +27 -0
- package/dist/mcp/journey-tools.js +117 -0
- package/dist/mcp/results.js +53 -0
- package/dist/mcp/server.js +57 -0
- package/dist/mcp/task-tools.js +213 -0
- package/dist/mcp.js +10 -337
- package/dist/notify/desktop.js +40 -0
- package/dist/notify/person-messages.js +50 -0
- package/dist/output/layout.js +86 -0
- package/dist/output/manifest.js +86 -0
- package/dist/output/run-folder.js +80 -0
- package/dist/recording/describe-step.js +69 -0
- package/dist/{task → recording}/recording-page.js +164 -18
- package/dist/{task → recording}/recording.js +33 -91
- package/dist/recording/run-page.js +155 -0
- package/dist/session/session-service.js +213 -0
- package/dist/setup/atomic-write.js +13 -0
- package/dist/setup/clients.js +180 -0
- package/dist/setup/command-output.js +15 -0
- package/dist/setup/doctor-command.js +16 -7
- package/dist/setup/doctor.js +17 -2
- package/dist/setup/env-file.js +22 -0
- package/dist/setup/setup-command.js +104 -0
- package/dist/setup/setup-wizard.js +216 -0
- package/dist/setup/skill-command.js +124 -0
- package/dist/setup/terminal-prompter.js +51 -0
- package/dist/setup/unified-diff.js +69 -0
- package/dist/task/ask-user.js +182 -0
- package/dist/task/downloads.js +63 -0
- package/dist/task/person-wait.js +104 -0
- package/dist/task/present.js +111 -0
- package/dist/task/run-task.js +332 -32
- package/dist/task/start-task.js +70 -11
- package/dist/task/totp.js +124 -0
- package/dist/task/upload-files.js +237 -5
- package/package.json +10 -8
- package/skill/jevway/SKILL.md +54 -15
- package/skill/jevway-inbox/SKILL.md +61 -0
- package/skill/jevway-inbox/scripts/inbox.mjs +209 -0
- package/INSTALL-FOR-AGENTS.md +0 -138
- package/dist/cli.js +0 -112
package/README.md
CHANGED
|
@@ -1,219 +1,297 @@
|
|
|
1
1
|
# jevway
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/jevway)
|
|
4
|
+
[](https://github.com/AbdallahAHO/jevway/actions/workflows/ci.yml)
|
|
5
|
+
[](LICENSE)
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
agent ◀── { status, url, steps, stuck? } ──────┘ (same Chrome chrome-devtools inspects)
|
|
8
|
-
```
|
|
7
|
+
Give your coding agent a browser goal and get back one short, checked summary. [TypeSafe Jev](https://docs.typesafe.ai)
|
|
8
|
+
picks each click, type and select in about 300 ms, so your agent stops spending a turn on every step.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
<!-- Source: docs/images/how-it-flows.mmd (render with @mermaid-js/mermaid-cli: -t default -b white -s 2) -->
|
|
11
|
+

|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
jevway is an MCP server and a CLI. It works with Claude Code, Codex, Cursor, OpenCode and any other MCP client, in your
|
|
14
|
+
own signed-in Chrome or a throwaway one.
|
|
13
15
|
|
|
14
|
-
|
|
16
|
+
## Why
|
|
15
17
|
|
|
16
|
-
|
|
18
|
+
Driving a browser click by click costs an agent a model turn, a page snapshot and a few seconds per step. A 15-step
|
|
19
|
+
form takes minutes and fills the context window with snapshots. jevway hands the whole goal to Jev, a model built to
|
|
20
|
+
choose browser actions, and returns when it's done or when it needs the agent:
|
|
17
21
|
|
|
18
|
-
**
|
|
22
|
+
- **It never invents input.** Jev types only the `values` the agent passed. A missing value comes back as
|
|
23
|
+
`needs_input`, naming the field.
|
|
24
|
+
- **It stops before anything irreversible.** Pay, send, delete and submit come back as `needs_confirmation`. One
|
|
25
|
+
confirmation allows one click, on the control that was named.
|
|
26
|
+
- **It checks its own success.** `done` needs a separate check of `done_when` on the final page, plus any exact
|
|
27
|
+
`checks` you add, and comes with the page's own words as evidence.
|
|
28
|
+
- **Model output only ever selects a listed element.** It never becomes a selector, a script or typed text.
|
|
29
|
+
- **It can record what it did.** A video of the run, a screenshot before every action, and an HTML page to review it,
|
|
30
|
+
built in. See [Recordings](#recordings).
|
|
19
31
|
|
|
20
|
-
|
|
21
|
-
/plugin marketplace add AbdallahAHO/jevway
|
|
22
|
-
/plugin install jevway@jevway
|
|
23
|
-
```
|
|
32
|
+
## What you need
|
|
24
33
|
|
|
25
|
-
|
|
34
|
+
jevway has no browser extension and no Playwright: it drives Chrome directly. Three things are required, and two
|
|
35
|
+
optional tools unlock more.
|
|
26
36
|
|
|
27
|
-
|
|
37
|
+
| | Needed for | Without it |
|
|
38
|
+
| --- | --- | --- |
|
|
39
|
+
| **Node.js 24+** | running jevway (`npx` fetches it) | it won't start |
|
|
40
|
+
| **Google Chrome** (or Chromium) | every run: your running Chrome, or a throwaway one jevway starts | runs fail; set `CHROME_PATH` if Chrome isn't in the usual place |
|
|
41
|
+
| **An API key**: `TYPESAFE_API_KEY` (recommended) or `OPENROUTER_API_KEY` | every decision Jev makes | the server still starts and lists its tools, and `jevway_look` works, but tasks and journeys answer with the setup fix |
|
|
42
|
+
| `ffmpeg` *(optional)* | the `run.mp4` video in a recording | recordings keep their step screenshots and HTML page, without the video |
|
|
43
|
+
| `notify-send` *(optional, Linux)* | the desktop notification when a person is needed (macOS has it built in) | the agent still asks you; there's just no pop-up |
|
|
44
|
+
| chrome-devtools MCP *(optional)* | inspecting what jevway left on screen: console, network, performance, DOM details | nothing is lost in jevway itself; your agent just has no deeper inspection tool |
|
|
28
45
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
```
|
|
46
|
+
**Which key?** Both run the same Jev model. The TypeSafe key adds **Box**, which locates controls on the screenshot:
|
|
47
|
+
it double-checks the click Jev chose and whether it's covered, rescues a step when Jev is stuck, can click a canvas
|
|
48
|
+
control (opt-in), and marks each journey screen's primary action and the controls missing from the page's code. Through OpenRouter those Box features are off; everything else works.
|
|
33
49
|
|
|
34
|
-
|
|
50
|
+
`npx -y jevway doctor` checks all of this and names the fix for anything missing.
|
|
35
51
|
|
|
36
|
-
|
|
37
|
-
"jevway": { "command": "npx", "args": ["-y", "-p", "jevway", "jevway-mcp"] }
|
|
38
|
-
```
|
|
52
|
+
## Quick start
|
|
39
53
|
|
|
40
|
-
|
|
54
|
+
1. **Get a key** from [TypeSafe](https://docs.typesafe.ai) (or use an [OpenRouter](https://openrouter.ai) key).
|
|
41
55
|
|
|
42
|
-
|
|
43
|
-
"jevway": { "type": "local", "command": ["npx", "-y", "-p", "jevway", "jevway-mcp"], "enabled": true }
|
|
44
|
-
```
|
|
56
|
+
2. **Run the setup** in your terminal:
|
|
45
57
|
|
|
46
|
-
|
|
47
|
-
|
|
58
|
+
```bash
|
|
59
|
+
npx -y jevway setup
|
|
60
|
+
```
|
|
48
61
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
```
|
|
62
|
+
It asks for the key without showing it and saves it to `~/.config/jevway/env` (mode 600, never a chat or a synced
|
|
63
|
+
config), tests the browser, and registers jevway with the clients it finds: Claude Code, Codex, Cursor, OpenCode.
|
|
64
|
+
Every change is shown first, as a command or a diff, and made only on a yes. It ends with `jevway doctor`.
|
|
53
65
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
- Some clients pass servers a filtered environment; the file still works there.
|
|
57
|
-
- Without a key the server still starts and lists its tools: `jevway_look` works, and the other tools answer with the fix.
|
|
66
|
+
In Claude Code you can instead install the plugin, which brings the server and the skill that tells the agent when
|
|
67
|
+
to use it (then put the key in `~/.config/jevway/env` yourself):
|
|
58
68
|
|
|
59
|
-
|
|
69
|
+
```text
|
|
70
|
+
/plugin marketplace add AbdallahAHO/jevway
|
|
71
|
+
/plugin install jevway@jevway
|
|
72
|
+
```
|
|
60
73
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
npx -y jevway doctor --plan # the steps still missing, numbered
|
|
64
|
-
npx -y jevway doctor --live # plus one real Jev request (a fraction of a cent)
|
|
65
|
-
```
|
|
74
|
+
3. **Allow the browser.** By default jevway uses your running Chrome: open `chrome://inspect/#remote-debugging` and
|
|
75
|
+
allow it. To use a throwaway browser instead, set `JEVWAY_BROWSER=launch`.
|
|
66
76
|
|
|
67
|
-
|
|
68
|
-
|
|
77
|
+
4. **Ask your agent** for something in the browser: "Find a 2-night stay in Lisbon for 2 guests under €150 and open the
|
|
78
|
+
best-rated one."
|
|
69
79
|
|
|
70
|
-
|
|
80
|
+
`npx -y jevway doctor` checks the setup at any time (`--json` for agents) and names the fix for anything missing.
|
|
71
81
|
|
|
72
|
-
|
|
82
|
+
## Let your agent set it up
|
|
73
83
|
|
|
74
|
-
|
|
75
|
-
- `launch` or `launch-headless`: a throwaway profile.
|
|
76
|
-
- `http://127.0.0.1:9222`: an explicit debugging port.
|
|
84
|
+
Paste this into your coding agent (Claude Code, Codex, Cursor, OpenCode…):
|
|
77
85
|
|
|
78
|
-
|
|
79
|
-
|
|
86
|
+
```text
|
|
87
|
+
Set up jevway for me and prove it works: follow https://github.com/AbdallahAHO/jevway/blob/main/SETUP.md step by
|
|
88
|
+
step. Check my machine's prerequisites with me first, show me every change before you make it, never ask me for an
|
|
89
|
+
API key in this chat, and finish by running the recorded smoke test and showing me its run page.
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
[SETUP.md](SETUP.md) walks the agent through everything: prerequisites for your OS, the key, registering the server,
|
|
93
|
+
the browser, the skill, a recorded Google → Wikipedia smoke test, and a report with the run page, video and
|
|
94
|
+
screenshots as proof.
|
|
80
95
|
|
|
81
|
-
|
|
96
|
+
## Install
|
|
82
97
|
|
|
83
|
-
|
|
98
|
+
**Claude Code:** the plugin above, or the server alone:
|
|
84
99
|
|
|
85
100
|
```bash
|
|
86
|
-
npx -y jevway
|
|
87
|
-
--url https://en.wikipedia.org/wiki/Main_Page \
|
|
88
|
-
--goal "Open the Wikipedia article about the Rosetta Stone" \
|
|
89
|
-
--values '{"search_query":"Rosetta Stone"}' \
|
|
90
|
-
--done-when "The Rosetta Stone article is open"
|
|
91
|
-
# prints the JSON summary; exit 0 only when status is "done"
|
|
101
|
+
claude mcp add jevway -s user -- npx -y -p jevway jevway-mcp
|
|
92
102
|
```
|
|
93
103
|
|
|
94
|
-
|
|
104
|
+
**Codex:**
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
codex mcp add jevway -- npx -y -p jevway jevway-mcp
|
|
108
|
+
```
|
|
95
109
|
|
|
96
|
-
|
|
110
|
+
**Cursor** (`~/.cursor/mcp.json`, under `mcpServers`) **or any stdio MCP client:**
|
|
97
111
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
| `pplx-decider` | `perplexity/pplx-decider-v1.1-27b` | `always` | 6/6 off and `always`, 0.4–1.3 s/request | 8/8 |
|
|
102
|
-
| `clef-omni` | `cloudflare/clef-omni` | `always` | 4/6 (3/6 off) | 7/8 (8/8 off) |
|
|
103
|
-
| `clef` | `cloudflare/clef` | none (images cost 16k tokens) | 6/6, 0.7–1.2 s/request | — |
|
|
104
|
-
| `clef-flash` | `cloudflare/clef-flash` | `always` | 1/6 | — |
|
|
105
|
-
| `gpt-6-luna` | `openai/gpt-6-luna-decisions` | `always` | 0–1/6: OpenAI refuses target questions (502) | — |
|
|
112
|
+
```json
|
|
113
|
+
"jevway": { "command": "npx", "args": ["-y", "-p", "jevway", "jevway-mcp"] }
|
|
114
|
+
```
|
|
106
115
|
|
|
107
|
-
**
|
|
116
|
+
**OpenCode** (`opencode.json`, under `mcp`):
|
|
108
117
|
|
|
109
|
-
|
|
118
|
+
```json
|
|
119
|
+
"jevway": { "type": "local", "command": ["npx", "-y", "-p", "jevway", "jevway-mcp"], "enabled": true }
|
|
120
|
+
```
|
|
110
121
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
-
|
|
122
|
+
Outside the Claude Code plugin, copy `skill/jevway/` into your agent's skills folder, so it knows when to use jevway and
|
|
123
|
+
when to use chrome-devtools. If a client times out on `npx`'s first download, run `npm install -g jevway` once and use
|
|
124
|
+
`jevway-mcp` as the command.
|
|
114
125
|
|
|
115
|
-
|
|
126
|
+
Having an agent install it? `npx -y jevway setup --client <claude-code|codex|cursor|opencode|other> --print` prints the
|
|
127
|
+
exact command or config for that client and changes nothing. [SETUP.md](SETUP.md) has the
|
|
128
|
+
steps per client, the rules (a diff before any config edit, no key in the chat) and the checks.
|
|
116
129
|
|
|
117
|
-
|
|
130
|
+
**Choosing a browser** (`JEVWAY_BROWSER` in the server's env or the env file):
|
|
118
131
|
|
|
119
|
-
|
|
132
|
+
| Value | Uses |
|
|
133
|
+
| --- | --- |
|
|
134
|
+
| `auto` (default) | your running Chrome, after you allow it at `chrome://inspect/#remote-debugging` |
|
|
135
|
+
| `launch` / `launch-headless` | a throwaway profile jevway starts and closes |
|
|
136
|
+
| `http://127.0.0.1:9222` | a Chrome you started with that debugging port and its own profile |
|
|
120
137
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
- **Journeys:** each screen's primary action is boxed (a dashed outline in the viewer, `primary_action` in reports). A tappable control with no DOM element becomes a `control_not_in_dom` QA finding.
|
|
138
|
+
**Without MCP**, use the CLI. It's built for agents: every command prints exactly one JSON document on stdout (the
|
|
139
|
+
result, or `{ "ok": false, "error": { "code", "message", "hint" } }`), progress goes to stderr as one JSON event per
|
|
140
|
+
line, and the exit code is 0 for success, 1 for a hand-back or a failure, 2 for bad usage. `--help` starts with
|
|
141
|
+
examples, and `jevway skill` prints the skill that matches the installed version.
|
|
126
142
|
|
|
127
|
-
|
|
143
|
+
```bash
|
|
144
|
+
# One-shot: runs, closes its tab, prints the result
|
|
145
|
+
npx -y jevway run --browser launch-headless --url https://en.wikipedia.org \
|
|
146
|
+
--goal "Open the Wikipedia article about the Rosetta Stone" --done-when "The Rosetta Stone article is open"
|
|
147
|
+
|
|
148
|
+
# A session: a background daemon keeps the tab between commands, so a hand-back can be answered
|
|
149
|
+
jevway run --session new --url https://example-stays.com --goal "Book 2 nights in Lisbon" --values '{"city":"Lisbon"}'
|
|
150
|
+
jevway run --session <id> --goal "Book 2 nights in Lisbon" --values '{"email":"ada@example.com"}'
|
|
151
|
+
jevway look --session <id> # what the page shows now, no model request
|
|
152
|
+
jevway sessions # open sessions; jevway end <id> closes one
|
|
153
|
+
```
|
|
128
154
|
|
|
129
|
-
##
|
|
155
|
+
## Use
|
|
130
156
|
|
|
131
|
-
|
|
157
|
+
The agent calls `jevway_task` with the outcome it wants, the values it may type, and the evidence of success:
|
|
132
158
|
|
|
133
159
|
```json
|
|
134
|
-
{
|
|
135
|
-
"url": "
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
160
|
+
{
|
|
161
|
+
"url": "https://example-stays.com",
|
|
162
|
+
"goal": "Search stays in Lisbon for 2 guests, filter to free cancellation, and open the first result",
|
|
163
|
+
"values": { "destination": "Lisbon", "guests": "2" },
|
|
164
|
+
"done_when": "A stay's detail page is open",
|
|
165
|
+
"allowed_hosts": ["example-stays.com"]
|
|
166
|
+
}
|
|
140
167
|
```
|
|
141
168
|
|
|
142
|
-
|
|
169
|
+
It gets back one concise result, `status` and `reason` first:
|
|
143
170
|
|
|
144
|
-
|
|
171
|
+
```json
|
|
172
|
+
{ "status": "done", "reason": "Completion condition verified: a stay's detail page is open.",
|
|
173
|
+
"story": ["Typed the \"destination\" value into \"Destination\".", "Clicked \"Search\".", "Clicked \"Casa Flora\"."],
|
|
174
|
+
"next": "Read the result in `page_text` (and `evidence`); end the session when you no longer need its tab.",
|
|
175
|
+
"session": "a63a13f0-…", "url": "…", "title": "Casa Flora · Staylist",
|
|
176
|
+
"files": { "run_dir": "…/.jevway/runs/2026-11-02_1028_search-stays-in-lisbon_a63a", "screenshot": "…/final.jpg" },
|
|
177
|
+
"page_text": "…" }
|
|
178
|
+
```
|
|
145
179
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
| `needs_confirmation` | The next click looks irreversible (pay, send, delete, submit). `confirm_irreversible: true` allows exactly one such click, and an agent should set it only for the action and target the user's own request names (a category such as "anything unused" names no target: it lists the candidates and asks the user); otherwise it asks the user. It allows only the control that needs_confirmation named (same label, same page path); a different irreversible control is handed back as a new needs_confirmation. It counts only on the call that answers a needs_confirmation (or a new session's first call, which has no flagged control and allows any one); anywhere else it is ignored. Pass `confirm_target` with the user's words that name the target; jevway checks the page shows them (the control's own words, like "delete", do not count) and refuses otherwise. |
|
|
151
|
-
| `uncertain` | Operation or target confidence was below the model threshold (Jev 0.3; per model in `src/jev/model.ts`), 6 actions in a row ran under 0.5 confidence (exploring, not progressing), or DONE could not be verified. |
|
|
152
|
-
| `blocked` | No supported operation can progress, 3 actions in a row changed nothing, the same target was covered 3 times, one action only toggled the page back and forth 4 times, or the same element was used 6 times in 7 actions; the page shows an error after this call acted (the reason quotes it); or a sign-in screen blocks the goal and no supplied value fits its fields (`wall: { kind: 'sign_in', origin }`). Also a bot check (a Cloudflare challenge, a reCAPTCHA, hCaptcha or Turnstile page, an "unusual traffic" page) that did not clear by itself within 8 s: the reason names it, the summary carries `wall: { kind: 'bot_check', origin, name }` (name: cloudflare, recaptcha, hcaptcha, turnstile or unusual-traffic), no Jev request is spent on it, and jevway never tries to get past one. |
|
|
153
|
-
| `step_budget` | `max_steps` (default 40) or `max_seconds` (CLI `--max-seconds`; default 300, per call) was reached; the reason says which. |
|
|
180
|
+
`story` says what happened in plain sentences, `next` says what to do now, and `files` points at the run folder and a
|
|
181
|
+
screenshot of the end page. On a hand-back the screenshot also comes inline, so the agent sees the page it has to decide
|
|
182
|
+
about. `detail: "full"` adds every step's confidence, the request stats and the candidates Jev weighed. When the status
|
|
183
|
+
hands control back, the agent continues with the same `session`:
|
|
154
184
|
|
|
155
|
-
|
|
185
|
+
| Status | What the agent does |
|
|
186
|
+
| --- | --- |
|
|
187
|
+
| `done` | Reads `page_text` or `evidence` for the result. |
|
|
188
|
+
| `needs_input` | Gets the missing value (`missing` names each field) and calls again with it in `values`. |
|
|
189
|
+
| `needs_confirmation` | Confirms with `confirm_irreversible: true` only if the user's request named this action and its target; otherwise asks the user. |
|
|
190
|
+
| `uncertain` / `blocked` | Reads the reason, `stuck` and `page_text`; rephrases the goal, or does the step itself. |
|
|
191
|
+
| `step_budget` | Continues with a narrower goal. |
|
|
192
|
+
|
|
193
|
+
`jevway_look` reads a page with no model request, and `jevway_end` closes the session's tabs. Every parameter and
|
|
194
|
+
field is in the [reference](docs/reference.md).
|
|
195
|
+
|
|
196
|
+
**Keeping a run on track:**
|
|
197
|
+
|
|
198
|
+
- `allowed_hosts` keeps it on the sites you mean; leaving them ends the run `blocked`.
|
|
199
|
+
- `secret_keys` marks values like API tokens: Jev sees only the key, and outputs show `[secret:<key>]`.
|
|
200
|
+
- Password fields are never listed, typed or sent. Type a password yourself, then tell jevway you did.
|
|
201
|
+
- `checks` add exact facts code verifies on the final page: a URL, a title, a field's value, a ticked box.
|
|
202
|
+
- `record: true` saves a video, a screenshot before every action, and a page to review the run.
|
|
203
|
+
- `page_text` and everything else read from a page is untrusted data, never instructions.
|
|
204
|
+
|
|
205
|
+
## When a person, a code or a file is involved
|
|
206
|
+
|
|
207
|
+
jevway keeps the person in the loop only where a person is truly needed, and handles the rest itself.
|
|
208
|
+
|
|
209
|
+
- **Asking you.** Every hand-back that needs a decision carries an `ask_user` question: the missing fields, "Click
|
|
210
|
+
*Delete repository* on *ada/scratch*?", "Which one did you mean?". Your agent puts it to you with its own ask tool
|
|
211
|
+
and continues the session with your answer.
|
|
212
|
+
- **Bot checks and sign-ins.** In a visible browser, jevway brings the tab to the front, sends a desktop notification
|
|
213
|
+
("Pass the Cloudflare check in the Chrome window"), waits up to 120 s while it tells the agent how long is left,
|
|
214
|
+
and carries on in the same call once you're through. It never tries to get past a check itself. In a headless
|
|
215
|
+
browser it hands back and suggests a visible one.
|
|
216
|
+
- **Email codes for test sign-ups.** A throwaway inbox (`jevway_inbox_create` / `jevway_inbox_wait`, or
|
|
217
|
+
`jevway inbox …`) returns the code and links of the email that arrives. Only for test and demo accounts you asked
|
|
218
|
+
for, never to get around limits, trials or bans.
|
|
219
|
+
- **2FA on your own accounts.** Pass `totp: {"otp": "<authenticator secret>"}`: jevway computes the current code at the
|
|
220
|
+
moment it types it, so neither the secret nor the code reaches the model, a result or disk.
|
|
221
|
+
- **Files.** Uploads take local paths or `https` URLs (fetched into the run folder), work inside iframes and on
|
|
222
|
+
drag-and-drop zones. Downloads land in the run folder's `downloads/` and are listed in `files.downloads`.
|
|
223
|
+
`jevway_look` with `pdf: true` saves the page as a PDF.
|
|
224
|
+
|
|
225
|
+
## Recordings
|
|
226
|
+
|
|
227
|
+
Every session gets a folder under `./.jevway/` in the working directory, so the agent and you can find its files:
|
|
156
228
|
|
|
157
|
-
|
|
229
|
+
```text
|
|
230
|
+
.jevway/runs/2026-11-02_0915_book-a-stay-in-lisbon_a1b2/
|
|
231
|
+
final.jpg the end page calls/01-needs-input.jpg, 02-done.jpg …
|
|
232
|
+
summary.json what the agent got manifest.json every file and what it is
|
|
233
|
+
index.html run.mp4 steps/01-type-destination.jpg … (with record: true)
|
|
234
|
+
```
|
|
158
235
|
|
|
159
|
-
|
|
236
|
+
Pass `record: true` (CLI `--record`) and jevway also keeps a record for people, with no extra setup:
|
|
160
237
|
|
|
161
|
-
|
|
238
|
+
- `index.html`: opens with the goal and how the run ended, then the video, with every step told as a sentence on a
|
|
239
|
+
timeline and a strip of screenshots kept in sync; click a step to play from there. It works offline, in light and
|
|
240
|
+
dark, and embeds the summary as JSON for agents.
|
|
241
|
+
- `run.mp4`: a screencast of the whole run (needs `ffmpeg`).
|
|
242
|
+
- A sharp screenshot before every action, named for what it did, with its target outlined and labelled.
|
|
162
243
|
|
|
163
|
-
|
|
244
|
+

|
|
164
245
|
|
|
165
|
-
|
|
246
|
+
Values marked secret are masked in the text files; screenshots and video show the page as it was. The model never sees
|
|
247
|
+
these images. Journey maps get their own viewer, described next.
|
|
166
248
|
|
|
167
|
-
|
|
249
|
+
## Journey maps
|
|
168
250
|
|
|
169
|
-
|
|
251
|
+
The `jevway_journey_*` tools map how a person moves through a site on a phone: every screen with its type and UI
|
|
252
|
+
patterns, the taps between them, and QA findings like tap targets under 44 px, console errors and dead ends. You pick
|
|
253
|
+
the taps, or let Jev explore. The result is a shareable viewer. See [docs/journeys.md](docs/journeys.md).
|
|
170
254
|
|
|
171
|
-
##
|
|
255
|
+
## How it works
|
|
172
256
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
-
|
|
177
|
-
|
|
257
|
+
Each step, jevway reads the page through the Chrome DevTools Protocol into a numbered list of controls and the visible
|
|
258
|
+
text, and sends one request to Jev with the goal, that list and the names of the supplied values. Jev answers with an
|
|
259
|
+
operation, a listed element, which value to type, its confidence and a commit-risk score. Code checks the answer
|
|
260
|
+
against the list, re-checks the page is fresh and the target isn't covered, and acts with real input events. Guards
|
|
261
|
+
stop loops, and a separate check decides `done`.
|
|
178
262
|
|
|
179
|
-
|
|
263
|
+
The full technical specification is in [docs/how-it-works.md](docs/how-it-works.md).
|
|
180
264
|
|
|
181
|
-
|
|
182
|
-
pnpm test # offline: action space, request shape, answer validation, task-loop rules
|
|
183
|
-
pnpm verify # live: headless Chrome + real Jev, checked against independent ground truth
|
|
184
|
-
pnpm verify:real # live public sites, a fresh browser per run, 5 runs each (JEVWAY_REAL_RUNS, JEVWAY_REAL_ONLY)
|
|
185
|
-
pnpm verify:langfuse # 10 jobs in Langfuse's demo project, signed-in Chrome on :9333, recorded into report.html
|
|
186
|
-
pnpm report:render verify/out/<folder> # rebuild a suite's report.html (or a run folder's index.html), offline
|
|
187
|
-
pnpm verify:replay --record verify/out/replay/<name> # live: record every Jev answer of the fixture suites
|
|
188
|
-
pnpm verify:replay verify/out/replay/<name> # offline: replay them, no key, no credits
|
|
189
|
-
```
|
|
265
|
+
## Models
|
|
190
266
|
|
|
191
|
-
|
|
267
|
+
Jev 1.14 is the default, on the TypeSafe API with `TYPESAFE_API_KEY` (with screenshots and Box, which locates
|
|
268
|
+
controls on the screenshot to cross-check and rescue clicks) or through OpenRouter with `OPENROUTER_API_KEY`. Perplexity's and Cloudflare's decision models run through
|
|
269
|
+
OpenRouter too. Jev is priced at $0.042 per 1M input tokens, so a typical 10-step task costs well under a cent. See
|
|
270
|
+
[Models](docs/reference.md#models) for results per model.
|
|
192
271
|
|
|
193
|
-
|
|
194
|
-
- **Real Wikipedia search.**
|
|
195
|
-
- **Canvas-only control** (Box profiles with screenshots): no click without the opt-in, and the game starts with it.
|
|
196
|
-
- **Wide table rows** (like Langfuse's traces table): rows wider than their scroll box are listed and opened, not their checkboxes. The run is recorded.
|
|
197
|
-
- **MCP stdio round trip.**
|
|
272
|
+
## Documentation
|
|
198
273
|
|
|
199
|
-
|
|
274
|
+
| Doc | For |
|
|
275
|
+
| --- | --- |
|
|
276
|
+
| [docs/reference.md](docs/reference.md) | every tool, parameter, status, CLI flag, environment variable and model |
|
|
277
|
+
| [docs/how-it-works.md](docs/how-it-works.md) | the technical specification: one step end to end, guards, safety |
|
|
278
|
+
| [docs/journeys.md](docs/journeys.md) | the journey-map tools |
|
|
279
|
+
| [SETUP.md](SETUP.md) | agents setting jevway up for a person, with a recorded smoke test |
|
|
280
|
+
| [skill/jevway/SKILL.md](skill/jevway/SKILL.md) | the skill agents load: when and how to call jevway |
|
|
281
|
+
| [docs/verification.md](docs/verification.md) | the test suites and their results |
|
|
282
|
+
| [docs/prior-art.md](docs/prior-art.md) | other open-source Jev browser projects, and what was taken from them |
|
|
283
|
+
| [CONTRIBUTING.md](CONTRIBUTING.md) | building, testing and releasing |
|
|
200
284
|
|
|
201
|
-
|
|
285
|
+
## Contributing
|
|
202
286
|
|
|
203
|
-
|
|
287
|
+
Bug reports, site failures and pull requests are welcome. [CONTRIBUTING.md](CONTRIBUTING.md) covers the setup, the
|
|
288
|
+
offline test suite (no API key needed) and the conventions. Report security issues privately, as described in
|
|
289
|
+
[SECURITY.md](SECURITY.md).
|
|
204
290
|
|
|
205
|
-
|
|
291
|
+
## License
|
|
206
292
|
|
|
207
|
-
|
|
293
|
+
MIT. The task loop, DOM snapshot and guards build on [browser-use/jev-ultrafast](https://github.com/browser-use/jev-ultrafast)
|
|
294
|
+
(MIT; see [LICENSE.jev-ultrafast](LICENSE.jev-ultrafast)).
|
|
208
295
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
- The DOM reader covers common HTML/ARIA controls, including inside open shadow roots and iframes. Every visible frame, same-origin or cross-origin (out-of-process frames too), is read with the same reader: its controls continue the page's numbering, its text follows the page's under `[Frame: …]` within the same 6000 characters, and clicks, typing and every guard run inside the frame. A frame is skipped when it shows less than 16×16 px, sits outside an open modal, is still blank, takes over 1.5 s to read, or is past the caps (10 frames, 3 levels deep); controls a banner or sheet covers in the page around the frame aren't listed. CSS-transformed (scaled, rotated) iframes are placed as if untransformed.
|
|
212
|
-
- Closed shadow roots and canvas aren't read, and file inputs inside iframes aren't supported: they are not listed, and an upload is never set inside a frame. Box can see canvas controls (and frames skipped above), and click them with the opt-in; otherwise use chrome-devtools.
|
|
213
|
-
- Uploads take only files the caller declares in `files` (key → absolute path, checked before the run), never a path from `values`. Only then are file inputs listed (hidden ones through their label or styled button) and UPLOAD offered; Jev sees each key and file name, never the path, and a native file picker is intercepted. No declared file fitting a field is `needs_input`.
|
|
214
|
-
- A tab the session's own click opens (`target=_blank`, `window.open`) is followed, and a closed one falls back to the tab that opened it; tabs anyone else opens are never touched. `jevway_end` closes the tabs the session's clicks opened (and its first tab when it opened it) unless `keep_tab`. The new tab is set up when it appears, so on a page that loads within ~20 ms its first document's own scripts run before the click counter; that can only end a run `blocked`, never repeat a click. A dialog the new tab raises before it is set up freezes it; following then fails after 5 s and the run ends `blocked`. In `auto` mode Chrome shows the new tab in front. A `record_dir` video stays on the first tab.
|
|
215
|
-
- Only on-screen elements are listed; Jev scrolls to reveal more. On a page whose document doesn't scroll (an app shell), the scroll goes to the largest visible pane that does; a scroll that moved nothing is reported to Jev as such. Exception: an off-screen link, button or row containing one of the supplied `values` is listed too, and scrolled into view when clicked.
|
|
216
|
-
- The scroll aimed at an inner pane works on the main page only; inside an iframe, scrolling stays page-level.
|
|
217
|
-
- Confidence thresholds (per model, in `src/jev/model.ts`) and the 0.5 risk threshold are starting points, tuned on a small set of runs.
|
|
218
|
-
- Jev's commit-risk check is a speculative page-level judgment ("the click that best advances the goal") plus a per-element score for the chosen click; the higher one counts. Other models score each candidate only, and Box rescues use the box's own score.
|
|
219
|
-
- A click scoring 0.25–0.5 on risk gets a screenshot look before it runs, but only with screenshots on (`fallback` or `always`). With screenshots `off`, text alone under-reads some checkout pages (a bare "Continue" can score under 0.5), so keep screenshots on when a task can reach a payment step.
|
|
296
|
+
jevway was called jev-browse until 0.1.0. Its old tool names (`browser_task`, `browser_look`, `browser_task_end`,
|
|
297
|
+
`journey_*`) and `JEV_*` environment variables no longer work.
|