Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/WaterplanAI/agentic-confignpx agentmods add skills/waterplanai/agentic-config/worktreeWrote 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/waterplanai/agentic-config/worktree)<a href="https://agentmods.dev/skills/waterplanai/agentic-config/worktree"><img src="https://agentmods.dev/badge/skills/waterplanai/agentic-config/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/waterplanai/agentic-config/worktree"><img src="https://agentmods.dev/badge/skills/waterplanai/agentic-config/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.00039 | $0.03706 |
| Opus 5.5 | $0.00016 | $0.01482 |
| Sonnet 5.5 | $0.00008 | $0.00741 |
| Haiku 4.5 | $0.00004 | $0.00371 |
Grade C, and why
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 19d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf "$TARGET" How it starts
The opening of the file, as written. The whole thing — 489 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Create New Worktree
Creates a new git worktree with:
- Shared assets (symlinked or copied)
- Independent environment per project type
- Proper
.envrcconfiguration for direnv
Arguments
worktree_name(required): Name for the worktree and branchassets_path(optional): Path to external assets directory to symlink from
Cookbook
Setup guide: cookbook/setup.md -- guided walkthrough for creating .worktree.yml (read when no config exists or user requests setup help)
Parallelization
CRITICAL: Use Task tool with model: haiku for parallel execution when:
- Setting up assets in multiple directories
- Installing dependencies in multiple environments
- Any operation that can run independently
Spawn separate haiku agents for each independent task to maximize parallelization.
Example - parallel environment setup:
Task(model: haiku, prompt: "Setup Python venv in /path/to/backend")
Task(model: haiku, prompt: "Run npm install in /path/to/frontend")
Task(model: haiku, prompt: "Create symlinks for assets in /path/to/data")
Send all independent Task calls in a SINGLE message to run them concurrently.
Pre-Flight Checks
-
Verify git repo root:
git rev-parse --show-toplevel -
Validate worktree name:
- Must be provided
- No spaces or special chars (except
-and_)
-
Check for existing worktree/branch:
- If worktree exists: STOP and report
- If branch exists: Ask user to confirm reuse
-
Check for .worktree.yml:
REPO_ROOT=$(git rev-parse --show-toplevel) find "$REPO_ROOT" -maxdepth 1 -name ".worktree.yml" -type f | head -1- If
.worktree.ymlexists: continue to Asset Discovery (Step 4) normally - If
.worktree.ymldoes NOT exist: prompt the user via AskUserQuestion:No
.worktree.ymlfound in your project. This file configures how worktrees set up assets (symlinks, copies) and environments. Without it, the skill infers configuration from directory structure and.gitignore.Would you like to create a
.worktree.ymlnow? I can guide you through the setup. (You can skip this and the skill will use inference instead.) - If user says yes: read
cookbook/setup.mdand follow the guided creation flow. After creating the config, continue to Step 4 (Asset Discovery) using the new config. - If user says no or skips: continue to Step 4 (Asset Discovery) with inference mode.
- If
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.
- 19d ago First seen · 489 lines · 39 tokens per session scan C 1a4678ebc6b3
worktree is a skill published in the GitHub repository WaterplanAI/agentic-config (31 stars, last pushed 20d ago), licensed MIT. It adds 39 tokens to every session and 3,706 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-12.
worktree compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| worktreeWaterplanAI/agentic-config | Skill | 31 | 20d ago | MIT | C | 39 | Claude Code |
| generate-release-noteshuytieu/COG-second-brain | Skill | 1.6k | 1mo ago | MIT | A | 27 | Claude Code |
| share-a-libraryMoizIbnYousaf/Ai-Agent-Skills | Skill | 1.2k | 2mo ago | MIT | A | 41 | Claude Code, Codex |
| git-flow-prsoulcodex/agentic | Skill | 10 | 11d ago | MIT | A | 103 | Claude Code, Codex |
| new-gh-issue-orchestrationsoulcodex/agentic | Skill | 10 | 11d ago | MIT | A | 54 | Claude Code, Codex |
| git-worktree-workspacessoulcodex/agentic | Skill | 10 | 11d ago | MIT | A | 58 | Claude Code, Codex |
| llm-gaterohitg00/pro-workflow | Skill | 3.0k | 2mo ago | none | A | 38 | Claude Code |