{
  "slug": "gh-stack-modify-inserts-empty-branches-f8ea69991bea",
  "title": "gh stack modify inserts empty branches",
  "tools": [
    "gh-stack"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-05-26T21:46:46.000Z",
  "announced_at": "2026-05-26T21:46:46.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When restructuring a stack, run `gh stack modify`; in its TUI press `i` to stage an empty branch below the cursor or `I` to stage one above, then press `Ctrl+S` to apply the staged changes. [v0.0.5 README](https://github.com/github/gh-stack/blob/v0.0.5/README.md#L388-L424)",
    "examples": [
      "gh stack modify"
    ],
    "gotchas": [
      "Version: v0.0.5",
      "i: Stage insertion of an empty branch below the cursor.",
      "I: Stage insertion of an empty branch above the cursor.",
      "Ctrl+S (required): Apply all staged changes.",
      "Prerequisite: Requires an active local stack, a clean working tree, no rebase in progress, no stack PR queued for merge, and linear commit history.",
      "Prerequisite: Requires GitHub CLI (`gh`) v2.0+ and installation of the extension with `gh extension install github/gh-stack`."
    ]
  },
  "why_it_matters": "Insert an empty branch above or below a branch while restructuring a stack.",
  "sources": [
    "https://github.com/github/gh-stack/releases/tag/v0.0.5",
    "https://github.com/github/gh-stack/blob/v0.0.5/README.md#L388-L438",
    "https://github.com/github/gh-stack/blob/v0.0.5/README.md#L403-L424",
    "https://github.com/github/gh-stack/blob/v0.0.5/README.md#L411-L425",
    "https://github.com/github/gh-stack/blob/v0.0.5/README.md#L428-L434",
    "https://github.com/github/gh-stack/blob/v0.0.5/README.md#L199-L203"
  ],
  "rank": 0.94017,
  "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": "recover-20261008",
    "verdict_id": "recover-20261008:recover-20261008-ca81d1d4e7c7b00d-0:gate",
    "evidence_hash": "f3aac8b8246eace473ada8d25952fb9a26b57176dd289cc6a9b2d88b39d3e383"
  },
  "review": {
    "draft_hash": "c5ce336e5daf1bb38266f27988cd79a8b7cc338a5c3109d99a05cc884c851f92",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "recover-20261008:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.94 >= 0.9; 2 needed) and Jev gave 0.67 (>= 0.6 needed)."
  }
}
