Download

slash command · Git & Code Review

Clean Gone

by anthropics ✓ verified publisher

Cleans up all git branches marked as [gone] (branches that have been deleted on the remote but still exist locally), including removing associated worktrees.

Calyban is a free desktop app. It checks Clean Gone for red flags before installing, lets you choose the agent and folder, and undoes it in one click.

Install Clean Gone manually

Prefer the terminal? This does the same thing as Calyban's install.

Claude Code

mkdir -p ~/.claude/commands
curl -fsSL https://raw.githubusercontent.com/anthropics/claude-plugins-official/e6143c9807a001832badb63e89d58ffe25d542ec/plugins/commit-commands/commands/clean_gone.md -o ~/.claude/commands/clean_gone.md

Codex

mkdir -p ~/.codex/prompts
curl -fsSL https://raw.githubusercontent.com/anthropics/claude-plugins-official/e6143c9807a001832badb63e89d58ffe25d542ec/plugins/commit-commands/commands/clean_gone.md -o ~/.codex/prompts/clean_gone.md

Start a new Claude Code & Codex session afterwards so it picks up the change.

Similar slash commands

All slash commands →

Guides

Listed in the public Calyban catalog. Clean Gone is made by anthropics, not Calyban. Inclusion isn't an endorsement and safety checks aren't a guarantee.