{
  "slug": "agent-browser-batch-command-executes-commands-from-stdin-3d9068e41a8b",
  "title": "agent-browser batch command executes commands from stdin",
  "tools": [
    "agent-browser"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-03-17T19:30:41.000Z",
  "announced_at": "2026-03-17T19:30:41.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When running multiple browser commands in one invocation, pass a JSON array of string arrays to `batch`. Add `--bail` to stop at the first error, and `--json` for structured output.",
    "examples": [
      "echo '[ [\"open\", \"https://example.com\"], [\"snapshot\", \"-i\"] ]' | agent-browser batch --bail",
      "echo '[ [\"open\", \"https://example.com\"], [\"snapshot\", \"-i\"] ]' | agent-browser batch --json"
    ],
    "gotchas": [
      "Version: v0.21.0",
      "stdin JSON array (required): An array of string arrays; each inner array is a command and its arguments.",
      "--bail: Stop after the first command error.",
      "--json: Return results as JSON.",
      "Prerequisite: Install agent-browser and download Chrome with `agent-browser install` before first use.",
      "Input is a JSON array of string arrays.",
      "Results are returned sequentially."
    ]
  },
  "why_it_matters": "Run a sequence of browser commands in one agent-browser invocation and stop at the first failure when needed.",
  "sources": [
    "https://github.com/vercel-labs/agent-browser/releases/tag/v0.21.0",
    "https://github.com/vercel-labs/agent-browser/blob/v0.21.0/README.md",
    "https://github.com/vercel-labs/agent-browser/blob/v0.21.0/cli/src/main.rs"
  ],
  "rank": 0.98054,
  "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-9718ee64f4a61238-0:gate",
    "evidence_hash": "db98db42ed6baf1f73a22779060a3495eaf219629a6bf699e310374e7ce276f2"
  },
  "review": {
    "draft_hash": "aab693446807a478bc7c2ba4004820531dbdf54dffab892c3443d168fd378376",
    "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.98 >= 0.9; 2 needed) and Jev gave 0.81 (>= 0.6 needed)."
  }
}
