/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 hands you the path to open a review session in.
/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.
git worktree addat~/hyprlayer/worktrees/<repo>/<short-name>on a freshreview/<branch>branch, copying.claude/settings.local.jsonif present - Install dependencies and init thoughts. Runs the first matching setup command (
make setup,npm install,cargo build, …) thenhyprlayer thoughts initinside the worktree - Report. Prints the worktree path, the
review/<branch>branch it tracks, and which setup command ran, so you can open a new session there