coderabbitai/git-worktree-runner — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a portable command line tool called gtr that makes Git worktrees easy for normal daily development.

I want to be able to run simple commands like git gtr new my-feature, git gtr list, git gtr rm my-feature, git gtr editor my-feature, git gtr ai my-feature, and git gtr run my-feature npm test. It should create a separate folder per branch, support creating from another ref or the current branch, handle branch names with slashes safely, and let me use custom folder names when branch names are too long.

Please include repo level config so I can set a default editor like Cursor or VS Code and a default AI coding tool like Claude Code or Aider. New worktrees should optionally copy selected config or env files and run post create or remove hooks. Add shell completions for Bash, Zsh, and Fish if practical.

Make it work on macOS, Linux, and Git Bash on Windows using Bash and Git. Include an installer, help text, tests, and clear docs with examples.

Want more depth? Deep Reverse