← Explore all agents

PULL-REQUEST REVIEW / OpenAI

Codex Rust review

A Codex label prompt for one codex-rs pull request: a short change summary, then a friendly review that pushes mixed changes apart and flags unsafe and crate placement.

“Review this PR and respond with a very concise final message, formatted in Markdown.”

01 / THE REASONING

Why this made the selection.

  • The review has to ask for a one-to-two sentence change summary and a one-to-two sentence review, and it pushes back when one pull request mixes a refactor with a new feature.
  • New code is checked against the crate that owns the job, core is kept small, tests should assert the whole value, and unsafe is refused unless no safe wrapper exists, with std::env::set_var named as a race.

02 / THE REVIEW RECORD

What we actually inspected.

Source review has boundaries.
A clear record is more useful than a “safe” badge.

Material inspected

  • .github/codex/labels/codex-rust-review.md
  • LICENSE
  • Definition reread at the preserved revision; scoped workflow and output-contract review on 2026-10-14

Our findings

  • LICENSE is the Apache License, Version 2.0. The appendix names Copyright 2025 OpenAI.
  • The file has no tool allowlist. Cargo.toml dependency lists are to stay alphabetically sorted and in the right section. Public API belongs near the top of the file.
  • The prompt recommends full-object equality assertions to cover complete returned structures rather than piecemeal field checks.
  • It flags unsafe environment mutation, dependency-section placement and alphabetic ordering, and requests visual evidence for TUI changes.

Not established by this review

  • No pull request was reviewed.
  • The workflow that substitutes the event-path token was not opened.

The review applies to the material and revision named here. A newer upstream release can change its behavior.

03 / PUT IT TO WORK

Use the role in your project.

Upstream setup instructions ↗
  1. Read the label file at the reviewed commit. No install command is published.
  2. Do not treat this prompt as a review of any repository other than codex-rs.

Before you start

  • A local base ref and head ref for one codex-rs pull request
  • A host that can show the label prompt to a reviewer

04 / FOLLOW THE EVIDENCE

The source trail.

Our notes are separate from the original resource.
Check upstream before adopting a new version.

  1. Codex Rust review label ↗Checked

    https://github.com/openai/codex/blob/8f21b7fffbefe77529325fc86c95289371841c6c/.github/codex/labels/codex-rust-review.md

    Supports: summary, whySelected, limitations

  2. Apache-2.0 licence ↗Checked

    https://github.com/openai/codex/blob/8f21b7fffbefe77529325fc86c95289371841c6c/LICENSE

    Supports: Redistribution terms, Copyright 2025 OpenAI

Evidence & Ask