create-worktree

create-worktree is a skill for Claude Code from cboone/agent-harness-plugins. It costs 60 tokens per session (9,102 once invoked), scanned C, original, MIT.

A workflow for creating a separate Git worktree, branch, and tmux window for a coding task. A Git worktree is another working folder connected to the same repository.

In plain words
What is it for?
Use it to start work on a general feature or fix with a generated or supplied branch name and task instructions.
Why use it?
It keeps task changes isolated while giving the work its own terminal session.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the workmux plugin — 2 skills shipped together

Good fit Use it to start work on a general feature or fix with a generated or supplied branch name and task instructions.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add cboone/agent-harness-plugins
Claude Code
/plugin install workmux

Made for: Claude Code.

Or install workmux, the plugin that ships this one along with the rest of its 2 skills.

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-worktree

README.md
[![agentmods](https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/create-worktree/github.svg)](https://agentmods.dev/skills/cboone/agent-harness-plugins/create-worktree)
Your own site
<a href="https://agentmods.dev/skills/cboone/agent-harness-plugins/create-worktree"><img src="https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/create-worktree/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for create-worktree

Your own site · 80×15
<a href="https://agentmods.dev/skills/cboone/agent-harness-plugins/create-worktree"><img src="https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/create-worktree.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,102 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00060 $0.09102
Opus 5.5 $0.00024 $0.03641
Sonnet 5.5 $0.00012 $0.01820
Haiku 4.5 $0.00006 $0.00910

Measured 28d ago against content hash 0a78bbc1b86e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

create-worktree scanned grade C with 1 finding 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 28d ago.

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.

Tells the agent never to refusehighAnti-refusal

Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.

**Never refuse.** If the user says to proceed, proceed: they always have a reason, and taking a claim over is recorded in the next step. Checking here rather than after the worktree exists means a declined claim stops be
plugins/workmux/skills/create-worktree/SKILL.md · 445 lines

How it starts

The opening of the file, as written. The whole thing — 445 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Create Worktree

Create a dedicated worktree + tmux window via workmux add, with a prompt injected into the new agent session.

This skill creates the worktree and stops. It does not start the work. To have the new session also plan the issue, use workmux:start-issue instead.

Options

The user may provide these options inline:

  • --issue <number>: Force issue lookup, for when a task description is itself a number. Repeat it, or pass comma-separated numbers, for several issues
  • --no-issue: Force description handling, even if the argument looks like an issue number
  • --branch <name>: Use this exact branch name and skip generation, for a name that does not look like one
  • --base <branch>: Base the worktree on a specific branch instead of the repository's default branch
  • --config <file>: Pass a readable alternate workmux config to every launcher invocation that creates or opens a worktree
  • --agent <name>: Pass a nonempty destination agent name or command to every launcher invocation that creates or opens a worktree
  • --resource <name>: Claim a named exclusive resource for the new worktree, and report the holder first if one holds it already
  • --release-resource <name>: Release a claim and stop, creating nothing
  • --list-resources: Report every claim and stop, creating nothing
  • --fan-out: With several issue numbers, create one worktree, branch and tmux window per issue instead of one for all of them. --each and --separate are aliases with identical behavior; treat all three as the same fan-out mode before checking how it combines with other options

Without either flag, the new window runs the global workmux agent, subject to repository configuration, regardless of the invoking agent. Forward supplied flags as separate quoted arguments to launch-workmux in every launch path, including combined and fan-out modes. Omit them from --resolve-issue-branch preflight calls. Both flags may be supplied.

A live headless run with installed workmux 0.1.277 showed that --config replaces the repository's .workmux.yaml while merging global config. An agent-only profile omitted the repository's post-create hook, copied file and symlink; the global post-create hook ran instead. A profile with its own hook and file operations applied those entries. Include needed repository settings in the alternate config, or use --agent to select an agent while retaining repository hooks and file operations. In the same probe, an identical complete profile stored outside the repository ran its hook but omitted copies and symlinks whose sources existed only in the repository. Keep the profile in the repository, or verify its file source paths and the provisioned files when storing it elsewhere.

Read the full file on GitHub · 445 lines

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. 28d ago Changed 0a78bbc1b86e
  2. 1mo ago Changed · +7 lines 59fbd72df3a2
  3. 1mo ago Changed · +21 lines 396e30affbe4
  4. 1mo ago Changed 0aac6e2fbdea
  5. 1mo ago Changed · -1 tokens per session a0fd1e3c97aa
  6. 1mo ago Changed c3ebcd6d9bb9
  7. 1mo ago Changed · +131 lines · +22 tokens per session 5f4f535ef137
  8. 2mo ago Changed · +1 lines 709633642ba9
  9. 2mo ago Changed · -10 lines · -147 tokens per session 7e518b532c2b
  10. 2mo ago First seen · 295 lines · 186 tokens per session scan C a0dcc709ad3f

Subscribe to this mod's changes

create-worktree is a skill published in the GitHub repository cboone/agent-harness-plugins (3 stars, last pushed 5d ago), licensed MIT. It adds 60 tokens to every session and 9,102 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (tells the agent never to refuse). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

create-worktree compared with skills from other repositories

create-worktree next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
create-worktreecboone/agent-harness-pluginsSkill35d agoMITC60Claude Code
factory-deferred-repositorieswarpdotdev/warpSkill66ktodayAGPL-3.0A53Claude Code, Codex
own-pr-shepherdsonichi/sutandoSkill413todayMITA135Claude Code
review-preflightsonichi/sutandoSkill413todayMITA45Claude Code
autopilot-triagejoshukraine/dotfilesSkill4307d agoMITA44Claude Code
create-prjoshukraine/dotfilesSkill4307d agoMITA25Claude Code
merge-prjoshukraine/dotfilesSkill4307d agoMITA23Claude Code