Skip to content
hongnoulPublic

About

Headless verification browser for AI coding agents: 35 ms one-call checks, pixel diffs, live human hand-off

Topics

Resources

Contributing

Security policy

Stars

121 stars

Watchers

0 watching

Forks

Repository files navigation

hwatu

Latest Release License: MIT CI

A headless browser that runs on the user's machine and is driven by agents through a CLI and MCP. Target platforms: Linux, macOS, Windows.

Install

Linux is supported today. macOS and Windows are targets and are not yet supported.

curl -fsSL https://raw.githubusercontent.com/hongnoul/hwatu/main/scripts/install.sh | bash

The installer places one binary and checks for webkitgtk-6.0. On Arch: yay -S hwatu. From source: cargo build --release.

hwatu doctor            # check the install
hwatu setup             # detect Claude Code, Cursor, Jcode, or MCP clients

hwatu setup --dry-run previews changes and --undo reverts them. Manual MCP configuration is one entry:

{ "mcpServers": { "hwatu": { "command": "hwatu", "args": ["mcp"] } } }

Quick start

hwatu localhost:3000                # open a headless window, prints its id
hwatu snapshot                      # page state as data, with interactable refs
hwatu click --ref 3
hwatu type --ref 5 "Test User"
hwatu expect '.status' --text Saved # assertion with polling
hwatu shot /tmp/after.png
hwatu show 1                        # make window 1 visible to a person

A sequence runs in one call. batch waits on page state instead of fixed delays and returns a result per step:

hwatu batch --stdin < steps.json

The full command set is in docs/agents.md.

Skills

Skills live in the agent harness. A skill is a SKILL.md in the harness's skills folder that calls hwatu commands. This project has no skill library, registry, or file format. See docs/agents.md.

Human involvement

The browser is headless and becomes visible only through show. When a person is needed, a command returns a structured stop and the agent relays it.

  • Login walls are reported as login_required. The agent asks the user and enters the value once. The session persists.
  • Irreversible actions (pay, place order, send, delete) return a stop with reason: "irreversible_action" and are not performed until the agent retries with --confirm after the user confirms in the current session.
  • CAPTCHAs and anti-bot challenges are handled by the agent with challenge, shot, snapshot, click --trusted, and type. If the challenge cannot be cleared, challenge returns a structured block and the agent can hand off through show.

Documents

License

MIT. See LICENSE.

About

Headless verification browser for AI coding agents: 35 ms one-call checks, pixel diffs, live human hand-off

Topics

Resources

Contributing

Security policy

Stars

121 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages