Download

slash command · Git & Code Review

Create Worktrees

by davila7

This command fetches all open pull requests using GitHub CLI, then creates a git worktree for each PR's branch in the ./tree/ directory.

Calyban is a free desktop app. It checks Create Worktrees for red flags before installing, lets you choose the agent and folder, and undoes it in one click.

Install Create Worktrees manually

Prefer the terminal? This does the same thing as Calyban's install.

Claude Code

mkdir -p ~/.claude/commands
curl -fsSL https://raw.githubusercontent.com/davila7/claude-code-templates/7c6a25725518f5f3d975adfc5d901006e267fbd8/cli-tool/components/commands/git-workflow/create-worktrees.md -o ~/.claude/commands/create-worktrees.md

Codex

mkdir -p ~/.codex/prompts
curl -fsSL https://raw.githubusercontent.com/davila7/claude-code-templates/7c6a25725518f5f3d975adfc5d901006e267fbd8/cli-tool/components/commands/git-workflow/create-worktrees.md -o ~/.codex/prompts/create-worktrees.md

Start a new Claude Code & Codex session afterwards so it picks up the change.

Similar slash commands

All slash commands →

Guides

Listed in the public Calyban catalog. Create Worktrees is made by davila7, not Calyban. Inclusion isn't an endorsement and safety checks aren't a guarantee.