Web QA via the hai-agents CLI (Hermes Agent)
When the user asks you to QA a web UI, review a deployed page, or check a URL for issues:
1. Pick the right subcommand
qa-cli review: full agent loop (about 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" or "does the layout look broken" sanity checks.
2. Invoke
The qa-cli command lives in the agents-api-demos repo and must run against that project.
uv run --directory resolves it regardless of your current working directory. Point
HAI_DEMOS at your clone, or export it once in your shell to avoid editing this file:
HAI_DEMOS="${HAI_DEMOS:-/path/to/agent-sdk-demo}" # exported HAI_DEMOS wins; else edit the fallback
uv run --directory "$HAI_DEMOS" --env-file "$HAI_DEMOS/.env" qa-cli review --url <url> --instruction "<what to focus on>"
uv run --directory "$HAI_DEMOS" --env-file "$HAI_DEMOS/.env" 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.