{
  "slug": "gh-pr-checkout-adds-worktree-path-bbf09cb8e380",
  "title": "gh pr checkout adds --worktree PATH",
  "tools": [
    "gh"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-08-20T22:15:58.000Z",
  "announced_at": "2026-08-20T22:15:58.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When checking out a pull request into a separate Git worktree, use `gh pr checkout` with `--worktree <path>`.",
    "examples": [
      "gh pr checkout 12 --worktree ../wt-feature",
      "gh pr checkout <number|url|branch> --worktree <path>"
    ],
    "gotchas": [
      "Version: v2.98.0",
      "<number|url|branch>: Pull request number, URL, or branch to check out. If omitted, the manual shows interactive selection.",
      "--worktree <path> (required): Check out the pull request into a worktree at the given path.",
      "Prerequisite: Use GitHub CLI v2.98.0 or later; the flag was introduced in v2.98.0.",
      "Prerequisite: Authenticate with `gh auth login` or provide `GITHUB_TOKEN`."
    ]
  },
  "why_it_matters": "Check out a pull request into a separate Git worktree while working on a repository.",
  "sources": [
    "https://github.com/cli/cli/releases/tag/v2.98.0",
    "https://cli.github.com/manual/gh_pr_checkout",
    "https://cli.github.com/manual/index"
  ],
  "rank": 0.98037,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "augsep-20261008",
    "verdict_id": "augsep-20261008:augsep-20261008-5756cb902e44a452-1:gate",
    "evidence_hash": "3eacf914e4f5f0c6364f46259053f0d94c724c4fe030acb0f0ea7ccca40d74b1"
  },
  "review": {
    "draft_hash": "7fd840cde0165e610f12ea7a5abdcf2cb1be33495120d0b12990ab3634d461d1",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "augsep-20261008:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.98 >= 0.9; 2 needed) and Jev gave 0.78 (>= 0.6 needed)."
  }
}
