# jev-browser
**Let your coding agent hand off web navigation instead of driving the browser click by click.**
`jev-browser` is a Claude Code skill plus a small CLI, `jb`, adapted from Cline's Jev integration. The agent writes one narrow goal,
such as *"search the docs for `useTransition` and open the reference page"*, and makes **one**
`jb run` call. `jb` launches an isolated Playwright Chromium. At each step it lists the page's legal
actions, and **Jev**, TypeSafe AI's action model, picks one and returns a calibrated probability.
The agent gets back ~1 KB of JSON and a final screenshot, not a stream of DOM snapshots.
## Results at a glance
72 runs: 12 tasks, 3 runs each, on both tools. Every run was graded from its final screenshot by a
separate model. [Full report →](benchmarks/2026-09-24/README.md)
| | `jb` + Jev | Playwright MCP |
|---|---|---|
| Passed | 31 / 36 (86%) | **36 / 36 (100%)** |
| Median time per run | **31 s** | 40 s |
| Median agent tokens per run | **44k** | 54k |
| Total agent tokens (36 runs) | **1.62M** | 2.31M |
| Tool calls per run | **6.9** | 14.4 |
- **Half the tokens on heavy pages.** On playwright.dev, react.dev and HN search, the calling agent
spent 44–50k with `jb` against 92–118k with Playwright MCP.
- **Faster on most tasks.** `jb` was faster on 8 of 12 tasks and tied on 2.
- **Less reliable.** It failed MDN 3/3 by never opening the search box, failed a GitHub file lookup
2/3, and needed a retry on every HN filter run. Playwright MCP passed all 36.
**The takeaway:** use `jb` first for "get me to this page" work, and fall back to Playwright MCP when
it returns `BLOCKED` or `step_limit`. The skill encodes exactly that rule.
## How it works
```mermaid
flowchart LR
A["Coding agent (Claude Code)"] -- "jb run --goal … (1 call)" --> J["jb daemon isolated Chromium"]
J -- "legal actions + screenshot" --> M["Jev action model"]
M -- "next action + probability" --> J
J -- "~1 KB JSON + final screenshot" --> A
A -. "BLOCKED / step_limit" .-> P["Playwright MCP fallback"]
```
- **Isolated browser.** It has its own profile, and the daemon runs per session (`--session `).
- **Safety stops.** CAPTCHA, login, payment, submission and deletion return `REVIEW` and hand control
back. `jb` never solves a CAPTCHA.
- **Honest results.** `done_unverified` means Jev *believes* it finished. The skill makes the agent
check the screenshot before claiming success.
## When to use it
| Use `jb` | Use Playwright MCP |
|---|---|
| Open a docs page through the site's search box | Assertions and testing a web app |
| Find a post or item on a listing and open it | Reading page text back into the agent |
| Fill a short form, stopping before submit | Network or console inspection, tabs, storage |
| Watch it happen with `--headed` | Anything `jb` returned `BLOCKED` or `step_limit` on |
## Install
**As a Claude Code plugin:**
```
/plugin marketplace add doruktarhan/jev-browser
/plugin install jev-browser@jev-browser
```
**Or copy the skill:** `cp -R skills/jev-browser ~/.claude/skills/`
**Then set up `jb` once** (Node 22+):
```bash
cd skills/jev-browser/jb # or ~/.claude/skills/jev-browser/jb
npm install && npx playwright install chromium
mkdir -p ~/.jb && cp config.example.json ~/.jb/config.json # add your AI Gateway or TypeSafe key
ln -s "$PWD/bin/jb" ~/.local/bin/jb # any dir on PATH
```
Full CLI reference: [`skills/jev-browser/jb/README.md`](skills/jev-browser/jb/README.md).
## Repo layout
```
jev-browser/
├── skills/jev-browser/
│ ├── SKILL.md # when and how the agent uses jb
│ └── jb/ # the CLI (TypeScript, Playwright, 33 tests)
├── benchmarks/
│ ├── 2026-09-24/ # 72-run benchmark: data, screenshots, grader verdicts, charts
│ └── 2026-09-21-pilot/ # first 3-task pilot that shaped the skill's goal-writing rules
└── .claude-plugin/ # plugin + marketplace manifests
```
## Credits and license
- **`jb` started from [Cline](https://github.com/cline/cline)'s Jev browser integration.** I took it
out of Cline and rebuilt it as a standalone CLI and daemon that any coding agent can call: isolated
per-session Chromium, JSON run summaries, screenshot and video artifacts, a TypeSafe or AI Gateway
provider switch, and its own tests. That code stays under Cline's **Apache-2.0** license. See
[`jb/LICENSE`](skills/jev-browser/jb/LICENSE) and [`jb/NOTICE`](skills/jev-browser/jb/NOTICE). A
few runtime messages still say "Cline" where they mean the calling agent.
- **The skill (`SKILL.md`), the benchmarks and the docs are mine**, under **MIT** ([`LICENSE`](LICENSE)).
- **Jev** is TypeSafe AI's model, reached through Vercel AI Gateway or TypeSafe's API. `jb` runs on
Microsoft's Playwright.
Part of the [doruk-ai-harness](https://github.com/doruktarhan/doruk-ai-harness) collection.