{
  "slug": "agent-browser-screenshot-if-changed-skips-unchanged-captures-1eb41d6909a9",
  "title": "agent-browser screenshot --if-changed skips unchanged captures",
  "tools": [
    "agent-browser"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-09-16T13:24:39.000Z",
  "announced_at": "2026-09-16T13:24:39.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When checking whether a page changed between captures, run `agent-browser screenshot --if-changed`; add `--threshold <0-1>` to treat small pixel changes as unchanged.",
    "examples": [
      "agent-browser screenshot --if-changed",
      "agent-browser screenshot --threshold <0-1>"
    ],
    "gotchas": [
      "Version: v0.38.0",
      "--if-changed: Skip unchanged captures. Conditional history is isolated by tab and capture scope.",
      "--threshold <0-1>: Maximum changed-pixel ratio treated as unchanged; implies `--if-changed`.",
      "Screenshot history is scoped to each tab and capture mode.",
      "Unchanged captures omit the image path."
    ]
  },
  "why_it_matters": "When checking whether a page changed between captures, take a conditional screenshot and tolerate small pixel differences if needed.",
  "sources": [
    "https://github.com/vercel-labs/agent-browser/releases/tag/v0.38.0",
    "https://github.com/vercel-labs/agent-browser/blob/v0.38.0/skill-data/core/references/commands.md"
  ],
  "rank": 0.9604,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-d56cb04dda1b975a-0:gate",
    "evidence_hash": "a78eeaf06b04ec4434fed43f842b5a8fc3097ef2d667ca2c525fc6bf9efac0cb"
  },
  "review": {
    "draft_hash": "60ac6bc2fd73857bb508306db58e7c4da081868cabe93bf4a34b9a6de4ec3a3f",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.77 (>= 0.6 needed)."
  }
}
