Skip to content

/local_review

Set up a worktree to review a branch

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