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.
npx skills add drvoss/everything-copilot-cli --skill using-git-worktreesgit clone --depth 1 https://github.com/drvoss/everything-copilot-cliWrote 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/drvoss/everything-copilot-cli/using-git-worktrees)<a href="https://agentmods.dev/skills/drvoss/everything-copilot-cli/using-git-worktrees"><img src="https://agentmods.dev/badge/skills/drvoss/everything-copilot-cli/using-git-worktrees/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/drvoss/everything-copilot-cli/using-git-worktrees"><img src="https://agentmods.dev/badge/skills/drvoss/everything-copilot-cli/using-git-worktrees.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00029 | $0.02626 |
| Opus 5.5 | $0.00012 | $0.01050 |
| Sonnet 5.5 | $0.00006 | $0.00525 |
| Haiku 4.5 | $0.00003 | $0.00263 |
Grade A, and why
using-git-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 1mo 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 — 287 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Using Git Worktrees
Git worktrees let one repository have multiple active working directories. Use them when parallel tasks should not compete for the same checkout.
When to Use
- Parallel agent or human work on separate branches
- Reviewing or hotfixing another branch without stashing current work
- Waiting on CI or review for one branch while continuing on another
- Running long-lived experiments that should stay isolated from the main checkout
When NOT to Use
| Instead of using-git-worktrees | Use |
|---|---|
| A single quick change on the current branch | stay in the current checkout |
| Two subtasks that must edit the same files together | one branch, one worktree |
| Disposable experimentation with no branch history needed | a temporary local branch may be enough |
Workflow
1. Pick a directory layout
Option A — Sibling folders (traditional): each worktree is a sibling of the main repo:
C:\work\repo-main
C:\work\repo-feature-api
C:\work\repo-feature-docs
Option B — Project-internal .worktrees/ directory (recommended for Copilot CLI agent workflows):
Keep all worktrees inside the project root for easier discovery and cleaner orchestration briefs:
C:\work\repo-main
C:\work\repo-main\.worktrees\feature-api
C:\work\repo-main\.worktrees\feature-docs
Advantages of project-internal layout:
- All active worktrees visible from one root path — no guessing sibling names
- Agents receive a relative path (
.\\.worktrees\\feature-api) instead of an absolute sibling path - Easier to clean up: removing the project removes all its worktrees
- Git-ignore
.worktrees/to prevent accidental tracking of worktree state files
# Create a project-internal worktree
git worktree add .worktrees\feature-api feature/api-contract
# Or from the project root
git worktree add .\.worktrees\perf-audit -b feature/perf-audit
# List
git worktree list
Add .worktrees/ to .gitignore to prevent worktree bookkeeping files from being committed:
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.
- 1mo ago Changed · +1 lines 321772eac5fe
- 1mo ago Changed 829c6db89bde
- 1mo ago Changed · +3 lines 6f1cd8c67866
- 2mo ago First seen · 283 lines · 29 tokens per session scan A 62ff88797a7c
using-git-worktrees is a skill published in the GitHub repository drvoss/everything-copilot-cli (49 stars, last pushed yesterday), licensed MIT. It adds 29 tokens to every session and 2,626 once invoked, about $0.0001 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-09-03.
using-git-worktrees compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| using-git-worktreesdrvoss/everything-copilot-cli | Skill | 49 | yesterday | MIT | A | 29 | Claude Code |
| repo-readyjongio/skills | Skill | 19 | 2d ago | MIT | A | 188 | Claude Code |
| diffjongio/skills | Skill | 19 | 2d ago | MIT | A | 121 | Claude Code |
| git-tidyjongio/skills | Skill | 19 | 2d ago | MIT | A | 93 | Claude Code |
| create-skills-repojongio/skills | Skill | 19 | 2d ago | MIT | A | 131 | Claude Code |
| prjongio/skills | Skill | 19 | 2d ago | MIT | A | 92 | Claude Code |
| retrojongio/skills | Skill | 19 | 2d ago | MIT | A | 97 | Claude Code |