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/briangmilnes/APAS-VERUSnpx agentmods add rules/briangmilnes/apas-verus/merge-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/rules/briangmilnes/apas-verus/merge-worktree)<a href="https://agentmods.dev/rules/briangmilnes/apas-verus/merge-worktree"><img src="https://agentmods.dev/badge/rules/briangmilnes/apas-verus/merge-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/rules/briangmilnes/apas-verus/merge-worktree"><img src="https://agentmods.dev/badge/rules/briangmilnes/apas-verus/merge-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.03346 | $0.03346 |
| Opus 5.5 | $0.01338 | $0.01338 |
| Sonnet 5.5 | $0.00669 | $0.00669 |
| Haiku 4.5 | $0.00335 | $0.00335 |
Grade A, and why
merge-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 — 353 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Merge Worktree
When to use
When merging agent worktree branches into main. Execute phases 0–5 in strict order. Do NOT skip phases. Do NOT reorder phases.
Agent worktree layout
| Worktree | Directory | Branch |
|---|---|---|
| main | ~/projects/APAS-VERUS |
main |
| agent1 | ~/projects/APAS-VERUS-agent1 |
agent1/ready |
| agent2 | ~/projects/APAS-VERUS-agent2 |
agent2/ready |
| agent3 | ~/projects/APAS-VERUS-agent3 |
agent3/ready |
| agent4 | ~/projects/APAS-VERUS-agent4 |
agent4/ready |
Branches not used in merge
Do NOT merge review/prose. That branch is deprecated. It diverged before the
Int→I64/Float→F64 rename and other lib.rs evolution. Merging it overwrites lib.rs
with an outdated version and breaks the build. Only merge agent1/ready, agent2/ready,
agent3/ready, and agent4/ready.
Phase 0: Ensure all worktrees are committed and pushed
All branches must be clean and pushed before merging. Do not proceed if any worktree has uncommitted changes or unpushed commits.
set -e
# 1. Check main
cd ~/projects/APAS-VERUS && git status
cd ~/projects/APAS-VERUS && git log origin/main..HEAD --oneline
# 2. Check agent1
cd ~/projects/APAS-VERUS-agent1 && git status
cd ~/projects/APAS-VERUS-agent1 && git log origin/agent1/ready..HEAD --oneline
# 3. Check agent2
cd ~/projects/APAS-VERUS-agent2 && git status
cd ~/projects/APAS-VERUS-agent2 && git log origin/agent2/ready..HEAD --oneline
# 4. Check agent3
cd ~/projects/APAS-VERUS-agent3 && git status
cd ~/projects/APAS-VERUS-agent3 && git log origin/agent3/ready..HEAD --oneline
# 5. Check agent4
cd ~/projects/APAS-VERUS-agent4 && git status
cd ~/projects/APAS-VERUS-agent4 && git log origin/agent4/ready..HEAD --oneline
git statusmust show "nothing to commit, working tree clean" in each worktree.git log origin/<branch>..HEAD --onelinemust show no output (no unpushed commits).
STOP. Do not proceed to Phase 1 until all five worktrees are committed and pushed.
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 · 353 lines · 3,346 tokens per session scan A 41862a7fa62c
merge-worktree is a cursor rule published in the GitHub repository briangmilnes/APAS-VERUS (10 stars, last pushed 2mo ago), licensed MIT. It adds 3,346 tokens to every session, about $0.0134 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.
merge-worktree compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| merge-worktreebriangmilnes/APAS-VERUS | Cursor rule | 10 | 2mo ago | MIT | A | 3,346 | Cursor |
| changesetsadobe/spectrum-design-data | Cursor rule | 163 | yesterday | Apache-2.0 | A | 0 | Cursor |
| release-policyv0id-user/setmac | Cursor rule | 16 | 12d ago | MIT | A | 319 | Cursor |
| irisils15/pantheon-legacy | Cursor rule | 12 | 20d ago | MIT | A | 43 | Cursor |
| release-notesthatrebeccarae/claude-marketing | Cursor rule | 228 | 6mo ago | MIT | A | 50 | Cursor |
| release-checklistyoreai/relay | Cursor rule | 2 | 3mo ago | Apache-2.0 | A | 215 | Cursor |
| github-cli-guideiHildy/jules-task-queue | Cursor rule | 19 | 9mo ago | MIT | A | 21 | Cursor |