
Diagnoses and works around gh pr merge failing on a 'main already used by worktree' error
- Open source
- 5 GitHub stars
- Developer tools


Diagnoses and works around gh pr merge failing on a 'main already used by worktree' error

Lands an open GitHub PR: waits for CI, fixes blockers, squash-merges, cleans up

Diagnoses CI failures caused by GitHub's merge-ref checkout on pull requests

Holds a pull request from merging by stopping its agent, disarming auto-merge, then

Finish someone else's draft PR on a designated branch without losing its commits

Guides an agent through resolving merge conflicts by intent, then verifying and pushing

Cleans merged branches, gone remote refs and finished worktrees after PRs land

Pushes committed branch work and opens or updates a GitHub pull request

Turns a finished branch or a fix left on main into a guarded, linked pull request

Stops gh pr create from opening PRs against the wrong branch in multi-worktree setups

Guides an agent through resolving a conflicted PR that stops producing CI runs

Checks a branch for stale-base changes that would silently undo newer main work

Diagnoses failing GitHub Actions PR checks and fixes them only after you approve a plan

Resolves git merge conflicts non-interactively and checks the build and tests pass

Guides an agent through writing PR titles, bodies and gh CLI pull request steps

Finds merged and stale git branches, then deletes them only after your confirmation
The closest alternatives to Gh PR merge unstable state needs auto and watch branch deletes are Gh PR merge worktree checkout trap, Merge PR, Gha PR merge ref shows upstream changes, Auto merge rearms while agent live kill then disarm verify and Gh PR pickup designated branch supersede.
Yes. Gh PR merge worktree checkout trap, Merge PR, Gha PR merge ref shows upstream changes have a free or open-source option.