worktree

worktree is a skill for Claude Code from jhlee0409/omni-harness-kit. It costs 75 tokens per session (315 once invoked), scanned A, original, MIT.

A workflow for creating a separate Git working directory and branch for each code-change task. A Git worktree lets multiple branches use the same repository without mixing their files.

In plain words
What is it for?
Use it when a repository has enabled task-specific worktrees or when you need an isolated branch and directory for a change.
Why use it?
It keeps the main checkout clean and reduces conflicts between parallel or unfinished tasks.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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 harness-kit plugin — 18 skills, 28 agents, 2 hooks shipped together

Good fit Use it when a repository has enabled task-specific worktrees or when you need an isolated branch and directory for a change.

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 jhlee0409/omni-harness-kit
Claude Code
/plugin install harness-kit

Made for: Claude Code.

Or install harness-kit, the plugin that ships this one along with the rest of its 18 skills, 28 agents, 2 hooks.

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 worktree

README.md
[![agentmods](https://agentmods.dev/badge/skills/jhlee0409/omni-harness-kit/worktree/github.svg)](https://agentmods.dev/skills/jhlee0409/omni-harness-kit/worktree)
Your own site
<a href="https://agentmods.dev/skills/jhlee0409/omni-harness-kit/worktree"><img src="https://agentmods.dev/badge/skills/jhlee0409/omni-harness-kit/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 worktree

Your own site · 80×15
<a href="https://agentmods.dev/skills/jhlee0409/omni-harness-kit/worktree"><img src="https://agentmods.dev/badge/skills/jhlee0409/omni-harness-kit/worktree.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 315 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00075 $0.00315
Opus 5 $0.00037 $0.00158
Sonnet 5 $0.00015 $0.00063
Haiku 4.5 $0.00007 $0.00032

Measured 8d ago against content hash 1609a14dc810, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

worktree 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 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (new-worktree.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/worktree/SKILL.md · 25 lines

What it actually says

worktree

Each code-change task gets its own worktree, so the main checkout stays clean and parallel tasks don't collide. (Only relevant if the repo opted into this workflow at introspect time — .claude/harness-kit.json worktree_workflow: true.)

  1. Create: from the repo root, run bash "${CLAUDE_PLUGIN_ROOT}/skills/worktree/new-worktree.sh" "<slug>" [base]. It creates ../<repo>-<slug> on a new branch <slug> (from base, default HEAD — pass your integration branch to branch off it) and prints the path.
  2. Work there: make the task's edits in that worktree (cd into it, or git -C <path> …). Keep the main checkout read-only for edits.
  3. Finish: open a PR from the branch, then git worktree remove <path>.
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 25 lines · 75 tokens per session scan A 1609a14dc810

Subscribe to this mod's changes

worktree is a skill published in the GitHub repository jhlee0409/omni-harness-kit (2 stars, last pushed 1mo ago), licensed MIT. It adds 75 tokens to every session and 315 once invoked, about $0.0004 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-08-31.

Related

Other skills, from other repositories

release

Prepare a version release — bump version files, commit, and tag. Just run /release with no arguments.

RockyHong/super-bootstrap · 24 tokens

merge

Absorb one or more feature branches into the base branch. Recommends merge vs rebase per branch. On conflict, aborts that branch + surfaces the file list + stops. Resolution out of scope; routes to the harness-named conflict-resolution agent or the user.

RockyHong/super-bootstrap · 57 tokens

release-init

Detect project type and generate a tailored project-level /release skill. Run once per project to set up releasing.

RockyHong/super-bootstrap · 25 tokens

commit

Commit the current session's changes only, gateway-inline. Session-isolated (never -A, staged set verified against the session list), doc-sync-gated. The gateway runs the commit inline — it already holds the diff, session file list, and change intent; on a mechanical gate hit it judges doc-sync warm in its own context…

RockyHong/super-bootstrap · 124 tokens

drain

Parallel-worktree auto-drain of the board. One /super-bootstrap:drain turn = scan the pipeline sources (specs/plans/backlog, plus the scale module's test queue when present) → keep only admissible items → relation-analyze into a conflict-free wave → confirm with the user → spawn one isolated git worktree + headless…

RockyHong/super-bootstrap · 200 tokens

setup-caliber

Sets up Caliber for automatic AI agent context sync. Installs pre-commit hooks so CLAUDE.md, Cursor rules, and Copilot instructions update automatically on every commit. Use when Caliber hooks are not yet installed or when the user asks about keeping agent configs in sync.

caliber-ai-org/ai-setup · 61 tokens