worktrees

worktrees is a Claude Code mod by AbhiramDwivedi that gives every agent that can edit a git worktree of its own, runs a project's setup script with its own port range, stops only the processes that setup script recorded, removes an agent's.

Updated 2026-11-21

What is worktrees?

worktrees is a Claude Code mod by AbhiramDwivedi that gives every agent that can edit a git worktree of its own, runs a project's setup script with its own port range, stops only the processes that setup script recorded, removes an agent's. It is listed under Git & CI and has 3 GitHub stars.

TypeClaude code mod
AuthorAbhiramDwivedi
RepositoryAbhiramDwivedi/claude-ops
Popularity3 GitHub stars
CategoryGit & CI
SecurityReview before installing (60/100)
Rank#1,715 of 9,397 Claude Code mods; #104 in Git & CI
LicenseMIT
Last commit2026-11-21
Hooks9 events
Seesclassic hooks
Draws onnothing

Is worktrees safe to install?

worktrees scores 60/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables. It passed 4 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 files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.clock.now
$.clock.sleep
$.command.register
$.env.getreads env vars
$.fs.existsreads files
$.fs.listreads files
$.fs.readreads files
$.fs.statreads files
$.fs.writewrites files
$.process.runruns processes
$.session.cwd
$.ui.logdraws 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/AbhiramDwivedi/claude-ops
    claude plugin validate ./claude-ops/plugins/worktrees
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add AbhiramDwivedi/claude-ops && claude plugin install worktrees@claude-ops

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/AbhiramDwivedi/claude-ops/tree/main/plugins/worktrees. Run claude plugin validate on it first and show me what it can access before you enable it.

More from AbhiramDwivedi/claude-ops

This repository has 4 Claude Code mods on MCPMods.

  • session-models: Shows the main model and its effort, the live agents by model and effort, named agent crews, and the working directory, (Low risk)
  • subagent-limits: Keeps subagents small: tells the main agent how to size and split work, asks a growing subagent to checkpoint, and refus (Low risk)
  • usage-limits: Keeps the 5-hour and weekly limit windows, their burn rate, a run-out projection, context fill, session cost and prompt- (Low risk)