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 instructions/coderabbitai/git-worktree-runner/copilot-instructionsgit clone --depth 1 https://github.com/coderabbitai/git-worktree-runnerWhat 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.01250 | $0.01250 |
| Opus 5 | $0.00625 | $0.00625 |
| Sonnet 5 | $0.00250 | $0.00250 |
| Haiku 4.5 | $0.00125 | $0.00125 |
Grade A, and why
git-worktree-runner copilot-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 yesterday.
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 — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Copilot Instructions
Architecture & Flow
bin/gtr (961 lines) dispatches to cmd_* functions (case block lines 36‑77). Libraries sourced at startup:
lib/core.sh- create/list/remove/resolve worktreeslib/config.sh- git config wrapper with precedencelib/ui.sh- log_error/log_info/promptslib/copy.sh- glob pattern file copyinglib/hooks.sh- postCreate/postRemove executionlib/platform.sh- OS detection + GUI helpers
Adapters in adapters/{editor,ai} each implement two functions with strict contracts (see below).
Key Concepts
- Special ID
1= main repo (usable inopen,go,ai). - Folder naming = sanitized branch (
feature/auth→feature-auth). - Base dir resolution (
resolve_base_dir): configgtr.worktrees.dir→ env → default<repo>-worktrees; relative paths resolved from repo root; tilde expanded; warns if inside repo unignored. - Target resolution (
resolve_target): ID1→ current → sanitized path → scan directories; returns TSV:is_main\tpath\tbranch. - Config precedence (
cfg_default): git config (local→global→system) → env → fallback. Multi-value keys merged & deduped (cfg_get_all).
Adapter Contract
Editor: editor_can_open, editor_open <path>; AI: ai_can_start, ai_start <path> [args...]. Must check tool availability (command -v), emit errors via log_error, never silently fail, and avoid side effects outside the target directory (AI uses subshell (cd ...)). Update README, help (cmd_help), completions.
Manual Testing (Essential Subset)
./bin/gtr new feature/x # creates folder feature-x
./bin/gtr open feature/x # loads configured editor
./bin/gtr ai feature/x # starts configured AI tool
./bin/gtr list # lists main + worktrees
./bin/gtr rm feature/x # removes worktree
./bin/gtr go feature/x # prints path (use in cd)
Advanced: --force --name backend (same branch multi-worktree); git config --add gtr.copy.include "**/.env.example"; hooks: git config --add gtr.hook.postCreate "npm install".
Full matrix: see .github/instructions/testing.instructions.md.
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.
- yesterday First seen · 84 lines · 1,250 tokens per session scan A c0ab9e097faf
git-worktree-runner copilot-instructions.md is an instructions file published in the GitHub repository coderabbitai/git-worktree-runner (1,754 stars, last pushed 4d ago), licensed Apache-2.0. It adds 1,250 tokens to every session, about $0.0063 per session on Opus 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.
Other instructions, from other repositories
mulmoterminal CLAUDE.md
Instructions for receptron/mulmoterminal, covering claude.md — mulmoterminal, stack & package manager, run after changes, import a component at module scope, never inside a test and no emojis.
operator-oss CLAUDE.md
Instructions for iishyfishyy/operator-oss, covering claude.md, commands, architecture, the turn lifecycle (core flow) and key modules (by responsibility).
vibe-tree CLAUDE.md
Instructions for sahithvibudhi/vibe-tree, covering claude instructions, github actions failed build logs, electron app startup issues, launch with project and pull requests.
CommandMate CLAUDE.md
Instructions for Kewton/CommandMate, covering claude.md, ⚠️ 重要: モジュール詳細を claude.md に書かないこと, プロジェクト概要, 基本情報 and 技術スタック.
vscode-ext-tmux-worktree AGENTS.md
Instructions for kargnas/vscode-ext-tmux-worktree, covering ai agent guidelines, instruction, tested vs code, 1. codebase understanding and project structure.
CommandMate AGENTS.md
Instructions for Kewton/CommandMate, covering agents.md, scope, project context, working principles and coding rules.