# seachicken/gh-poi

✨ Safely clean up your local branches

Repository: https://github.com/seachicken/gh-poi
Canonical: https://ross.abutalabs.com/products/gh-poi
Homepage: https://dev.to/seachicken/safely-clean-up-your-local-branches-9i3
Language: Go
License: MIT
License Family: permissive
Topics: cli, gh-extension
Last push: 2026-08-30T05:39:03+00:00

## Health v2 (maintenance only)
Score: 100/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 100, longevity 100
- inputs: {"age_days": 1798, "days_push": 3, "days_rel": 3, "gap_med": 14, "n_releases_24m": 22}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1010, forks 40 (observed 2026-09-01T02:14:06.623048+00:00)

## What it is
gh poi is a GitHub CLI extension that safely deletes local git branches whose pull requests have been merged, including squash-merged branches that lack merge history. It identifies branches via the GitHub API and protects active or locked branches from accidental deletion.

## Use cases
- clean up local branches after squash merging pull requests
- delete merged branches without force-deleting active work
- find which local branches are safe to remove
- protect important branches from accidental deletion with locks
- preview branch deletions before running them
- clean up branches across forks with a deep scan

## When to choose
- you squash-merge PRs and git branch -d fails due to missing merge history
- you want a safe, automated alternative to git branch -D
- you already use the GitHub CLI and want a subcommand-based workflow
- you work with forks and need thorough branch-to-PR matching

## When to avoid
- you don't use GitHub or GitHub pull requests for your workflow
- you need to clean up branches in repos hosted outside GitHub
- you prefer a general-purpose git branch cleaner without PR awareness

## Facets
- artifact type: cli-tool
- maturity: active
- function: developer-tools, cli, version-control
- domain: developer-tools, version-control
- platform: cli, cross-platform
- tags: gh-extension, git-branch-cleanup, github-cli, branch-management, command-line

## Member repositories
- seachicken/gh-poi (main) score 100

## Provenance
- Observed fields: from GitHub, fetched 2026-09-01T02:14:06.623048+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:13:39.913233+00:00, confidence not recorded.
  - readme: https://github.com/seachicken/gh-poi (fetched 2026-09-01T02:14:06.623048+00:00, sha 83a1fb4e051b)
  - homepage: https://dev.to/seachicken/safely-clean-up-your-local-branches-9i3 (fetched 2026-08-29T13:13:09.549494+00:00, sha 01b95e81e369)
  - site_page: https://dev.to/about (fetched 2026-08-29T13:13:09.558536+00:00, sha 51889b12ec57)
- Data as of 2026-08-30T08:39:29.467469+00:00.
