gtr is a command-line tool that manages Git worktrees, which let developers keep multiple branches checked out in separate directories at the same time. It automates worktree creation, branch setup, configuration copying, dependency installation, and workspace preparation for reviews, coding agents, and parallel development. The catalogue contains instructions for using gtr.
Borrowing it
Nothing to install: this file belongs to coderabbitai/git-worktree-runner. 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/coderabbitai/git-worktree-runner/main/.github/instructions/testing.instructions.mdgit clone --depth 1 https://github.com/coderabbitai/git-worktree-runnerWrote 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/instructions/coderabbitai/git-worktree-runner/testing)<a href="https://agentmods.dev/instructions/coderabbitai/git-worktree-runner/testing"><img src="https://agentmods.dev/badge/instructions/coderabbitai/git-worktree-runner/testing/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/instructions/coderabbitai/git-worktree-runner/testing"><img src="https://agentmods.dev/badge/instructions/coderabbitai/git-worktree-runner/testing.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.01063 | $0.01063 |
| Opus 5.5 | $0.00425 | $0.00425 |
| Sonnet 5.5 | $0.00213 | $0.00213 |
| Haiku 4.5 | $0.00106 | $0.00106 |
Grade A, and why
git-worktree-runner testing.instructions.md 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 — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Testing Instructions
Run the automated checks after any change, then the manual matrix for the areas you touched.
Automated Checks (CI gates)
bats tests/ # BATS suite, 29 files; fixtures in tests/test_helper.bash
bats tests/cmd_list.bats # one file; add --filter "name" for one test
shellcheck bin/gtr bin/git-gtr lib/*.sh lib/commands/*.sh adapters/editor/*.sh adapters/ai/*.sh
./scripts/generate-completions.sh --check # committed completions match the generator
These three jobs are exactly what .github/workflows/lint.yml runs on every pull request.
Manual Matrix
# Basic create/remove
./bin/gtr new test-feature # folder test-feature
./bin/gtr rm test-feature # removed
# Branch sanitization
./bin/gtr new feature/auth # folder feature-auth
# Remote branch (if exists)
./bin/gtr new existing-remote-branch # checks out tracking branch
# Local existing branch
./bin/gtr new existing-local-branch # reuses local branch
# New branch creation
./bin/gtr new brand-new-feature # creates branch + worktree
# Machine-readable creation (stdout: path, branch, hook_status records)
./bin/gtr new agent-feature --from HEAD --no-fetch --porcelain
# Force multiple worktrees same branch
./bin/gtr new test-feature --force --name backend # test-feature-backend
# Editor + AI adapters
./bin/gtr config set gtr.editor.default cursor
./bin/gtr editor test-feature
./bin/gtr config set gtr.ai.default claude
./bin/gtr ai test-feature
# Listing
./bin/gtr list # human table
./bin/gtr list --porcelain # path\tbranch\tstatus
# Navigation
cd "$(./bin/gtr go 1)" # repo root
cd "$(./bin/gtr go test-feature)" # worktree path
# Pull request worktrees (needs gh) and PR-based cleanup
./bin/gtr pr 123 # folder from the PR head branch
./bin/gtr clean --merged --dry-run # preview, remove nothing
# .gtrconfig trust (hooks and defaults stay inert until approved)
./bin/gtr trust
# Config commands
./bin/gtr config set gtr.editor.default cursor
./bin/gtr config get gtr.editor.default
./bin/gtr config set gtr.editor.default vscode --global
./bin/gtr config unset gtr.editor.default
# Copy patterns
git config --add gtr.copy.include "**/.env.example"
git config --add gtr.copy.exclude "**/.env"
./bin/gtr new test-copy # copies example, not real env
# Hooks
git config --add gtr.hook.postCreate "echo 'Created!' > /tmp/gtr-test"
./bin/gtr new test-hooks # /tmp/gtr-test exists
git config --add gtr.hook.postRemove "echo 'Removed!' > /tmp/gtr-removed"
./bin/gtr rm test-hooks # /tmp/gtr-removed exists
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 · +23 lines · +297 tokens per session dc2a230c062f
- 2mo ago First seen · 100 lines · 766 tokens per session scan A 81c5a00d8365
git-worktree-runner testing.instructions.md is an instructions file published in the GitHub repository coderabbitai/git-worktree-runner (1,808 stars, last pushed yesterday), licensed Apache-2.0. It adds 1,063 tokens to every session, about $0.0043 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-30.
git-worktree-runner testing.instructions.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| git-worktree-runner testing.instructions.mdcoderabbitai/git-worktree-runner | Instructions file | 1.8k | yesterday | Apache-2.0 | A | 1,063 | GitHub Copilot |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |