A companion skill for ego lite. The coding agent states a goal and a success check. This runner lists on-page controls, clicks inside one ego-browser process, and returns JSON. Success is a URL or title match — not a model saying it is done.
It does not dump snapshotText() into the coding model between clicks.
curl -fsSL https://raw.githubusercontent.com/raydocs/egolite-jev/main/scripts/install.sh | bashThe script links the skill into ~/.claude/skills and ~/.codex/skills, then asks for a Jev key: a TypeSafe key (preferred: ~90 ms per decision) or an OpenRouter key (sk-or-…, ~250 ms). With both available the runner uses TypeSafe; JEV_PROVIDER=openrouter forces OpenRouter. The key is stored at ~/.config/egolite-jev/env (mode 600). scripts/run reads it; you do not export it every session.
npx skills add raydocs/egolite-jevRequires ego-browser on PATH.
Read the egolite-jev skill. Do not dump snapshotText() into chat.
Run:
GOAL='Open the Docs page' URL='https://lite.ego.app/' SUCCESS_MATCH='/document' \
~/.claude/skills/egolite-jev/scripts/run
Codex: use ~/.codex/skills/egolite-jev/scripts/run.
Pass only if ok: true and page.url contains /document. Print elapsed_ms and steps[].via.
| Chrome computer-use | Playwright (agent-written) | ego-lite snapshot → LLM | ego-lite + Jev | |
|---|---|---|---|---|
| Leaves your daily Chrome alone | no | yes | yes | yes |
| Logged-in cookies | yes* | extra setup | yes | yes |
| Page dump into the coding model | yes | usually | yes | no |
| Docs task (this machine) | — | — | 35–41 s | 4.1 s / 0.92 s |
* attaching to the human Chrome profile.
Chrome and Playwright bars are typical agent loops (screenshots, or the model writing locators each turn), not a pre-written test. ego-lite figures are measured here for Open the Docs page on lite.ego.app.
If the top control’s href already contains SUCCESS_MATCH, Jev is skipped (via: "href").
GOAL + SUCCESS_MATCH
│
▼
snapshot (local) → ranked controls with opaque keys (click_1, …)
│
├─ href already matches SUCCESS_MATCH → click
└─ otherwise → Jev Choice → validate → click
│
▼
ok: true only if the live URL/title contains SUCCESS_MATCH
Jev never sees @ref. Fill text comes only from JEV_FILL. Default cap: 4 actions.
GOAL='Open the Docs page' \
URL='https://lite.ego.app/' \
SUCCESS_MATCH='/document' \
./scripts/run| Variable | Required | |
|---|---|---|
GOAL |
yes | What success looks like |
SUCCESS_MATCH |
yes | Substring of URL or title |
URL |
Start tab | |
JEV_FILL |
JSON map of values to type | |
MAX_STEPS |
Default 4, max 8 | |
SPACE |
ego task space name |
{
"ok": true,
"reason": "done",
"elapsed_ms": 4131,
"page": {
"url": "https://lite.ego.app/document/en/docs/quick-start"
},
"steps": [
{ "via": "href", "acted": "click", "detail": "CLICK anchor \"Docs\" → …/quick-start" }
]
}reason |
|
|---|---|
done |
Stop. Extract with js() if needed. |
need_llm |
One targeted snapshot, then a heredoc or stop. |
dialog |
Hand off to the user. |
budget_exhausted |
Do not rerun unchanged. |
ok is true only for done.
QUERY='saas pricing page ui examples' K=3 ./scripts/searchDuckDuckGo results, one Jev ranking call (~150 ms) and the top K pages (default 3, max 5) read in parallel, in one
process. Pages are fetched without a browser first; only script-rendered or blocked ones open in a tab. 2.3–3.6 s for
three pages, against ~55 s for a search-then-open heredoc loop. SHOTS=1 is for design references: each page (or
each of URLS) is captured at 1280×800 (SHOT_VIEW=mobile|both for 390×844), settled, with consent banners hidden
by CSS, as JPEG, plus one contact sheet and a brief of paths to hand a reviewer (3–6 s for three pages). It prints {ok, mode, ranked_by, timing, results, pages}; without a key it keeps the search order. The query goes to DuckDuckGo and
result titles to Jev, so keep private names out of it.
node --test testsMIT. Browser: ego lite. Decisions: TypeSafe Jev, directly or via OpenRouter.
