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.
/plugin marketplace add vindm/dotclaude/plugin install dotclaudeWrote 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.
[](https://agentmods.dev/skills/vindm/dotclaude/worktree)<a href="https://agentmods.dev/skills/vindm/dotclaude/worktree"><img src="https://agentmods.dev/badge/skills/vindm/dotclaude/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.
<a href="https://agentmods.dev/skills/vindm/dotclaude/worktree"><img src="https://agentmods.dev/badge/skills/vindm/dotclaude/worktree.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00113 | $0.02803 |
| Opus 5.5 | $0.00045 | $0.01121 |
| Sonnet 5.5 | $0.00023 | $0.00561 |
| Haiku 4.5 | $0.00011 | $0.00280 |
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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 209 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/dotclaude:worktree — parallel-session isolation kit
You are setting up worktree-per-feature discipline: every substantive edit to
the policed repo happens in a dedicated git worktree, enforced by a blocking
PreToolUse hook. Read ../../principles/worktree-discipline.md FIRST — it
carries the doctrine and the five hard-won lessons this flow encodes; this
file is the procedure.
The hook is CONSUMED, not rendered. The plugin ships one debugged
check-main-checkout-edit.sh (in hooks/scripts/, wired always-on) that reads
a worktree: block from the project's dotclaude.yml and NO-OPs when there is
none. So this flow does NOT copy a hook into the project — it writes the config
the consumed hook reads. No per-project hook copy, no drift, and a project
tunes its policing in one data file.
The deliverable is not files — it is a proven install: the worktree:
config the consumed hook reads correctly, a smoke worktree that built the
project for real, and an explicit restart + live-fire handoff.
Phase 1 — Read the project's concurrency shape
Before any question:
-
Repo topology — is the project root the repo, or does the policed repo sit below it?
git rev-parse --show-toplevel 2>/dev/null for d in */; do git -C "$d" rev-parse --show-toplevel 2>/dev/null; done git worktree list 2>/dev/nullMultiple sibling repos → ask which one(s) carry the collision risk (usually the one being actively developed, not read-only references/snapshots).
-
Parallel-session evidence — lock files (
.session_lock,*.lockat repo root), CLAUDE.md sections about session coordination, git history mentions of collisions/clobbered work, scheduled/background agents. This calibrates urgency and whether a lease protocol already exists to narrow. -
Git-ignored per-machine files (lesson 2 — the fresh-worktree breakers):
git -C <repo> status --ignored --porcelain | grep '^!!'Filter to files/dirs the build actually needs:
.env*,config/*pointers,node_modules, credential stores. For each, note the likely recipe: copy a committed*.exampletemplate / symlink from main / regenerate / skip.
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.
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.
- 3mo ago First seen · 209 lines · 113 tokens per session scan A ebb6dd004f22
worktree is a skill published in the GitHub repository vindm/dotclaude (1 stars, last pushed 2mo ago), licensed MIT. It adds 113 tokens to every session and 2,803 once invoked, about $0.0005 per session on Opus 5.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.
worktree compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| worktreevindm/dotclaude | Skill | 1 | 2mo ago | MIT | A | 113 | Claude Code |
| git-commit-helperalirezarezvani/claude-code-tresor | Skill | 790 | 20d ago | MIT | A | 55 | Claude Code |
| changelogwesammustafa/Claude-Code-Everything-You-Need-to-Know | Skill | 3.7k | 2d ago | none | A | 28 | Claude Code |
| emerging-techniques-model-mergingdavila7/claude-code-templates | Skill | 35k | today | MIT | A | 77 | Claude Code, Codex |
| prYeachan-Heo/oh-my-claudecode | Skill | 41k | today | MIT | A | 47 | Claude Code |
| shipplugin87/ux-ui-agent-skills | Skill | 3.3k | 12d ago | MIT | A | 34 | Claude Code |
| kb-github-workflow-standardsCommunity-Access/accessibility-agents | Skill | 460 | today | MIT | A | 46 | Claude Code, Codex |