hwatu
A headless verification browser for AI coding agents: one-call checks, pixel diffs, and a clean hand-off to a human when needed.
- Source repo
- hongnoul/hwatu
- Stars
- ★ 121
- Last updated
- 2d ago
- FARS reviewed
- Nov 24, 2026
- License
- MIT
- Primary language
- Rust
- FA score
- 55/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformCodex · Claude Code
- Cost
- Free, no paid service needed
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- A coding agent that just changed frontend styles uses
hwatu batchto open the local dev server, click the main button, assert on.statustext, and screenshot for a pixel diff without anyone watching the screen. - Not a fit if
- Developers on macOS or Windows, which are targets but not yet supported
- Teams wanting a visible GUI browser or recorded-script automation
- Users expecting the tool itself to solve logins or CAPTCHAs automatically
- Website
- hongnoul.github.io/hwatu ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-22
- Source review
- 55/100 · Major gaps
What does this agent do, and when should you use it?
hwatu is a headless browser that runs on the user's own machine and is driven by coding agents through a CLI and an MCP server. It ships as a single binary built on WebKitGTK 6.0 and currently supports Linux only, with macOS and Windows listed as targets. Agents use it to open pages, pull a page snapshot with interactable refs, click, type, assert with polling, take screenshots for pixel comparison, and run a whole sequence in one batch call that waits on page state rather than fixed delays. When a login wall, an irreversible action, or a CAPTCHA appears, it returns a structured stop that the agent relays to the person, and show flips a headless window visible for real human handling. The installer drops the binary and checks for webkitgtk-6.0, while hwatu setup detects MCP clients such as Claude Code, Cursor, and Jcode and writes their config with --dry-run preview and --undo rollback.
hwatu launches a headless WebKit window locally from one binary: hwatu localhost:3000 opens a page and prints its id. hwatu snapshot exports page state as data with refs for interactable elements, which the agent then drives with hwatu click --ref 3, hwatu type --ref 5 "Test User", and asserts on with hwatu expect '.status' --text Saved. hwatu shot /tmp/after.png produces a screenshot for pixel diffs and hwatu show 1 makes window 1 visible. hwatu batch --stdin < steps.json collapses a sequence into a single call, advancing on page state instead of fixed delays and returning a result per step. Run as an MCP server (hwatu mcp), the same operations are exposed to an agent client as tools. Login walls return login_required; irreversible actions such as pay, place order, send, or delete return a stop with reason: "irreversible_action" until the agent retries with --confirm after the user confirms in the current session; CAPTCHAs are worked by the agent with challenge, shot, snapshot, click --trusted, and type, falling back to show for a human hand-off.
- A coding agent that just changed frontend styles uses
hwatu batchto open the local dev server, click the main button, assert on.statustext, and screenshot for a pixel diff without anyone watching the screen. - An agent filling a signup form on a real page calls
snapshotto get interactable refs, thenclick --refandtype --refto fill fields andexpectto poll until the save is confirmed. - When an automated flow hits a login wall,
login_requiredlets the agent stop and ask the user for the value once; the session persists so later steps keep running. - For payments or deletions, the agent receives an
irreversible_actionstop and relays it; the step runs only after user confirmation in the current session with--confirm. - Registering hwatu as an MCP server in Claude Code or Cursor so those clients can call the browser for UI verification while writing code.
- Facing a CAPTCHA or anti-bot check, the agent tries
challengeandclick --trusted, and falls back toshowso a person can clear it.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
curl -fsSL https://raw.githubusercontent.com/hongnoul/hwatu/main/scripts/install.sh | bash
- Config files
steps.json- Install notes cover
- Linux
How do you install or deploy this agent?
Linux is supported today. The installer places a single binary and checks for webkitgtk-6.0:
curl -fsSL https://raw.githubusercontent.com/hongnoul/hwatu/main/scripts/install.sh | bashOn Arch, install from the AUR; you can also build from source:
yay -S hwatu
cargo build --releaseCheck the install, then let setup detect your MCP clients. --dry-run previews changes and --undo reverts them:
hwatu doctor
hwatu setup
hwatu setup --dry-run
hwatu setup --undoFor manual MCP configuration, one entry is enough:
{ "mcpServers": { "hwatu": { "command": "hwatu", "args": ["mcp"] } } }How do you use this agent?
Open a headless window; the command prints its id:
hwatu localhost:3000Then snapshot, operate, assert, and capture:
hwatu snapshot
hwatu click --ref 3
hwatu type --ref 5 "Test User"
hwatu expect '.status' --text Saved
hwatu shot /tmp/after.png
hwatu show 1Collapse a sequence into one call; batch waits on page state instead of fixed delays and returns a result per step:
hwatu batch --stdin < steps.jsonIrreversible actions need the user's confirmation in the current session before the retry, for example with --confirm:
hwatu click --ref 7 --confirmThe full command set is in docs/agents.md in the repository.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
What are this agent's strengths and limitations?
batchfolds a whole verification sequence into one call and waits on page state instead of sleeping, cutting round-trips and flaky waits.- The human boundary is explicit and structured:
login_required,reason: "irreversible_action", andchallengeeach tell the agent exactly where to stop and who must confirm. - Both a CLI and an MCP server are first-class, and
hwatu setupdetects Claude Code, Cursor, or Jcode and writes the config with--dry-runpreview and--undorollback. - Headless by default with visibility only through
show, so an agent can hand a window to a person once mid-run and keep going. - Single-binary install on top of WebKitGTK 6.0, with an AUR package and an official install script.
- Linux only for now; macOS and Windows are documented as targets, not supported platforms.
- Requires the system
webkitgtk-6.0; the installer only checks for it, so non-Arch distributions require solving that dependency yourself. - CAPTCHAs are not solved for you —
challengeandclick --trustedare primitives, and a human hand-off may still be the outcome. - No reproducible benchmark data is included, so speed claims such as 35 ms cannot be independently checked from the repository.
- There is no skill library or file format: you write your own
SKILL.mdin your agent harness to callhwatucommands.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| hwatu This agent | 55 · Major gaps | CLIFree | ★ 121 | 2d ago | Rust | Codex · Claude Code |
| Uni-CLI | 83 · Good | CLIFree | ★ 229 | 8d ago | TypeScript | ChatGPT · Codex · Claude Code |
| Chrome DevTools MCP | 77 · Some gaps | MCP serverFree | ★ 59k | today | TypeScript | Codex · Claude Code |
| wmux Agent Workspace | 75 · Good | Desktop app | ★ 463 | today | TypeScript | Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
SECURITY.md documents the threat model, default eval risk, --no-eval/--ephemeral-profile, loopback token file permissions, and least-privilege intent; however eval is enabled by default, there is no sandbox, and rollback is limited to setup --undo, so points are deducted.
Source code gives specific failure messages such as restarting the daemon, but README uses hana and hwatu inconsistently, macOS/Windows support contradicts the stated targets, and dependency installation relies on webkitgtk-6.0 without a complete manifest, so points are deducted.
README clearly targets agents and human hand-off scenarios; however there is no skill library or trigger specification, and non-Linux platforms are unsupported, so environment fit is narrow.
README structure, install notes, examples, license, and known limitations are clear; however there is no CHANGELOG, hana/hwatu naming is inconsistent, and maintenance responsibility is not explicit, so points are deducted.
Structured output, batch mode, and JSON support suit agent use; however no executable benchmark or performance evidence is provided, and claims such as 35 ms are only asserted, so points are deducted.
README and CI partially corroborate each other, but key performance claims lack traceability and fact/inference separation is weak, so points are deducted.
- Do not treat the unverified publisher as trusted; default eval is enabled, so confirm --no-eval or --ephemeral-profile; README has hana/hwatu naming and platform support contradictions that need verification; verify specs can execute preflight/server commands and should be reviewed; there is no sandbox, and same-user processes can drive the browser.
FAQ
Do I need an LLM API key to use hwatu?
Can I run it on macOS or Windows?
webkitgtk-6.0.What happens when an agent hits a login or a payment?
login_required for login walls, where one user-entered value persists the session, and reason: "irreversible_action" for pay, order, send, or delete, which only proceeds after the user confirms in the current session and the agent retries with --confirm.Can it get past CAPTCHAs automatically?
challenge, shot, snapshot, click --trusted, and type to work with. If that fails, challenge returns a structured block and the agent can hand off via show.Does it replace manual in-browser debugging?
show, aimed at programmatic verification and assertions for agents rather than everyday human browsing or record-and-replay debugging.Is hwatu free?
Is hwatu open source?
Is hwatu safe to use?
Is hwatu still maintained?
Who makes hwatu?
What is hwatu's official website?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.