Claude Code mod
worktrees
/worktrees pane: each git worktree with branch, uncommitted changes, ahead/behind and PR state; removes clean worktrees whose PR is merged or closed
Install
/plugin marketplace add narrowstacks/claude-code-mods
/plugin install worktrees@claude-code-modsMods install like plugins. Run /reload-plugins or start a new session to load it.
What it can access
- Reach
- L2Writes or runs: runs processes, reads mod state, draws
- Draws in
Pane- Hooks
session.startcommand.runui.render
From a static scan of the mod's code by awesome-claude-code-mods. It shows what the code asks for, not a security review.
How Claude Code mods work
- A mod is a plugin with a JavaScript or TypeScript module that runs inside Claude Code (version 2.1.287 or later). It can draw panes beside the transcript, a band above the prompt, buttons and toasts, restyle the spinner and tool rows, and watch or rewrite tool calls and prompts.
- It installs like any plugin: add its marketplace with /plugin marketplace add owner/repo, then /plugin install name@marketplace.
- Check what a mod can reach before installing: it runs with your permissions. Reach goes from drawing only, to reading files, to writing files or running processes, to the network. Run claude plugin validate on a clone to list its hooks and calls without running it.
- Turn one off from the Installed tab in /plugin, or start Claude Code with --safe-mode to skip every customization for a session.
Details
- Repository
- narrowstacks/claude-code-mods
- Folder
worktrees- Marketplace
claude-code-mods- Last updated
- 9 October 2026
- Listed in
- awesome-claude-code-mods
FAQ
What is worktrees?
/worktrees pane: each git worktree with branch, uncommitted changes, ahead/behind and PR state; removes clean worktrees whose PR is merged or closed It is a mod for Claude Code, from narrowstacks/claude-code-mods on GitHub.
What can the worktrees mod access?
Its widest reach is "writes or runs" (runs processes, reads mod state, draws). It draws in Pane. Like any mod, it runs with your permissions.
How do I install worktrees?
Inside Claude Code (v2.1.287 or later), run /plugin marketplace add narrowstacks/claude-code-mods and then /plugin install worktrees@claude-code-mods.
More git & github mods
worktree-terminal
cmorss/claude-mods
/terminal: show or open a Terminal-panel tab in this conversation's git worktree (Claude desktop app)
y-change
nalpari/claude-mods
Pane that shows each code change Claude makes as a diff with a beginner-friendly explanation of why
worktree-hints
pradyb/claude-mods
In a worktree session, tells Claude up front which commands the worktree guard refuses (heredoc and inline-script edits, multi-line scripts, cd to computed paths), so it uses Edit and plain commands instead of retrying.
branch-guard
1Justmalhar/awesome-claude-mods
Stops Claude from editing files or running mutating git commands on main or master, and points it at a worktree instead.
trailer-guard
davidcoulson/crab-workshop
Per-repo commit attribution policy: refuses a git commit, gh pr create/edit or git push that would carry a Co-Authored-By: Claude trailer or the Generated with Claude Code footer into a repo that forbids them (tinkerologie, esphome, home-assistant upstreams by default), with the lines to remove.
coach
1aseem-upadhyay/qol-mods
A weekly coach for how you use Claude Code: one habit at a time from your own sessions, tips at your level, CLAUDE.md lines and skills worth making, and your progress over the weeks
Browse the most popular Claude Code mods, all git & github mods, or the skills and MCP server directories.