Skip to content

kew review

Gather PR review comments and dispatch Claude Code to address them.

Usage: kew review [OPTIONS] PR_NUMBER

Arguments:
  PR_NUMBER       PR number to review (required)

Options:
  --author TEXT    Filter comments by author
  --dry-run       Show comments without dispatching

kew review demo

What it does:

  1. Fetches PR metadata and links the originating issue
  2. Collects review comments, inline suggestions, and issue comments
  3. Filters out resolved threads (via GraphQL) and bot comments
  4. Builds a structured review prompt from the review.md.j2 template
  5. Checks out the existing PR branch into a worktree
  6. Dispatches Claude Code to address each comment

Examples:

# Preview review comments without dispatching
kew review 42 --dry-run

# Dispatch agent to address all review comments
kew review 42

# Only address comments from a specific reviewer
kew review 42 --author octocat