ego-jev

Every step your agent takes on a page costs a full LLM turn — seconds of
reasoning before each click.
When I drive multi-step tasks in ego lite — filling a form, setting filters,
clicking through menus — the agent pauses before every step: read the
snapshot, reason, then act. A ten-step task means ten LLM turns. Then I saw
jev-ultrafast run the same
kind of loop standalone — Zürich → London on Google Flights in 7.1 s — and
ported that inner loop into ego lite, so the agent keeps your real browser,
your sessions and your logins.
How it works
ego executes; Jev decides. Each step: snapshot → number the interactive
elements → one System One call picks
the operation and its target in the same request → ego clicks, fills or
selects. One decision, one network round trip, ~0.4 s.
@2 textbox "Customer name"
@5 button "Apply filters"
d1 div "member card G18655"
Per step: ~300–550 ms for the decision, ~11K input tokens ≈ $0.0005. The
alternative is a full LLM turn — seconds of reasoning plus a screenshot.
Measured on a 7-step form task (3 runs, all verified, ~5.5 s wall): Jev
decides in a median ~270 ms. One bare LLM call over the same snapshot takes
~1.0 s (Haiku 4.5), ~1.4 s (Sonnet 4.5) or ~2.8 s (GPT-5 mini), before any
agent overhead. Method and raw data: docs/bench.
What it also does:
- Finds elements the snapshot misses.
dN entries cover div cards,
cursor:pointer widgets, iframe and shadow content that never get a11y
refs — the clickables that usually make a loop give up.
- Escalates instead of guessing. Pay, delete, upload, confirm, login
pages, free text, low confidence and repeated actions all hand control back
to you, in English and 中文.
done is a claim; your verify decides.
- Checks configuration before browser work. A safe preflight resolves
credentials without a model request. Missing credentials pause Jev before
browser work; the agent asks once about secure local setup, an existing
configuration location or plain ego-browser for the same user goal.
- Records what happened, only if you ask. Opt-in
record captures the
XHR/fetch requests each step triggered plus a cookie before/after diff, with
headers, bodies and cookie values off and query tokens redacted by default.
The agent asks before the first run; off unless you say yes.
- Shows why it chose what it did. Opt-in
debugDir writes a live,
auto-refreshing report.html: each step's screenshot with candidate,
target and locate-box overlays next to every answer's probabilities.
- Never hangs. A whole-run
deadlineMs (120 s) and a per-operation
pageTimeoutMs (15 s) turn a stuck page or backend into an escalate
with a timeout reason.
What it never does: Jev does not type free text and does not touch login,
payment or captcha. It reads screenshots only when you opt in (screenshot: true, Jev 1.14+ on the direct TypeSafe backend), which lets it click
unlabeled visual targets — canvas cells, map pins, icon glyphs — via a Box
locate answer. Everything else comes back to the agent that called it.
Demo
This author demo illustrates the mechanics. Ordinary tasks use the user's
goal, URL/existing Page and supplied values; ask a minimal clarification if
the goal or starting target is missing. Run examples or demos only when the
user explicitly requests a test/demo, including when no backend key is set.
Four Jev decisions on a live form — each step numbers the elements, picks an
operation and target in one call, then ego executes it:
(docs/demo.mp4 for a crisper version.)
Use
-
Install the skill:
npx skills add ZephyrDeng/ego-jev
Claude Code plugin and gh skill install ZephyrDeng/ego-jev work too.
-
Put one backend key in ~/.config/ego-jev/secrets.env
(export NAME=value):
TYPESAFE_API_KEY from console.typesafe.ai
— fastest, ~300–550 ms/step, $5 monthly credit without a card, or
AI_GATEWAY_API_KEY for Jev through the Vercel AI Gateway.
-
In ego-browser nodejs, run preflight before creating a TaskSpace or
navigating a Page. It uses the same credential lookup as the real backend
and returns only readiness, route and safe guidance, never the key: