compare

compare is a command for Claude Code from aegntic/cldcde. It costs 0 tokens per session (276 once invoked), scanned A, original, MIT.

A screenshot comparison command for checking a website or app against saved reference images. It highlights changed areas and reports how many pixels differ.

In plain words
What is it for?
Use it to compare current screenshots with baselines, review differences by page and screen size, and save a report. It asks before replacing baselines for intentional changes.
Why use it?
It helps find visual changes that ordinary code tests may miss, such as shifted layouts, changed colors, or broken styling. It also separates small rendering differences from larger failures.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the visual-regression plugin — 2 commands shipped together

Good fit Use it to compare current screenshots with baselines, review differences by page and screen size, and save a report. It asks before replacing baselines for intentional changes.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/aegntic/cldcde/compare
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/aegntic/cldcde

Made for: Claude Code.

Or install visual-regression, the plugin that ships this one along with the rest of its 2 commands.

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 compare

README.md
[![agentmods](https://agentmods.dev/badge/commands/aegntic/cldcde/compare/github.svg)](https://agentmods.dev/commands/aegntic/cldcde/compare)
Your own site
<a href="https://agentmods.dev/commands/aegntic/cldcde/compare"><img src="https://agentmods.dev/badge/commands/aegntic/cldcde/compare/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 compare

Your own site · 80×15
<a href="https://agentmods.dev/commands/aegntic/cldcde/compare"><img src="https://agentmods.dev/badge/commands/aegntic/cldcde/compare.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 276 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.00000 $0.00276
Opus 5.5 $0.00000 $0.00110
Sonnet 5.5 $0.00000 $0.00055
Haiku 4.5 $0.00000 $0.00028

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

Security

Grade A, and why

compare 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 2d ago.

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/visual-regression/commands/compare.md · 28 lines

What it actually says

/compare - Compare Visual Screenshots

Compare current screenshots against baselines to detect visual regressions.

Steps

  1. Verify that baseline screenshots exist in the baselines directory
  2. Capture current screenshots using the same configuration as baselines
  3. Match current screenshots to their corresponding baselines by name
  4. Perform pixel-by-pixel comparison using a diff threshold (default 0.1%)
  5. Generate diff images highlighting changed regions in red
  6. Calculate the percentage of pixels that differ for each comparison
  7. Classify results: pass (below threshold), warn (near threshold), fail (above threshold)
  8. Present a summary table: page, viewport, diff percentage, status
  9. For failures, display the baseline, current, and diff images side by side
  10. Ask the user whether to update baselines for intentional changes
  11. Save comparison report with all results and diff images

Rules

  • Use an anti-aliasing tolerance to avoid false positives from font rendering
  • Default diff threshold is 0.1%; allow user to configure per-component
  • Always generate diff images for failed comparisons
  • Do not auto-update baselines without user confirmation
  • Exclude known dynamic areas from comparison using ignore regions
  • Report the total number of new pages without baselines
  • Clean up temporary screenshot files after comparison
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. 2d ago First seen · 28 lines · 0 tokens per session scan A ef1fa85d7709

Subscribe to this mod's changes

compare is a command published in the GitHub repository aegntic/cldcde (11 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 276 tokens. 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-11-05.

Related

compare compared with commands from other repositories

compare next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
compareaegntic/cldcdeCommand112d agoMITA0Claude Code
scriptwriter-draftcambridgetcg/agenttoolCommand0yesterdayApache-2.0A35Claude Code
scriptwriter-opencambridgetcg/agenttoolCommand0yesterdayApache-2.0A47Claude Code
scriptwriter-paircambridgetcg/agenttoolCommand0yesterdayApache-2.0A38Claude Code
scriptwriter-statuscambridgetcg/agenttoolCommand0yesterdayApache-2.0A52Claude Code
scriptwriter-drawcambridgetcg/agenttoolCommand0yesterdayApache-2.0A43Claude Code
scriptwriter-initcambridgetcg/agenttoolCommand0yesterdayApache-2.0A34Claude Code