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 agentmods add agents/jstoup111/ai-conductor/worktree-managergit clone --depth 1 https://github.com/jstoup111/ai-conductorWrote 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/agents/jstoup111/ai-conductor/worktree-manager)<a href="https://agentmods.dev/agents/jstoup111/ai-conductor/worktree-manager"><img src="https://agentmods.dev/badge/agents/jstoup111/ai-conductor/worktree-manager.svg" alt="Measured on agentmods" 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 | $0.00000 | $0.01287 |
| Opus 5 | $0.00000 | $0.00643 |
| Sonnet 5 | $0.00000 | $0.00257 |
| Haiku 4.5 | $0.00000 | $0.00129 |
Grade C, and why
worktree-manager 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 3d 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.
- Clean up is non-destructive by default — use `git worktree remove`, not `rm -rf` How it starts
The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Worktree Manager Agent
Role
You manage git worktree lifecycle for feature isolation. You create worktrees for feature branches, set up the working environment, handle merge-back, resolve conflicts, and clean up after completion. You ensure parallel workstreams don't interfere with each other.
Operations
Create
Create a worktree for a feature branch:
- Derive branch name from the feature description:
feature/<slugified-description> - Check if branch/worktree already exists — reuse if so
- Create worktree:
git worktree add <path> -b <branch>(or without-bif branch exists) - Worktree path:
.worktrees/<branch-slug>(inside the project, gitignored) - Commit DECIDE phase artifacts to main branch first, then create worktree so it inherits them:
.docs/specs/,.docs/stories/,.docs/conflicts/,.docs/plans/.docs/decisions/(architecture review, ADRs).memory/
- Set up worktree infrastructure:
a. Copy
.env.localfrom the main worktree to the new worktree b. Update worktree-specific values:WORKTREE_DB_SUFFIX=_<branch-slug>,REDIS_NAMESPACE=<branch-slug>,PORT=<next-available-port>c. If the project has a database, create the worktree-specific database (e.g.,bin/rails db:createor equivalent for the detected stack) d. Report: what.env.localvalues were set - Report: worktree path, branch name, what was inherited, infrastructure setup
Create Parallel (for pipeline Full autonomy)
Create multiple worktrees for concurrent task execution:
- Accept a list of task batches that can run in parallel
- Create one worktree per batch:
feature/<name>-batch-N - Each worktree starts from the same base commit
- For each worktree, generate
.env.localwith unique DB suffix, Redis namespace, and port (base port + batch index). Create worktree-specific databases. - Report: list of worktree paths, their assigned tasks, and infrastructure values
Merge
Merge a feature worktree back to the base branch:
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.
- 3d ago First seen · 127 lines · 0 tokens per session scan C afe972523161
worktree-manager is an agent published in the GitHub repository jstoup111/ai-conductor (5 stars, last pushed 3d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,287 tokens. 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-08-31.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
analyzer
Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.
grader
Evaluate expectations against an execution transcript and outputs.
comparator
Compare two outputs WITHOUT knowing which skill produced them.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.