Feature Request: PR Review Mode (read-only code review without modifications)
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
I'd like to request a dedicated "PR Review Mode" for Claude Code, similar to what OpenAI Codex offers.
The Problem
Today I asked Claude Code to "review PR #265" in my repository. Instead of just analyzing the code and providing feedback, Claude:
- Created a separate branch (claude/review-pr-265-*)
- Merged the PR into that branch
- Made its own modifications
- Created a parallel PR (#266)
- Caused confusion about which PR to approve
- Missed important changes from the original PR (field renames) because it did the diff incorrectly
What should have been a simple code review turned into a messy situation with multiple branches and PRs that complicated my workflow.
Expected Behavior
When I ask to "review a PR", I expect:
- Read the PR diff (via GitHub URL or branch comparison)
- Analyze the code changes
- Return text feedback only (approve, request changes, comments)
- NO file modifications, NO branch creation, NO commits
Proposed Solution
Suggested Solution
Add a "PR Review Mode" or a /review-pr command that:
- Accepts a GitHub PR URL or branch name
- Fetches and analyzes the diff (read-only)
- Returns structured feedback like:
- Summary of changes
- Potential issues found
- Suggestions for improvement
- Approval recommendation
This could be implemented as a read-only mode where write tools (Edit, Write, Bash with git commands) are temporarily disabled.
Why This Matters
Code review is one of the most common developer workflows. Having an AI assistant that can review PRs without accidentally modifying code would be extremely valuable. The current behavior of interpreting "review" as "modify and improve" creates more work instead of helping.
Environment:
- Claude Code WEB
- Model: claude-opus-4-5-20250101
Alternative Solutions
_No response_
Priority
Critical - Blocking my work
Feature Category
CLI commands and flags
Use Case Example
_No response_
Additional Context
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗