Borrowing it
Nothing to install: this file belongs to Bita71/Agent-Workflow-Kit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Bita71/Agent-Workflow-Kit/master/.claude/commands/apply-worktree.mdgit clone --depth 1 https://github.com/Bita71/Agent-Workflow-KitWrote 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/commands/bita71/agent-workflow-kit/apply-worktree)<a href="https://agentmods.dev/commands/bita71/agent-workflow-kit/apply-worktree"><img src="https://agentmods.dev/badge/commands/bita71/agent-workflow-kit/apply-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/commands/bita71/agent-workflow-kit/apply-worktree"><img src="https://agentmods.dev/badge/commands/bita71/agent-workflow-kit/apply-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.00000 | $0.00102 |
| Opus 5.5 | $0.00000 | $0.00041 |
| Sonnet 5.5 | $0.00000 | $0.00020 |
| Haiku 4.5 | $0.00000 | $0.00010 |
Grade A, and why
apply-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 2mo 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.
What it actually says
apply-worktree
Apply a worktree's diff into the base checkout — only when the user explicitly asks to transfer changes.
Follow the Apply section of docs/ai/recipes/git-worktree.md exactly.
Transfer tracked changes via a temporary commit + cherry-pick --no-commit and
untracked files by copy; leave the result unstaged in the base checkout for the
user to review and commit. After apply, ask whether to delete the worktree.
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.
- 2mo ago First seen · 10 lines · 0 tokens per session scan A 80579b8d7dda
apply-worktree is a command published in the GitHub repository Bita71/Agent-Workflow-Kit (1 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 102 tokens. 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.
Other commands, from other repositories
pull-repos
Pull all repos (parent + marketplace clones + configured project repos).
worktree
Create a git worktree for isolated feature/fix work.
resume-project
Run resume-project now — Now / Blocked / Next. Not a cheat sheet.
commit
Stage, commit, and optionally ship further. Pass an escalation token (push, pr, merge, squash, squash merge) to skip the prompt. With no token, commits then asks how far to ship. Delegates message format to the atomic-git-discipline skill.
create-pr
Create a pull request with proper template discovery and population.
advanced-code-review-context
Advanced Code Review Phase 2: Context Analysis - load previous reviews, PR history, declined items.