use-cases/github-code-reviews.md +49 −15
11# Review pull requests faster | Codex use cases# Codex code review for GitHub pull requests | Codex use cases
2
3Codex use cases
4
5
6
7
8
9Codex use case
10
11# Codex code review for GitHub pull requests
12
13Catch regressions and potential issues before human review.
14
15Difficulty **Easy**
16
17Time horizon **5s**
18
19Use Codex code review 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 approval
24 - Large codebases for projects in production
25
26# Contents
2 27
3[← All use cases](https://developers.openai.com/codex/use-cases)28[← All use cases](https://developers.openai.com/codex/use-cases)
4 29
530Use Codex in GitHub to automatically surface regressions, missing tests, and documentation issues directly on a pull request.Copy page [Export as PDF](https://developers.openai.com/codex/use-cases/github-code-reviews/?export=pdf)
31
32Use Codex code review in GitHub to automatically surface regressions, missing tests, and documentation issues directly on a pull request.
6 33
7Easy34Easy
8 35
10 37
11Related links38Related links
12 39
1340[Use Codex in GitHub](https://developers.openai.com/codex/integrations/github) [Custom instructions with AGENTS.md](https://developers.openai.com/codex/guides/agents-md)[Codex code review in GitHub](https://developers.openai.com/codex/integrations/github) [Custom instructions with AGENTS.md](https://developers.openai.com/codex/guides/agents-md)
14 41
15## Best for42## Best for
16 43
23 50
24 Focus the review on risky surfaces such as secrets, auth, and dependency changes.51 Focus the review on risky surfaces such as secrets, auth, and dependency changes.
25 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
26## Starter prompt57## Starter prompt
27 58
28@codex review for security regressions, missing tests, and risky behavior changes.59@codex review for security regressions, missing tests, and risky behavior changes.
29 60
61@codex review for security regressions, missing tests, and risky behavior changes.
62
30## How to use63## How to use
31 64
3265Start 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.
66See [Codex code review in GitHub](https://developers.openai.com/codex/integrations/github) for more details.
33 67
34You can set up Codex to automatically review every pull request, or you can request a review with `@codex review` in a pull request comment.68You can set up Codex to automatically review every pull request, or you can request a review with `@codex review` in a pull request comment.
35 69
37 71
38This will start a new cloud task that will fix the issue and update the pull request.72This will start a new cloud task that will fix the issue and update the pull request.
39 73
4074## Define additional guidance## Define review guidance
41 75
42To customize what Codex reviews, add or update a top-level `AGENTS.md` with a section like this:76To customize what Codex reviews, add or update a top-level `AGENTS.md` with a section like this:
43 77
54 88
55## Related use cases89## Related use cases
56 90
5791[[
58 92
5993### Bring your app to ChatGPT### Deploy an app or website
60 94
6195Build one narrow ChatGPT app outcome end to end: define the tools, scaffold the MCP server...Use Codex with Build Web Apps and Vercel to turn a repo, screenshot, design, or rough app...
62 96
6397Integrations Code](https://developers.openai.com/codex/use-cases/chatgpt-apps)[Front-end Integrations](https://developers.openai.com/codex/use-cases/deploy-app-or-website)[
64 98
6599### Generate slide decks### Bring your app to ChatGPT
66 100
67101Use Codex to update existing presentations or build new decks by editing slides directly...Build one narrow ChatGPT app outcome end to end: define the tools, scaffold the MCP server...
68 102
69103Data Workflow](https://developers.openai.com/codex/use-cases/generate-slide-decks)[Integrations Code](https://developers.openai.com/codex/use-cases/chatgpt-apps)[
70 104
71105### Kick off coding tasks from Slack### Complete tasks from messages
72 106
73107Mention `@Codex` in Slack to start a task tied to the right repo and environment, then...Use Computer Use to read one Messages thread, complete the task, and draft a reply.
74 108
75109Integrations Workflow](https://developers.openai.com/codex/use-cases/slack-coding-tasks)Knowledge Work Integrations](https://developers.openai.com/codex/use-cases/complete-tasks-from-messages)