{
  "slug": "agent-browser-webgpu-launch-preset-60ee83f8d133",
  "title": "agent-browser --webgpu launch preset",
  "tools": [
    "agent-browser"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-07-13T20:26:34.000Z",
  "announced_at": "2026-07-13T20:26:34.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a browser task needs WebGPU rendering, launch it with `--webgpu` and wait for the app to render before capturing. Run `agent-browser doctor --webgpu` to check rendering and screenshot capture; use `--headed` to probe capture on Windows or Linux.",
    "examples": [
      "agent-browser --webgpu open <https://your-webgpu-app.example.com>\nagent-browser screenshot <output.png>",
      "agent-browser doctor --webgpu",
      "agent-browser doctor --webgpu --headed"
    ],
    "gotchas": [
      "Version: v0.31.2",
      "--webgpu: Enables the WebGPU launch preset; the CLI equivalent of `AGENT_BROWSER_WEBGPU=1` or `\"webgpu\": true` in agent-browser.json.",
      "doctor --webgpu (required): Runs render and screenshot checks in a scratch session; screenshot capture is expected to fail headless on Windows and Linux.",
      "--headed: Shows the browser window; add it to the doctor command to validate capture. On displayless Linux, automatic Xvfb requires Xvfb to be installed and no `DISPLAY` set.",
      "AGENT_BROWSER_WEBGPU=1: Environment variable to enable the WebGPU launch preset.",
      "webgpu: Boolean config key in agent-browser.json; `true` enables the WebGPU launch preset. No mutually exclusive config sub-keys are documented.",
      "Prerequisite: Linux software Vulkan path requires the system Vulkan loader and Mesa ICD: `apt-get install -y libvulkan1 mesa-vulkan-drivers`.",
      "Prerequisite: Displayless headed Linux screenshot probing requires Xvfb installed; Windows screenshot probing requires a logged-in desktop session.",
      "Prerequisite: The target page must use a secure context (`https://`, `http://localhost`, or `file://`) for `navigator.gpu`.",
      "Hardware backends are supported on macOS and Windows; Linux uses software Vulkan.",
      "Automatic Xvfb applies to displayless headed sessions."
    ]
  },
  "why_it_matters": "When launching a browser session that needs WebGPU rendering, configure the session with the WebGPU preset and probe rendering.",
  "before": "Headless Chrome does not expose WebGPU by default; the page can load and screenshots can succeed while the canvas remains black.",
  "sources": [
    "https://github.com/vercel-labs/agent-browser/releases/tag/v0.31.2",
    "https://github.com/vercel-labs/agent-browser/blob/v0.31.2/skill-data/core/references/webgpu.md"
  ],
  "rank": 0.94033,
  "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-215526edaa4ae45a-0:gate",
    "evidence_hash": "32bbbcce7dceb80a43a35d6e57a4ece7eeff75444e420115d4d6222df3509926"
  },
  "review": {
    "draft_hash": "dd05953378984a3ca142c90c478f29b576ce3865f64bfa102b4996570f107b06",
    "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.94 >= 0.9; 2 needed) and Jev gave 0.77 (>= 0.6 needed)."
  }
}
