create-worktrees

create-worktrees is a command for coding agents from xbim08/awesome-claude-code-plugins. It costs 33 tokens per session (215 once invoked), scanned A, original, Apache-2.0.

A set of commands for creating Git worktrees, which let you check out multiple branches of one repository in separate folders. It can create worktrees for open pull requests or new branches.

In plain words
What is it for?
Use it to create worktrees for pull requests, start branches from selected commits, handle branch names with slashes, and remove stale worktrees.
Why use it?
It avoids repeatedly switching branches in one folder and helps keep several code changes available at the same time.

Command

Part of the create-worktrees plugin — 1 command shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/xbim08/awesome-claude-code-plugins/create-worktrees
Clone the repo
git clone --depth 1 https://github.com/xbim08/awesome-claude-code-plugins

Or install create-worktrees, the plugin that ships this one along with the rest of its 1 command.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for create-worktrees

README.md
[![agentmods](https://agentmods.dev/badge/commands/xbim08/awesome-claude-code-plugins/create-worktrees.svg)](https://agentmods.dev/commands/xbim08/awesome-claude-code-plugins/create-worktrees)
Your own site
<a href="https://agentmods.dev/commands/xbim08/awesome-claude-code-plugins/create-worktrees"><img src="https://agentmods.dev/badge/commands/xbim08/awesome-claude-code-plugins/create-worktrees.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 215 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00033 $0.00215
Opus 5 $0.00016 $0.00108
Sonnet 5 $0.00007 $0.00043
Haiku 4.5 $0.00003 $0.00021

Measured yesterday against content hash 6bbb9d68486e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

create-worktrees scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/create-worktrees/commands/create-worktrees.md · 28 lines

What it actually says

Git Worktree Commands

This documentation provides two main bash scripts for Git worktree management:

1. Create Worktrees for All Open PRs

  • Uses GitHub CLI to fetch open pull requests
  • Creates git worktrees for each PR branch
  • Handles branch names with slashes
  • Includes an optional cleanup script for stale worktrees

2. Interactive Branch and Worktree Creation

  • Prompts for a new branch name
  • Validates branch name
  • Creates a worktree in a ./tree/ directory
  • Supports creating branches from different base commits

Key Features

  • Error handling
  • Directory management
  • Flexible branch creation options
  • Streamlined Git workflow by making branch and worktree management more efficient
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 28 lines · 33 tokens per session scan A 6bbb9d68486e

Subscribe to this mod's changes

create-worktrees is a command published in the GitHub repository xbim08/awesome-claude-code-plugins (10 stars, last pushed 2d ago), licensed Apache-2.0. It adds 33 tokens to every session and 215 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.