use-cases/github-code-reviews.md +26 −83
11# Review pull requests faster | Codex use cases---
22 name: Codex code review for GitHub pull requests
33Codex use casestagline: Catch regressions and potential issues before human review.
44 summary: Use Codex code review in GitHub to automatically surface regressions,
55 missing tests, and documentation issues directly on a pull request.
66 coverImage: /codex/use-cases/gh-pr-use-case.png
77skills:
88 - token: $security-best-practices
99Codex use case 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
1111# Review pull requests faster dependency changes.
1212 bestFor:
13Catch regressions and potential issues before human review.
14
15Difficulty **Easy**
16
17Time horizon **5s**
18
19Use Codex in GitHub to automatically surface regressions, missing tests, and documentation issues directly on a pull request.
20
21## Best for
22
23 - Teams that want another review signal before human merge approval13 - Teams that want another review signal before human merge approval
24 - Large codebases for projects in production14 - Large codebases for projects in production
2515 starterPrompt:
2616# Contents title: Ask Codex to review a pull request
2717 body: "@codex review for security regressions, missing tests, and risky behavior
2818[← All use cases](https://developers.openai.com/codex/use-cases) changes."
2919 suggestedModel: cloud
3020Copy page [Export as PDF](https://developers.openai.com/codex/use-cases/github-code-reviews/?export=pdf)relatedLinks:
3121 - label: Codex code review in GitHub
3222Use Codex in GitHub to automatically surface regressions, missing tests, and documentation issues directly on a pull request. url: /codex/integrations/github
3323 - label: Custom instructions with AGENTS.md
3424Easy url: /codex/guides/agents-md
3525 ---
365s
37
38Related links
39
40[Use Codex in GitHub](https://developers.openai.com/codex/integrations/github) [Custom instructions with AGENTS.md](https://developers.openai.com/codex/guides/agents-md)
41
42## Best for
43
44 - Teams that want another review signal before human merge approval
45 - Large codebases for projects in production
46
47## Skills & Plugins
48
49- [Security Best Practices](https://github.com/openai/skills/tree/main/skills/.curated/security-best-practices)
50
51 Focus the review on risky surfaces such as secrets, auth, and dependency changes.
52
53| Skill | Why use it |
54| --- | --- |
55| [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. |
56
57## Starter prompt
58
59@codex review for security regressions, missing tests, and risky behavior changes.
60
61@codex review for security regressions, missing tests, and risky behavior changes.
62 26
63## How to use27## How to use
64 28
6529Start 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.
66 31
67You 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.
68 33
70 35
71This 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.
72 37
7338## Define additional guidance## Define review guidance
74 39
75To 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:
76 41
84```49```
85 50
86Codex 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.
87
88## Related use cases
89
90[
91
92### Deploy an app or website
93
94Use Codex with Build Web Apps and Vercel to turn a repo, screenshot, design, or rough app...
95
96Front-end Integrations](https://developers.openai.com/codex/use-cases/deploy-app-or-website)[
97
98### Bring your app to ChatGPT
99
100Build one narrow ChatGPT app outcome end to end: define the tools, scaffold the MCP server...
101
102Integrations Code](https://developers.openai.com/codex/use-cases/chatgpt-apps)[
103
104### Complete tasks from messages
105
106Use Computer Use to read one Messages thread, complete the task, and draft a reply.
107
108Knowledge Work Integrations](https://developers.openai.com/codex/use-cases/complete-tasks-from-messages)