
Git clean worktrees
SkillFinds and removes git worktrees whose changes are already merged into main
- Open source
- 12 GitHub stars
- Developer tools


Finds and removes git worktrees whose changes are already merged into main

Create, list, switch and clean up git worktrees with env and dev-tool setup

Recovers uncommitted work when another session switches branches in your shared repo

Keeps Read, Write and Edit calls inside a git worktree instead of the base repo

Explains how dispatched Bash agents' git checkout can silently revert uncommitted edits

Keeps a verification subagent from measuring your uncommitted edits by mistake

Runs a weekly, evidence-gated sweep that classifies and tidies branches, PRs and worktrees

Checks whether an injected CLAUDE.md is a stale worktree copy before claiming it is wrong

Diagnoses Cloud Run or Docker deploys that silently ship stale code from an old checkout

Stops git worktrees from landing in nested paths when the main agent's shell cwd drifts

Runs scheduled dependency audits and applies one gated, reversible update per pass

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

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

Guides an agent through atomic commits, branching, worktrees, PRs and semver releases

Guards agent sessions with pretool blocks, periodic test runs and startup context
The closest alternatives to Git auto maintenance recurring worktree index lock are Git clean worktrees, Git worktree, Concurrent session checkout clobbers shared worktree, Harness read write base repo path in worktree stale tree and Dispatched bash agent git checkout clobbers uncommitted edit.
Yes. Git clean worktrees, Git worktree, Concurrent session checkout clobbers shared worktree have a free or open-source option.