ui-harness-cli

ui-harness-cli is a skill for Claude Code, Codex from sabbour/agentweaver. It costs 43 tokens per session (1,949 once invoked), scanned A, original, MIT.

A command-line browser-testing harness that uses Playwright to run a persona-based flow against an Agentweaver deployment. Playwright is a tool for controlling and inspecting web browsers.

In plain words
What is it for?
Running end-to-end UI checks for a specific user persona and collecting evidence from the browser.
Why use it?
It provides repeatable browser evidence for checking whether a deployed user flow works and for investigating UI problems.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/sabbour/agentweaver/ui-harness
Any agent
npx skills add sabbour/agentweaver --skill ui-harness
Clone the repo
git clone --depth 1 https://github.com/sabbour/agentweaver

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ui-harness-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/sabbour/agentweaver/ui-harness.svg)](https://agentmods.dev/skills/sabbour/agentweaver/ui-harness)
Your own site
<a href="https://agentmods.dev/skills/sabbour/agentweaver/ui-harness"><img src="https://agentmods.dev/badge/skills/sabbour/agentweaver/ui-harness.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,949 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00043 $0.01949
Opus 5 $0.00022 $0.00975
Sonnet 5 $0.00009 $0.00390
Haiku 4.5 $0.00004 $0.00195

Measured today against content hash 911630ff0046, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ui-harness-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

The scan reads SKILL.md. This mod also ships 25 executable files (agent-driver-ui/session-worker.mjs, agent-driver-ui/tools.mjs, lib/auth.mjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

scripts/ui-harness/SKILL.md · 169 lines

How it starts

The opening of the file, as written. The whole thing — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.

UI harness CLI contract

Use this harness to capture deterministic browser evidence for a persona against an Agentweaver deployment. It is a driver, not a UX judge: finish emits driver P0 facts and normalized evidence for scripts/harness-judge/; do not call subjective UX quality verified solely from its output.

Prerequisites

From the repository root, install the harness dependencies and run its fixture tests:

node scripts/ci/shared-deps.mjs ensure --project scripts/ui-harness
npm --prefix scripts/ui-harness test

Targets are host-agnostic. Require an absolute HTTPS URL except for loopback HTTP, keep normal TLS validation enabled, and reject URL credentials/fragments. Automated browser requests and navigation stay on the configured app origin; only the explicit headful login flow may visit configured identity-provider origins.

Authentication

Agentweaver staging uses Microsoft Entra Conditional Access, which blocks plain Chromium (and device-code flow). Authentication must use the managed Edge Default profile on Windows (enrolled device).

Option A — Edge is not currently running (preferred)

Close all Edge windows first (save any open work — they will be lost), then:

node scripts/ui-harness/login-edge-default.mjs --base-url https://<host>.staging.<domain>

This launches the real Edge Default profile (%LOCALAPPDATA%\Microsoft\Edge\User Data). Entra SSO often completes automatically. If the sign-in page appears, complete it in the Edge window, then press Resume in the Playwright Inspector.

Option B — Edge is already running (CDP attach)

Relaunch Edge with remote debugging (requires closing the current Edge first):

Start-Process msedge.exe "--remote-debugging-port=9222 --user-data-dir=`"$env:LOCALAPPDATA\Microsoft\Edge\User Data`" --profile-directory=Default --no-first-run https://<host>.staging.<domain>"

Then connect and capture:

node scripts/ui-harness/login-edge-default.mjs --base-url https://<host>.staging.<domain> --cdp

Read the full file on GitHub · 169 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +2 lines 911630ff0046
  2. yesterday First seen · 167 lines · 43 tokens per session scan A f1d19393a2cc

Subscribe to this mod's changes

ui-harness-cli is a skill published in the GitHub repository sabbour/agentweaver (5 stars, last pushed today), licensed MIT. It adds 43 tokens to every session and 1,949 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

webapp-testing

Start/reuse a local app, wait for readiness, inspect rendered state/console/network, act from observed selectors, and verify with evidence.

Hmbown/CodeWhale · 32 tokens

tutti-record-agent-session-replay

From a Tutti checkout, run, audit, freshly replay, publish, or diagnose Session Replay cassettes that are driven by case-repository scenario scripts (CDP), not by interactive UI recording. Use for real-Provider capture while a scenario.mjs executes, cassette transport or semantic-state mismatches, fresh replay…

tutti-os/tutti · 127 tokens

qa

Browser-based QA verification. Launches a real browser, navigates the app, clicks buttons, fills forms, and tests user flows. Works as a standalone skill or as a phase end condition in campaigns. Requires Playwright (optional dependency, graceful skip if not installed).

SethGammon/Citadel · 56 tokens

playwright-visual-testing

Add, repair, or review Playwright visual regression tests for browser-facing .NET apps, including screenshot baselines, Pixelmatch thresholds, deterministic rendering, and GitHub Actions artifacts. USE FOR: toHaveScreenshot, page.screenshot visual checks, Pixelmatch/pngjs comparison scripts, visual baseline updates…

managedcode/dotnet-skills · 101 tokens

Ark Dashboard and UI Testing

Test the Ark Dashboard and UI with Playwright and create PRs with screenshots. Use this skill when testing dashboard UI, taking screenshots for PRs, or validating dashboard changes.

mckinsey/agents-at-scale-ark · 41 tokens

chrome-automation

Chrome 浏览器自动化操作。当用户需要自动化浏览器操作、网页测试、数据抓取或 UI 自动化时使用此技能。.

aAAaqwq/AGI-Super-Team · 34 tokens