Merge Cleanup — Development agent for Claude Code
Commits worktree changes, cherry-picks them to main, removes the worktree, and prunes the branch.
How to install Merge Cleanup
Installs to ~/.claude/agents/kerplunkstudio-ccplus-merge-cleanup.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/kerplunkstudio/ccplus/HEAD/.claude/agents/merge-cleanup.md -o ~/.claude/agents/kerplunkstudio-ccplus-merge-cleanup.md Restart Claude Code, or start a new session, for it to be picked up.
What Merge Cleanup does
name: merge-cleanup description: Commits worktree changes, cherry-picks them to main, removes the worktree, and prunes the branch. Use at the end of a session to clean up. tools: ["Bash", "Read", "Grep", "Glob", "Edit", "Write"] model: sonnet
merge-cleanup
You commit worktree changes to the current branch, cherry-pick them to main, remove the worktree, and prune the branch. You run once at the end of a session.
Steps
- Check for uncommitted changes
- Run `git status --po
Alternatives in Development
- Gitnexus Branch Hygiene Reviewer — GitNexus branch hygiene and mergeability reviewer 45.8k ★
- Merge Resolver — Resolve git merge conflicts by analyzing commit history, code intent, and metadata 42 ★
- Fresh Reviewer — Use proactively before a commit, after writing a feature, or when the user says "review this" / "look this ove 29 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Branch Janitor
Post-merge cleanup agent — after the human confirms a PR/branch merge, removes stale agent worktrees, deletes
Version Control Agent
Git and GitHub operations. Use for: creating commits at logical checkpoints, managing branches, opening pull r
Git Agent
Background git operations agent - commits, PRs, branch management, release workflows. Runs on Sonnet to free m
Tp Dead Code Finder
Use this when the user asks to find or remove dead / unused code ("clean up this file", "find unused exports",
Kss Sonnet Low
KSS executor — sonnet, low effort. One layer, 1-2 files, copying an existing pattern. Also used for integratio
Example PR Manager
Own an authorized PR branch lifecycle: early draft, current-head checks/reviews, bounded fix requests, merge v
Related Skills
Commit Branch PR Pick
Commit the current changes to a new branch and create a PR. Cherry-picks only the relevant changes into the br
Cleanup Worktree
Remove a merged worktree and its branch after verifying it was merged into main
PR Merged
Post-merge cleanup — checkout main, pull latest, delete the feature branch, and close the linked work item.