using-worktrees

using-worktrees is a skill for Claude Code, Codex from isvlasov/rageatc-oss. It costs 34 tokens per session (1,464 once invoked), scanned A, original, MIT.

A way to use Git worktrees, which are separate working folders for branches that share one repository. It sets up and manages these folders for separate implementation tasks.

In plain words
What is it for?
Use it to create task-specific workspaces, support parallel development and merge completed task branches.
Why use it?
It keeps work on different tasks isolated, so changes do not interfere and developers do not have to repeatedly switch branches.

Skill for Claude CodeCodex

Part of the rageatc-code-oss plugin — 21 skills, 5 agents, 1 hook 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 skills/isvlasov/rageatc-oss/using-worktrees
Any agent
npx skills add isvlasov/rageatc-oss --skill using-worktrees
Clone the repo
git clone --depth 1 https://github.com/isvlasov/rageatc-oss

Made for: Claude Code, Codex.

Or install rageatc-code-oss, the plugin that ships this one along with the rest of its 21 skills, 5 agents, 1 hook.

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 using-worktrees

README.md
[![agentmods](https://agentmods.dev/badge/skills/isvlasov/rageatc-oss/using-worktrees.svg)](https://agentmods.dev/skills/isvlasov/rageatc-oss/using-worktrees)
Your own site
<a href="https://agentmods.dev/skills/isvlasov/rageatc-oss/using-worktrees"><img src="https://agentmods.dev/badge/skills/isvlasov/rageatc-oss/using-worktrees.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,464 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.1 $0.00034 $0.01464
Opus 5 $0.00017 $0.00732
Sonnet 5 $0.00007 $0.00293
Haiku 4.5 $0.00003 $0.00146

Measured 5d ago against content hash 93b4c8b74f38, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

using-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 5d 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.

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/rageatc-code-oss/skills/using-worktrees/SKILL.md · 185 lines

How it starts

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

Using Worktrees

Overview

Git worktrees create isolated workspaces sharing the same repository, allowing work on multiple branches simultaneously without switching.

Core principle: Systematic directory selection + safety verification = reliable isolation.

Scope

This skill covers git worktree setup, lifecycle, and known limitations for rageatc-code-oss workflows. It does NOT cover process-level isolation (Docker sandboxes), CI/CD pipeline isolation, or worktree usage outside of chunk-based development.

When to Use

  • Standard/Thorough workflows: Each implementation chunk gets its own worktree for isolation
  • Parallel chunks (Thorough only): Multiple worktrees enable simultaneous work on chunks with non-overlapping file sets
  • Quick workflow: Optional — branch-based isolation may suffice for single small changes

Approach: Orchestrator-Managed Worktrees

The orchestrator creates and manages worktrees manually using git worktree add, then points developer-agents to the worktree directory.

Why manual, not automated: Claude Code's isolation: "worktree" option creates a fresh worktree per agent spawn with an opaque branch name. The manual approach keeps the lifecycle with the orchestrator — setup (baseline tests, .gitignore checks) runs in the worktree before the agent launches, review iterations reuse the same worktree across developer invocations, and branches are named after chunks. The Feb 2026 bugs that originally forced this choice were re-verified fixed on 2026-07-04; see Known Limitations.

Orchestrator:
  1. git worktree add <path> -b <branch>
  2. Run setup in worktree
  3. Launch developer-agent pointed at worktree path
  4. After review + accept: merge branch, remove worktree

Directory Selection

Follow this priority order:

1. Check Existing Directories

ls -d .worktrees 2>/dev/null     # Preferred (hidden)
ls -d worktrees 2>/dev/null      # Alternative

If found: Use that directory. If both exist, .worktrees wins.

Read the full file on GitHub · 185 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. 5d ago First seen · 185 lines · 34 tokens per session scan A 93b4c8b74f38

Subscribe to this mod's changes

using-worktrees is a skill published in the GitHub repository isvlasov/rageatc-oss (9 stars, last pushed 1mo ago), licensed MIT. It adds 34 tokens to every session and 1,464 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-08-31.