worktrees

worktrees is a Claude Code mod by aseem-upadhyay that every git worktree of the repo in a pane: how stale each is, how much disk it takes, which ones a Claude session is using, and a button to remove the ones you're done with.

Updated 2026-10-31

What is worktrees?

worktrees is a Claude Code mod by aseem-upadhyay that every git worktree of the repo in a pane: how stale each is, how much disk it takes, which ones a Claude session is using, and a button to remove the ones you're done with. It is listed under Git & CI and has 1 GitHub stars.

TypeClaude code mod
Authoraseem-upadhyay
Repositoryaseem-upadhyay/qol-mods
Popularity1 GitHub stars
CategoryGit & CI
SecurityReview before installing (76/100)
Rank#3,316 of 9,397 Claude Code mods; #258 in Git & CI
LicenseMIT
Last commit2026-10-31
Hooks3 events
Seesonly the events it hooks
Draws onPane

Is worktrees safe to install?

worktrees scores 76/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; reads environment variables. It passed 6 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.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes no files or configPass
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.now
$.command.register
$.env.getreads env vars
$.fs.listreads files
$.fs.statreads files
$.process.runruns processes
$.session.cwd
$.session.repo
$.session.surfaces
$.state.get
$.state.set
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install worktrees?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/aseem-upadhyay/qol-mods
    claude plugin validate ./qol-mods/plugins/worktrees
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add aseem-upadhyay/qol-mods && claude plugin install worktrees@qol-mods

Or ask Claude to set it up

Paste this into Claude Code and it installs worktrees for you:

Install the "worktrees" Claude Code mod from https://github.com/aseem-upadhyay/qol-mods/tree/main/plugins/worktrees. Run claude plugin validate on it first and show me what it can access before you enable it.

More from aseem-upadhyay/qol-mods

This repository has 5 Claude Code mods on MCPMods.

  • coach: A weekly coach for how you use Claude Code: one habit at a time from your own sessions, tips at your level, CLAUDE.md li (Review before installing)
  • games: Small, good-looking games in a side pane: /games for Snake, Tetris, Breakout, Dino Run, Pong, 2048, Minesweeper, Lights (Low risk)
  • repo-spend: A bar above the prompt: dollars spent on the current repo over the time your logs cover (every session's share of work d (Review before installing)
  • worklog: What you worked on, day by day, from your Claude Code sessions and git: /standup for the last work day or the week, /wor (Review before installing)