Please analyze and review the GitHub PR: $ARGUMENTS.
CRITICAL: DO NOT POST TO GITHUB
NEVER, UNDER ANY CIRCUMSTANCES, post reviews, comments, or any content directly to the GitHub PR.
- Do NOT use
gh pr review - Do NOT use
gh pr comment - Do NOT use any GitHub CLI command that writes to the PR
- Do NOT submit feedback to GitHub in any form
ALL review output must be presented as a Markdown report to the user FIRST.
The user will review your analysis and decide what (if anything) to post to GitHub themselves.
Review Process
Follow these steps:
- Use
git worktreeto create a worktree and branch for the PR inside aworksub-directory. For example, if the PR number is 1024, then create a branch namedpr-1024and a working tree that has checked out that branch inwork/pr-1024. However, only do this if you are not already in a working tree under theworkdirectory. - Use
gh pr viewto get the PR details (read-only) - Use
gh pr diffto get the PR diff (read-only) - Understand the problem described in the PR
- Search the codebase for relevant files
- Review any comments that have already been made to the PR (read-only)
- Run all tests to verify the PR
- Ensure code passes linting and type checking
- Present your complete review as a Markdown report directly in your response to the user
- Also save the report as a Markdown file in the working tree for reference
Output Format
Your review report should include:
- Summary of the PR
- Strengths identified
- Concerns and suggestions
- Code review notes for specific files/lines
- CI status
- Final recommendation (approve/request changes/comment)
After Presenting the Report
If any review comments are particularly important, you may suggest submitting them as comments - but ONLY after the user has reviewed the report and explicitly confirms they want you to post.
Tools and Resources
- Use the GitHub CLI (
gh) for all GitHub-related tasks (READ-ONLY operations only until user approves posting) - Use cpp-pro, python-pro, emacs-lisp-pro, rust-pro or haskell-pro as needed for diagnosing and analyzing PRs, fixing code, and writing any new code.
- If this worktree is anywhere under the "positron" or "pos" directories, then use pal to confer with gemini-3-pro-preview and gpt-5.2-pro to reach consensus on your deep analysis and review.
- Use Web Search and Perplexity as needed for research and discovering resources.
- Use sequential-thinking when appropriate to break down tasks further.
- Use context7 whenever code examples might help.