tabref
Why it exists
Agents need a way to read and drive web pages from the shell. tabref started inside agent-desktop and was split out into its own repo on 2026-11-15, so each tool ships and is measured on its own.
What it does
An agent opens a page with tabref open and reads a snapshot where each
control has a ref (e1, e2). It acts with click, fill or select on
a ref or a visible label, and each action waits for the page and prints what
changed. tabref do runs several steps in one shell call. It launches its
own headless browser, attaches to a DevTools port, or connects to my own
running browser with connect --user-chrome, which it never touches unless
asked.
It installs with npm i -g @gshost1/tabref, and the command is tabref.
Design choices
- Small views. Reading-order snapshots and per-action change reports keep the context small.
- Reuse a fresh capture. A capture is reused for up to 5 s while the page is unchanged. On an RFC page, open, snap and two finds went from 4.9 s to 2.2 s over 10 runs.
- No unsafe retries. An action that was sent is never reported as safe to retry.
- A short guide.
tabref skillprints the whole agent guide in 39 lines.
Numbers
One demo task, a Wikipedia lookup of the Apollo 11 launch date and crew, 5 runs each with Sonnet 5.5: tabref 0.2.0 passed 5/5 in 7.8 s and 9.9k tokens against 5/5 in 9.9 s and 25.7k for Playwright MCP 0.0.86. It is one task, a demo and not a benchmark.
What it is not
It misses its own release targets. On a sealed set of 10 web tasks that nobody tuning it had seen, 0.2.0 passed 45/50 in 95.3 s with 356k tokens, against targets of 50/50, 90 s and 250k. Four of the five failures were on one task. It works only with Chrome, Chromium and Edge, and it reports bot checks rather than getting past them.