git-worktree-runner: Instructions file for GitHub Copilot

.github/instructions/testing.instructions.md

git-worktree-runner testing.instructions.md is an instructions file for GitHub Copilot from coderabbitai/git-worktree-runner. It costs 1,063 tokens per session, scanned A, original, Apache-2.0.

Instructions for testing a command-line tool that creates and manages Git worktrees. A Git worktree is an extra working folder connected to the same repository, allowing multiple branches to be used at once.

In plain words
What is it for?
Use them to manually test basic worktree operations, existing and remote branches, sanitized names, multiple worktrees, configuration, and machine-readable output.
Why use it?
They provide repeatable checks for creating, removing, listing, opening, and navigating worktrees, including branch-name and editor or AI integrations.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

This is coderabbitai/git-worktree-runner's own configuration. It tells GitHub Copilot how to work on git-worktree-runner itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything git-worktree-runner configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./scripts/generate-completions.sh --check # committed completions match the generator.

About the project

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.

coderabbitai/git-worktree-runner · 1,808 stars · on GitHub

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/coderabbitai/git-worktree-runner/main/.github/instructions/testing.instructions.md
Clone the repo
git clone --depth 1 https://github.com/coderabbitai/git-worktree-runner

Made for: GitHub Copilot.

Wrote 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.

agentmods badge for git-worktree-runner testing.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/coderabbitai/git-worktree-runner/testing/github.svg)](https://agentmods.dev/instructions/coderabbitai/git-worktree-runner/testing)
Your own site
<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.

agentmods 80×15 button for git-worktree-runner testing.instructions.md

Your own site · 80×15
<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>
Per session 1,063 This file is loaded in full into every session.
When invoked 1,063 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash dc2a230c062f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.github/instructions/testing.instructions.md · 123 lines

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

Read the full file on GitHub · 123 lines

Changes

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.

  1. 1mo ago Changed · +23 lines · +297 tokens per session dc2a230c062f
  2. 2mo ago First seen · 100 lines · 766 tokens per session scan A 81c5a00d8365

Subscribe to this mod's changes

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.

Related

git-worktree-runner testing.instructions.md compared with instructions from other repositories

git-worktree-runner testing.instructions.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
git-worktree-runner testing.instructions.mdcoderabbitai/git-worktree-runnerInstructions file1.8kyesterdayApache-2.0A1,063GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode