Agweb: A WebKit Browser Built for Coding Agents Idles at 590 MB Where Playwright Chrome Uses 1.6 GB
Agweb, a macOS browser designed to be driven by coding agents rather than people, reached the Hacker News front page on 14 November. The Swift project is MIT-licensed, was created on 11 November, and shipped v0.2.0 on 13 November. It had 92 GitHub stars at time of writing.
The pitch comes from a specific annoyance. The author runs several coding agents at once, and Playwright’s Chrome windows kept stealing keyboard focus, while headless browsers got blocked by some sites and left the author guessing why. Agweb is a single WebKit window that never comes to the front. Agents drive it from the shell with an agweb command modelled on playwright-cli, and a dashboard (Cmd-D) shows every tab of every agent live, along with each agent’s last command.
Memory claim
The author’s own comparison for five idle pages on one Mac:
| Browser | Memory |
|---|---|
| Agweb | 590 MB |
| Headless Chrome | 730 MB |
| Playwright Chrome | 1.6 GB |
The numbers are the author’s measurement on one machine, not an independent benchmark. The author also says five idle tabs sit at 0% CPU in Agweb, where Chrome’s GPU process kept five to seven cores busy. Idle tabs are throttled and then suspended.
The token-cost angle
The more interesting design choice for agent builders is what the tool returns. After each action, Agweb’s reply states what it did and what changed: fetches started, DOM lines added or removed, dialogs, popups, downloads, console errors. The agent does not need a second snapshot to confirm a click. Example from the README: clicking a “Main menu” button returns a diff showing the button flipped to [checked] [expanded] and the new list of links under it.
Other agent-facing features:
- Stable refs: element handles (
[ref=eN]) persist while the element stays on the page. snapshot --diffandfind: return only the parts of the page that matter.- Actions wait for the fetches they trigger, so agents rarely need to sleep.
text: returns the page’s article as markdown.ask: hands a tab to the human for a login, MFA code or CAPTCHA without taking focus.fill --secret-cmd: types a secret pulled frompass, 1Password or Bitwarden CLIs without the value appearing in the agent’s transcript.- Named profiles: logins are shared by every agent using the profile at the same time, which a Chrome profile does not allow.
- Built-in ad blocking using uBlock Origin’s filter lists, refreshed every four days, which an agent can switch off per workspace for analytics testing.
video-start: records a tab to MP4 with the pointer and clicks drawn in.
Clicks and keystrokes are sent as native macOS events and the pointer moves along a path like a hand, so hover menus and drag-and-drop work.
Limits
The README is direct about what it cannot do:
- WebKit only. There is no Chrome DevTools Protocol, so Playwright and Chrome extensions cannot attach, and Chrome-only sites may misbehave.
routemocks fetch and XHR only.requestslists images, scripts and styles by URL only.- The ad blocker cannot run uBlock’s scripts, so YouTube ads and some anti-adblock walls get through.
- It requires macOS 26 or later, and building from source needs Xcode 26 or later.
For anything it cannot do, the README tells users to fall back to Playwright. Agweb ships a Help menu item that installs an agent skill for Claude Code and Codex.
The project is one person’s two-day-old tool, and the performance numbers are unverified. The design is the useful part: a browser tool whose output format is shaped around an agent’s token budget, with diffs in place of full snapshots, is a pattern other agent-browser tooling can copy.