{
  "slug": "gh-stack-add-offers-to-initialize-a-stack-bee1403f6bf5",
  "title": "gh stack add offers to initialize a stack",
  "tools": [
    "gh-stack"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-09-02T15:44:29.000Z",
  "announced_at": "2026-09-02T15:44:29.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When `gh stack add` runs interactively on a branch outside a stack, accept its offer to initialize a stack; the supplied or generated branch name becomes the first layer.",
    "examples": [
      "gh stack add [branch]"
    ],
    "gotchas": [
      "Version: v0.1.1",
      "branch (optional positional argument): Branch name; when initializing from a non-stack branch, the supplied or auto-generated name becomes the first layer.",
      "Prerequisite: The documented initialization offer is interactive.",
      "Prerequisite: Install the extension with `gh extension install github/gh-stack`. Requires GitHub CLI 2.0+ and Git 2.36+; authenticate with `gh auth login` if needed."
    ]
  },
  "why_it_matters": "Add the current branch as the first layer when working from a branch that is not part of a stack.",
  "before": "Previously, running `add` from a branch outside a stack failed.",
  "sources": [
    "https://github.com/github/gh-stack/releases/tag/v0.1.1",
    "https://github.com/github/gh-stack",
    "https://github.com/github/docs/blob/main/content/pull-requests/reference/stacked-prs-cli-commands.md"
  ],
  "rank": 0.94031,
  "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-9e98190cdbf09119-2:gate",
    "evidence_hash": "e3d3c6aa60cd3379b520ba512c48ac99b28604843da8ff4072324dc39337ff1d"
  },
  "review": {
    "draft_hash": "8b9dd1ccf2816ae7c666a5c84577d76e510df90186d5c3458b7c69aba5897fd5",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "augsep-20261008:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.94 >= 0.9; 2 needed) and Jev gave 0.68 (>= 0.6 needed)."
  }
}
