/local_review
Set up a local review environment for a colleague’s branch using git worktrees. Creates an isolated checkout and launches a new AI session for review.
/local_review feature-branchOr with a PR number:
/local_review 123Process
Section titled “Process”- Parse input — Resolves PR numbers to branch names via
gh pr view - Extract ticket info — Looks for ticket numbers in the branch name
- Create worktree — Sets up an isolated git worktree for the branch
- Install dependencies — Runs the appropriate install command
- Launch session — Opens a new AI session in the worktree directory
What This Adds
Section titled “What This Adds”Reviewing a colleague’s branch typically involves a series of manual steps — resolving the PR to a branch, setting up an isolated checkout, installing dependencies, and opening a fresh session. /local_review automates this entire workflow into a single command, using git worktrees to keep the review completely isolated from your current work.