worktrees
by Abhiram Dwivedi · ★ 1 · updated yesterday
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
/plugin marketplace add AbhiramDwivedi/claude-ops/plugin install worktrees@claude-opsThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
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
0d24bcbthe 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
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
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