Claude Code mod
worktrees
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-opsMods install like plugins. Run /reload-plugins or start a new session to load it.
What it can access
- Reach
- L2Writes or runs: runs processes, writes files, reads files, reads env vars, draws
- Sees
- classic hooks
- Hooks
classic.PreToolUseclassic.WorktreeCreateclassic.WorktreeRemoveclassic.SubagentStopclassic.SubagentStartclassic.SessionStartclassic.PostToolUsesession.startcommand.run
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
- AbhiramDwivedi/claude-ops
- Folder
plugins/worktrees- Marketplace
claude-ops- Author
- Abhiram Dwivedi
- License
- MIT
- Last updated
- 30 October 2026
- Listed in
- awesome-claude-code-mods
FAQ
What is worktrees?
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 It is a mod for Claude Code, from AbhiramDwivedi/claude-ops on GitHub.
What can the worktrees mod access?
Its widest reach is "writes or runs" (runs processes, writes files, reads files, reads env vars, draws). It sees classic hooks. 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 AbhiramDwivedi/claude-ops and then /plugin install worktrees@claude-ops.
Is worktrees popular?
AbhiramDwivedi/claude-ops has 3 GitHub stars and 0 forks, and is included in 1 curated Claude Code list. It was last updated on 30 October 2026.
More git & github mods
source-control
3manuel-will/cc-source-control
Source Control for Claude Code: Git status above the chat box, a panel with changes, commit, a history graph, branches and worktrees, plus fetch, pull, push and sync in one click. English and German.
adversarial-review-loop
2leinardi/adversarial-review-loop
Implement an agreed plan with an enforced adversarial review loop: every phase commit is gated on an external review.
repo-line
3schreibse/claude-code-mods
A line right above the prompt with the repository's name as a badge in the repository's own colour, the branch and the worktree, so a prompt never goes to the wrong session
agent-council
2apolenkov/agent-council
A council of independent code reviewers (Codex, Pi, Devin, OpenCodeReview) runs over your working diff in parallel; one summary of agreements, disagreements and unique findings. /council, plus an auto-review that only notifies.
raven
3arunkumar9t2/raven
A live preview pane beside the transcript: the session's diff with review comments, and rendered plans and docs as Claude writes them.
agent-office
2ririversoza/agent-office
A view-only pixel office pane showing which agents (lead, subagents, Codex, Cursor) are working, with your checklist and this branch's PR
Browse the most popular Claude Code mods, all git & github mods, or the skills and MCP server directories.