Skip to content

/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-branch

Or with a PR number:

/local_review 123
  1. Parse input — Resolves PR numbers to branch names via gh pr view
  2. Extract ticket info — Looks for ticket numbers in the branch name
  3. Create worktree — Sets up an isolated git worktree for the branch
  4. Install dependencies — Runs the appropriate install command
  5. Launch session — Opens a new AI session in the worktree directory

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.