Skip to content

Enhanced /review feature for pull request reviews #4018

Closed as not planned
Closed as not planned

Description

@lionelchg

What feature would you like to see?

The review feature in #3774 works well when you have local changes that are accessible through a simple git status --short. I would like to have a review feature that by default would do a git diff main-branch...feature-branch where main-branch could be develop, master or main.

The use case is when you need to checkout on a PR and review it locally this feature could be useful. I have already created a custom prompt to do this inside my own codex /reviewpr:

I want you to review the pull request associated to the current <branch-name> and provide a review of the changes. You should:
- First do a git diff develop...<branch-name> to see the changes (three dots are important)
- Then go through the code changed and highlight any issues you see

To generalize the above one would need to pass the branch you would like to compare your current branch against so something like /reviewpr <main-branch> would make sense to me. In terms of implementation steps I would do something close to #3774:

  • Add a new slash command in codex-rs/tui/src/slash_command.rs named SlashCommand::ReviewPR
  • This command would have a template prompt with a placeholder for the that would be passed in the first argument of the slash command.
  • From what I know of the codebase dynamic arguments can not be passed at the moment in SlashCommand so that feature would need to be implemented

Are you interested in implementing this feature?

I would be interested in implementing this feature :)

Additional information

No response

Activity

  1. added
    enhancement
    on Sep 21, 2025
  2. lionelchg commented on Sep 21, 2025

    @lionelchg
    ContributorAuthor

    @dedrisian-oai happy to hear your thoughts on this feature as you are the one that has implemented #3774 :)

  3. rcwmt commented on Sep 22, 2025

    @rcwmt

    For this you already have the Chatgpt connector and the review functionality where you can tag @codex . It would be rather confusing to have this in the CLI. Github workflow would be better suited.

  4. lionelchg commented on Sep 22, 2025

    @lionelchg
    ContributorAuthor

    Yes I agree on Github but I am thinking about repos on websites other than GitHub such as AzureDevOps, gitlab for which the codex connector is not implemented 😄. Currently working on ADO and it's quite handy to review PRs like this

  5. dedrisian-oai commented on Sep 30, 2025

    @dedrisian-oai
    Contributor

    Have you tried the new commands for /review? You can now compare to a base branch!

    (Unless you want to review some other remote branch?)

  6. added
    code-review
    on Nov 11, 2025
  7. etraut-openai commented on Jan 10, 2026

    @etraut-openai
    Contributor

    This feature request hasn't received any upvotes in many months, so closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    code-reviewenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions