You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enhanced /review feature for pull request reviews #4018
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 :)
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.
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
Activity
lionelchg commentedon Sep 21, 2025
@dedrisian-oai happy to hear your thoughts on this feature as you are the one that has implemented #3774 :)
rcwmt commentedon Sep 22, 2025
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.
lionelchg commentedon Sep 22, 2025
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
dedrisian-oai commentedon Sep 30, 2025
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?)
etraut-openai commentedon Jan 10, 2026
This feature request hasn't received any upvotes in many months, so closing.