use-cases/github-code-reviews.md +26 −58
11# Review pull requests faster | Codex use cases---
22 name: Codex code review for GitHub pull requests
33[← All use cases](https://developers.openai.com/codex/use-cases)tagline: Catch regressions and potential issues before human review.
44 summary: Use Codex code review in GitHub to automatically surface regressions,
55Copy page [Export as PDF](https://developers.openai.com/codex/use-cases/github-code-reviews/?export=pdf) missing tests, and documentation issues directly on a pull request.
66 coverImage: /codex/use-cases/gh-pr-use-case.png
77Use Codex in GitHub to automatically surface regressions, missing tests, and documentation issues directly on a pull request.skills:
88 - token: $security-best-practices
99Easy url: https://github.com/openai/skills/tree/main/skills/.curated/security-best-practices
1010 description: Focus the review on risky surfaces such as secrets, auth, and
11115s dependency changes.
1212 bestFor:
13Related links
14
15[Use Codex in GitHub](https://developers.openai.com/codex/integrations/github) [Custom instructions with AGENTS.md](https://developers.openai.com/codex/guides/agents-md)
16
17## Best for
18
19 - Teams that want another review signal before human merge approval13 - Teams that want another review signal before human merge approval
20 - Large codebases for projects in production14 - Large codebases for projects in production
2115 starterPrompt:
2216## Skills & Plugins title: Ask Codex to review a pull request
2317 body: "@codex review for security regressions, missing tests, and risky behavior
2418- [Security Best Practices](https://github.com/openai/skills/tree/main/skills/.curated/security-best-practices) changes."
2519 suggestedModel: cloud
2620 Focus the review on risky surfaces such as secrets, auth, and dependency changes.relatedLinks:
2721 - label: Codex code review in GitHub
2822| Skill | Why use it | url: /codex/integrations/github
2923| --- | --- | - label: Custom instructions with AGENTS.md
3024| [Security Best Practices](https://github.com/openai/skills/tree/main/skills/.curated/security-best-practices) | Focus the review on risky surfaces such as secrets, auth, and dependency changes. | url: /codex/guides/agents-md
3125 ---
32## Starter prompt
33
34@codex review for security regressions, missing tests, and risky behavior changes.
35
36@codex review for security regressions, missing tests, and risky behavior changes.
37 26
38## How to use27## How to use
39 28
4029Start by adding Codex code review to your GitHub organization or repository. See [Use Codex in GitHub](https://developers.openai.com/codex/integrations/github) for more details.Start by adding Codex code review to your GitHub organization or repository.
30See [Codex code review in GitHub](https://developers.openai.com/codex/integrations/github) for more details.
41 31
42You can set up Codex to automatically review every pull request, or you can request a review with `@codex review` in a pull request comment.32You can set up Codex to automatically review every pull request, or you can request a review with `@codex review` in a pull request comment.
43 33
45 35
46This will start a new cloud task that will fix the issue and update the pull request.36This will start a new cloud task that will fix the issue and update the pull request.
47 37
4838## Define additional guidance## Define review guidance
49 39
50To customize what Codex reviews, add or update a top-level `AGENTS.md` with a section like this:40To customize what Codex reviews, add or update a top-level `AGENTS.md` with a section like this:
51 41
59```49```
60 50
61Codex applies guidance from the closest `AGENTS.md` to each changed file. You can place more specific instructions deeper in the tree when particular packages need extra scrutiny.51Codex applies guidance from the closest `AGENTS.md` to each changed file. You can place more specific instructions deeper in the tree when particular packages need extra scrutiny.
62
63## Related use cases
64
65[
66
67### Bring your app to ChatGPT
68
69Build one narrow ChatGPT app outcome end to end: define the tools, scaffold the MCP server...
70
71Integrations Code](https://developers.openai.com/codex/use-cases/chatgpt-apps)[
72
73### Coordinate new-hire onboarding
74
75Use Codex to gather approved new-hire context, stage tracker updates, draft team-by-team...
76
77Integrations Data](https://developers.openai.com/codex/use-cases/new-hire-onboarding)[
78
79### Create a CLI Codex can use
80
81Ask Codex to create a composable CLI it can run from any folder, combine with repo scripts...
82
83Engineering Code](https://developers.openai.com/codex/use-cases/agent-friendly-clis)