What is post-merge-cleanup?
post-merge-cleanup is a Claude Code mod by seanrobertwright that /cleanup after a PR merges: switch to the default branch, pull, and delete the merged branch and its worktree, after one confirmation. It is listed under Git & CI and has 3 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | seanrobertwright |
| Repository | seanrobertwright/claude-mods |
| Popularity | 3 GitHub stars |
| Category | Git & CI |
| Security | Low risk (80/100) |
| Rank | #992 of 5,272 Claude Code mods; #56 in Git & CI |
| Last commit | 2026-10-12 |
| Stars this week | +2 |
| Hooks | 3 events |
| Sees | only the events it hooks |
| Draws on | nothing |
Is post-merge-cleanup safe to install?
post-merge-cleanup scores 80/100 on the MCPMods security check: Low risk. Things to review: starts processes outside the sandbox. It passed 5 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Validator reported problems | Note |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.command.register | |
$.process.run | runs processes |
$.session.surfaces | |
$.state.get | |
$.state.set | |
$.ui.ask | draws interface |
$.ui.log | draws interface |
$.ui.toast | draws interface |
How do I install post-merge-cleanup?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/seanrobertwright/claude-mods claude plugin validate ./claude-mods/mods/post-merge-cleanup
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add seanrobertwright/claude-mods && claude plugin install post-merge-cleanup@claude-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs post-merge-cleanup for you:
Install the "post-merge-cleanup" Claude Code mod from https://github.com/seanrobertwright/claude-mods/tree/main/mods/post-merge-cleanup. Run claude plugin validate on it first and show me what it can access before you enable it.
More from seanrobertwright/claude-mods
This repository has at least 9 Claude Code mods on MCPMods.
- archon-panel: An Archon pane in the side panel: this project's workflow runs, their graphs and logs, and the approvals that wait on yo (High risk)
- auto-resume: When a turn dies on a rate limit (or an overloaded API), counts down to the reset and sends "continue" for you. (Review before installing)
- bash-quoting-rescue: Before a shell command runs, parses it with the shell's own parser and refuses one that does not parse, such as an unclo (Low risk)
- branch-guard: Before Claude commits or pushes on the default branch, asks you whether to create a branch first. (Low risk)
- chrome-tab-self-heal: When a Claude in Chrome tool says its tab is gone, tells Claude to fetch the current tab IDs before trying again. (Low risk)
- dev-server-manager: A pane of the project's dev servers: start, restart and watch them, and fill a crash's error into the prompt. (Review before installing)
- env-guard: Asks you before Claude reads a .env or key file, and refuses when no one is there to answer. (Low risk)
- github-panel: A GitHub pane in the side panel: the repo's open pull requests and issues; click one to open it in the browser, or fill (Low risk)