worktrees

by Abhiram Dwivedi · ★ 1 · updated yesterday

ToastsGuardsCommandsvalidates

0

Gives every agent that can edit a git worktree of its own, runs a project's setup script with its own port range, kills what an agent left running, removes an agent's worktree and branch once the session merges it, and tidies other merged branches on demand with /tidy

install worktrees

Install

/plugin marketplace add AbhiramDwivedi/claude-ops
/plugin install worktrees@claude-ops

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
classic.PreToolUseclassic.WorktreeCreateclassic.WorktreeRemoveclassic.SubagentStopclassic.SubagentStartclassic.SessionStartclassic.PostToolUsesession.startcommand.run
API calls
$.clock.after$.clock.now$.clock.sleep$.command.register$.env.get$.fs.exists$.fs.read$.fs.stat$.fs.write$.process.run$.session.cwd$.ui.log$.ui.toast
Can see
classic hooks
Reach
level 2 of 3 runs processeswrites filesreads filesreads env varsdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/AbhiramDwivedi/claude-ops
Path in repo
plugins/worktrees
Source commit
0d24bcb the exact code the scan read
Author
Abhiram Dwivedi @AbhiramDwivedi
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from AbhiramDwivedi/claude-ops

session-models

AbhiramDwivedi/claude-ops

Shows the main model and its effort, the live agents by model and effort, and the working directory, and warns about agent crowds and huge contexts

★ 1BandsStatus line

subagent-limits

AbhiramDwivedi/claude-ops

Keeps subagents small: tells the main agent how to size and split work, asks a growing subagent to checkpoint, and refuses its tools past a hard limit so a fresh agent takes over

★ 1ToastsGuardsPrompt

usage-limits

AbhiramDwivedi/claude-ops

Keeps the 5-hour and weekly limit windows, their burn rate, a run-out projection, context fill, session cost and prompt-cache drops in a dim line above the prompt

★ 1BandsStatus line