Feature Request: PR Review Mode (read-only code review without modifications)

Resolved 💬 3 comments Opened Dec 27, 2025 by x-id-adm Closed Dec 31, 2025

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:

  1. Created a separate branch (claude/review-pr-265-*)
  2. Merged the PR into that branch
  3. Made its own modifications
  4. Created a parallel PR (#266)
  5. Caused confusion about which PR to approve
  6. 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:

  1. Accepts a GitHub PR URL or branch name
  2. Fetches and analyzes the diff (read-only)
  3. 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_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗