Web QA via the hai-agents CLI
When the user asks you to QA a web UI / review a deployed page / check a URL for issues:
1. Pick the right subcommand
qa-cli review— full agent loop (~30–90s). Returns a structuredReviewResultJSON withverdict,summary,findings(each withseverity,area,issue,suggestion), andsteps_taken. Use this for any real review.qa-cli visual— one-shot visual question, returns a short free-text answer. Use for quick "what color is X" / "does the layout look broken" sanity checks.
2. Invoke
uv run qa-cli review --url <url> --instruction "<what to focus on>"
uv run qa-cli visual --url <url> --question "<single question>"
The CLI logs progress to stderr; the result (JSON for review, text for visual) goes to stdout. Pipe to jq if you want to filter.
3. Surface the result
For review:
- Lead with the
verdictand the headlinesummary. - List
findingsordered as returned (already high-severity-first). Show each as[severity] area — issueand include the suggestion when actionable. - If
verdict == "fail", make it clear what blocked completion.
For visual: just relay the answer.