All shelves / Mods / Workflow
worktrees
By Hula-Hoop-AI
worktrees is a Claude Code workflow mod by Hula-Hoop-AI.
Shows repo@branch and its listening ports in the hint line under the prompt, and a /worktrees pane that lists every worktree and removes the finished ones.
Draws
Install
The marketplace name is supermods.
/plugin marketplace add Hula-Hoop-AI/supermods /plugin install worktrees@supermods
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.1.2
- License
- MIT
- Repo stars
- 4
- Last change
- 2026-10-05
What it can reach
- Draws in the session
- Runs a command when you press
- Calls another program on this machine
Mods need Claude Code v2.1.287 or later. Port detection uses lsof, so it works on macOS and Linux and shows nothing elsewhere. Merged pull requests need the gh CLI, signed in; without it only no commits ahead marks a worktree finished. The default branch is read from origin/HEAD, else origin/main or origin/master. The hint line is drawn in the terminal and the desktop app only.
The marketplace, supermods, holds Hula-Hoop-AI's nine mods; each installs on its own. Keeping worktrees in view is why this page files it under workflow. session-switcher, by ha-ptt0601, opens a sidebar of the project's sessions, worktrees included. git-pulse, by Singh-AP, draws the branch, ahead and behind, and dirty files on the status line. This one lists each worktree's branch, whether its pull request was merged, commits ahead, uncommitted files, and ports, and Remove N finished runs git worktree remove only on finished ones: not the main or current checkout, nothing uncommitted or listening. Branches are left alone.
Demo

What it hooks into
session.startWhen a session startsturn.completeWhen a turn endsui.renderDraws into the sessionPromptHintPanecommand.runWhen you run its slash command/worktrees
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 1
/worktreesReview git worktrees and clear the finished ones
Files
The author's README and source, 4 files. They load when you open them.
Facts
- Author
- Hula-Hoop-AI
- Category
- Workflow
- Marketplace
- supermods
- Folder
- plugins/worktrees
- Version
- 0.1.2
- License
- MIT
- Repo stars
- 4
- Last change
- 2026-10-05
- Language
- TypeScript
- Files
- 7