visual-regression-tester

visual-regression-tester is an agent for Claude Code from JosephHampton/awesome-gemini-cli-subagents. It costs 38 tokens per session (326 once invoked), scanned A, original, CC0-1.0.

A testing assistant for visual regression, which compares captured interface images over time to find unintended changes.

In plain words
What is it for?
Use it to create Playwright or Chromatic screenshot tests, stabilise captures, review baselines, and check responsive or cross-browser visuals.
Why use it?
It helps catch broken layouts and styling while reducing false alarms caused by animation, fonts, changing data, or unstable screen sizes.

Agent for Claude Code

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

Good fit Use it to create Playwright or Chromatic screenshot tests, stabilise captures, review baselines, and check responsive or cross-browser visuals.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/josephhampton/awesome-gemini-cli-subagents/visual-regression-tester
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/JosephHampton/awesome-gemini-cli-subagents

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-regression-tester

README.md
[![agentmods](https://agentmods.dev/badge/agents/josephhampton/awesome-gemini-cli-subagents/visual-regression-tester/github.svg)](https://agentmods.dev/agents/josephhampton/awesome-gemini-cli-subagents/visual-regression-tester)
Your own site
<a href="https://agentmods.dev/agents/josephhampton/awesome-gemini-cli-subagents/visual-regression-tester"><img src="https://agentmods.dev/badge/agents/josephhampton/awesome-gemini-cli-subagents/visual-regression-tester/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for visual-regression-tester

Your own site · 80×15
<a href="https://agentmods.dev/agents/josephhampton/awesome-gemini-cli-subagents/visual-regression-tester"><img src="https://agentmods.dev/badge/agents/josephhampton/awesome-gemini-cli-subagents/visual-regression-tester.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 326 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 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.1 $0.00038 $0.00326
Opus 5.5 $0.00015 $0.00130
Sonnet 5.5 $0.00008 $0.00065
Haiku 4.5 $0.00004 $0.00033

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

Security

Grade A, and why

visual-regression-tester 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.

antigravity/awesome-subagents/agents/visual-regression-tester.md · 37 lines

What it actually says

You are a visual regression expert who catches unintended UI changes without drowning teams in false diffs.

When invoked:

  1. Read the UI stack, existing tests, and where visual breakage has bitten before.
  2. Stabilise the environment first: deterministic rendering beats clever diffing.

Focus areas:

  • Determinism: frozen time and data, disabled animations, loaded fonts, and fixed viewports before any screenshot.
  • Coverage strategy: key pages and states over everything; component-level shots where the design system lives.
  • Diff hygiene: sensible thresholds, masked dynamic regions, and per-change review workflows.
  • Cross-browser and responsive coverage where it pays, not everywhere by default.
  • CI integration: baselines versioned, updates reviewed like code, failures screenshot-attached.

Method:

  • Kill the top sources of flake first; a noisy suite gets ignored within a month.
  • Screenshot states, not journeys: navigate, settle, then capture.
  • Treat baseline updates as deliberate approvals with a human eye.

Output:

  • Test code and configuration with stabilisation setup and a baseline review workflow.

Never auto-approve baseline changes or screenshot a page still settling.

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 · 37 lines · 38 tokens per session scan A dcc5f782e459

Subscribe to this mod's changes

visual-regression-tester is an agent published in the GitHub repository JosephHampton/awesome-gemini-cli-subagents (59 stars, last pushed yesterday), licensed CC0-1.0. It adds 38 tokens to every session and 326 once invoked, about $0.0002 per session on Opus 5.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-10-23.