A portable Git worktree CLI for PR reviews, coding agents, and repeatable per-branch setup
open sourceApache-2.0self-hostablefree
gtr is a Bash-based git worktree manager from CodeRabbit. It automates per-branch worktree creation, copying of config files, dependency installation and workspace setup, and opens worktrees in your editor or AI tool, so you can review PRs or run several agents in parallel without stashing.
Problems it solves
- reviewing a PR means stopping my current work and stashing
- copy my .env and config files into every new worktree automatically
- install dependencies automatically when I create a worktree
- open a branch in its own folder in my editor with one command
- run AI agents on different branches in parallel
- run tests on main while I keep working on a feature branch
- portable worktree helper that only needs bash and git
- repeatable setup for each branch checkout
Features
- worktree creation per branch
- config file copying
- dependency install hooks
- editor and AI tool launch
- shell completions
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what gtr (Git Worktree Runner) does.
- Worktrunk A CLI for Git worktree management, designed for parallel AI agent workflows
- git twig Git worktrees for agents. More branches, less disk.
- GitButler Version control for your agents
- CCManager Coding Agent Session Manager for Claude Code / Gemini CLI / Codex CLI / Cursor Agent / Copilot CLI / Cline CLI / OpenCode / Kimi CLI
- PwrGit Git for people working alongside an agent
