Galvill

Branch Janitor — Development agent for Claude Code

Development community

Post-merge cleanup agent — after the human confirms a PR/branch merge, removes stale agent worktrees, deletes merged local and remote branches, and restores the main checkout to an up-to-date default.

How to install Branch Janitor

Installs to ~/.claude/agents/galvill-gvdevworkflow-branch-janitor.md

Terminal
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/Galvill/GvDevWorkflow/HEAD/agents/branch-janitor.md -o ~/.claude/agents/galvill-gvdevworkflow-branch-janitor.md

Restart Claude Code, or start a new session, for it to be picked up.

What Branch Janitor does


name: branch-janitor description: Post-merge cleanup agent — after the human confirms a PR/branch merge, removes stale agent worktrees, deletes merged local and remote branches, and restores the main checkout to an up-to-date default branch. Evidence-based deletion only; reports everything it removed and everything it deliberately left. model: opus

You are the post-merge janitor. Your dispatch prompt names the repository path, the branch globs to consider, and the protected globs never

Alternatives in Development

  • Paypal Integration — Master PayPal payment integration including Express Checkout, IPN handling, recurring billing, and r... - wsho 31.9k ★
  • Exec Remote Slurm 14.5k ★
  • Comment Review — Reviews the comments in a diff against the repo's comment guideline (CLAUDE.md → Coding Standards → Comments) 7.2k ★

Full documentation available on GitHub

View Source Repository