{
  "slug": "functions-init-scaffolds-a-stagehand-project-206e956b2490",
  "title": "functions init scaffolds a Stagehand project",
  "tools": [
    "browse"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-09-30T00:59:34.653Z",
  "announced_at": "2026-09-30T00:59:34.653Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "To scaffold a Stagehand project, run `browse functions init <project-name>`; the release note says the initializer installs `@browserbasehq/stagehand`, installs its Zod version, and writes a Stagehand starter function.",
    "examples": [
      "browse functions init <project-name>"
    ],
    "gotchas": [
      "Version: 0.11.1",
      "<project-name>: Project name; the current official skill shows it as the command argument but does not document a default.",
      "Prerequisite: Install the `browse` CLI; the official skill specifies Node.js 18+ and pnpm or npm.",
      "Docs conflict: The current official Functions skill documents `browse functions init <name>` and shows a Playwright `playwright-core` starter. The release note for 0.11.1 says the initializer installs Stagehand and writes a Stagehand starter. The current documentation may describe a different version; it does not establish 0.11.1 behavior."
    ]
  },
  "why_it_matters": "Initialize a Stagehand project from the CLI.",
  "sources": [
    "https://github.com/browserbase/stagehand/blob/main/packages/cli/CHANGELOG.md#0111",
    "https://github.com/browserbase/skills/blob/main/skills/functions/SKILL.md"
  ],
  "rank": 0.96038,
  "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": "browse-20261014",
    "verdict_id": "browse-20261014:browse-20261014-a4c38e214adbc044-0:gate",
    "evidence_hash": "056c3b9ce9cc187d050bd87ce050797d1a49e527898a5dd6b66e97956fd30a0b"
  },
  "review": {
    "draft_hash": "9379910b34586950d513c269e53a4d9440ce6771abff46a6b703ef266e79cfa9",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "browse-20261014:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.75 (>= 0.6 needed)."
  }
}
