Skip to content

Update auto review prompting#31480

Merged
olliem-oai merged 9 commits into
mainfrom
olliem/auto-review/new-prompting
Jul 8, 2026
Merged

Update auto review prompting#31480
olliem-oai merged 9 commits into
mainfrom
olliem/auto-review/new-prompting

Conversation

@olliem-oai

@olliem-oai olliem-oai commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Why

Auto-review performance is weaker because of confusing instructions about sandbox permissions, and because it is given many tools which are irrelevant to it.

What

  • Update the auto review prompt
  • Remove the permissions_instructions developer message
  • Only pass exec_tool and view_image tool to the reviewer

Validation

just fmt
cargo test -p codex-core --lib --quiet

@olliem-oai olliem-oai marked this pull request as ready for review July 7, 2026 21:59
@olliem-oai olliem-oai requested a review from a team as a code owner July 7, 2026 21:59

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d97a0b74a7

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread codex-rs/core/src/tools/spec_plan.rs
Comment thread codex-rs/core/src/tools/spec_plan.rs
@@ -611,6 +611,31 @@ fn code_mode_namespace_descriptions(

#[instrument(level = "trace", skip_all)]
fn add_tool_sources(context: &CoreToolPlanContext<'_>, planned_tools: &mut PlannedTools) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAICT this is the only way to remove the core tools for the guardian

@olliem-oai olliem-oai enabled auto-merge (squash) July 8, 2026 23:06
@olliem-oai olliem-oai merged commit 3eb5653 into main Jul 8, 2026
35 checks passed
@olliem-oai olliem-oai deleted the olliem/auto-review/new-prompting branch July 8, 2026 23:15
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants