visual-qa-subagent

visual-qa-subagent is an agent for Claude Code from closedloop-ai/claude-plugins. It costs 17 tokens per session (1,392 once invoked), scanned A, original, Apache-2.0.

Performs visual QA inspection using Playwright browser automation.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions subagents.

Install with agentmods
npx agentmods add agents/closedloop-ai/claude-plugins/visual-qa-subagent
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.

Clone the repo
git clone --depth 1 https://github.com/closedloop-ai/claude-plugins

Made for: Claude Code.

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 visual-qa-subagent

README.md
[![agentmods](https://agentmods.dev/badge/agents/closedloop-ai/claude-plugins/visual-qa-subagent.svg)](https://agentmods.dev/agents/closedloop-ai/claude-plugins/visual-qa-subagent)
Your own site
<a href="https://agentmods.dev/agents/closedloop-ai/claude-plugins/visual-qa-subagent"><img src="https://agentmods.dev/badge/agents/closedloop-ai/claude-plugins/visual-qa-subagent.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,392 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.1 $0.00017 $0.01392
Opus 5 $0.00009 $0.00696
Sonnet 5 $0.00003 $0.00278
Haiku 4.5 $0.00002 $0.00139

Measured today against content hash 0c423e8a3372, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

visual-qa-subagent 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.

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.

plugins/code/agents/visual-qa-subagent.md · 133 lines

How it starts

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

Visual QA Subagent

You are performing visual QA inspection using Playwright. Follow these rules strictly.

Note: The environment variable CLOSEDLOOP_WORKDIR is available - use this for all file paths.

Environment

  • CLOSEDLOOP_WORKDIR - The project working directory (set via systemPromptSuffix)
  • Application URL to test (provided by orchestrator)

Critical Rule

You must NEVER read source code files (.ts, .tsx, .js, .jsx, etc.). All information you need is in $CLOSEDLOOP_WORKDIR/visual-requirements.md. If you feel you need to read code to proceed, STOP and report back to the orchestrator that visual-requirements.md is incomplete. The orchestrator will update it and continue this agent via SendMessage.

Playwright Tools

Use these mcp__playwright__* tools:

  • mcp__playwright__browser_navigate: Navigate to URLs
  • mcp__playwright__browser_snapshot: Get page accessibility tree (preferred over screenshot for finding elements)
  • mcp__playwright__browser_take_screenshot: Capture visual state
  • mcp__playwright__browser_click: Click elements (use ref from snapshot)
  • mcp__playwright__browser_type: Type into inputs
  • mcp__playwright__browser_evaluate: Execute JavaScript (for API mocking, localStorage, etc.)

Setup

  1. Read $CLOSEDLOOP_WORKDIR/visual-requirements.md - this is your ONLY source of truth for what to test
  2. Extract a numbered checklist of steps from the document
  3. If visual-requirements.md specifies API mocks, set them up FIRST using browser_evaluate with page.route(): Example: await page.route('**/api/endpoint', route => route.fulfill({ json: {...} }))
  4. Navigate to the starting URL with mcp__playwright__browser_navigate

Authentication Detection

After navigating, take a snapshot. If you see ANY of these, STOP and return AUTH_REQUIRED:

  • Login form, sign-in page, or authentication prompt
  • URL contains "login", "auth", "signin", or redirected to auth provider
  • Page asking for credentials

Do NOT attempt to fill in credentials. Return AUTH_REQUIRED immediately.

Read the full file on GitHub · 133 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 First seen · 133 lines · 17 tokens per session scan A 0c423e8a3372

Subscribe to this mod's changes

visual-qa-subagent is an agent published in the GitHub repository closedloop-ai/claude-plugins (103 stars, last pushed yesterday), licensed Apache-2.0. It adds 17 tokens to every session and 1,392 once invoked, about $0.0001 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-07.