{
  "slug": "glab-repo-adds-command-to-prune-merged-local-branches-5aa8263e5520",
  "title": "glab repo adds command to prune merged local branches",
  "tools": [
    "glab"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-06-05T19:55:18.213Z",
  "announced_at": "2026-06-05T19:55:18.213Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When you need to remove merged local branches, run `glab repo prune`; it checks merge requests and prompts before deleting eligible branches. Use `--dry-run` to preview first.",
    "examples": [
      "glab repo prune --dry-run",
      "glab repo prune",
      "glab repo prune --yes"
    ],
    "gotchas": [
      "Version: v1.102.0",
      "--dry-run: Preview branches without deleting them.",
      "-e, --exclude <branch-or-glob>: Exclude branches by name or glob; comma-separated or repeatable.",
      "--merged: Use `git branch --merged` instead of querying GitLab; detects fast-forward merges only.",
      "-y, --yes: Skip the confirmation prompt.",
      "Prerequisite: Run in a repository checkout. GitLab is queried by default to check merge request status for local branches."
    ]
  },
  "why_it_matters": "Remove merged local branches while maintaining a repository checkout.",
  "sources": [
    "https://gitlab.com/gitlab-org/cli/-/releases/v1.102.0",
    "https://docs.gitlab.com/cli/repo/prune/"
  ],
  "rank": 0.97022,
  "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": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-39e5f6f140fbc2ed-2:gate",
    "evidence_hash": "29eca6d9ea8b00906045bc134f344e5315cd7fbe6dff103468df3d8571b66be1"
  },
  "review": {
    "draft_hash": "1bb254cea38fddbaeb0be0e69bbdf87b9283a99480a197ad105d9acc6e67c942",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2b-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.97 >= 0.9; 2 needed) and Jev gave 0.64 (>= 0.6 needed)."
  }
}
