use-cases/github-code-reviews.md +23 −81
11# Codex code review for GitHub pull requests | 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# Codex code review for GitHub pull requests dependency changes.
1212 bestFor:
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 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 code review 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[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)
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
85```49```
86 50
87Codex 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.
88
89## Related use cases
90
91[
92
93### Deploy an app or website
94
95Use Codex with Build Web Apps and Vercel to turn a repo, screenshot, design, or rough app...
96
97Front-end Integrations](https://developers.openai.com/codex/use-cases/deploy-app-or-website)[
98
99### Bring your app to ChatGPT
100
101Build one narrow ChatGPT app outcome end to end: define the tools, scaffold the MCP server...
102
103Integrations Code](https://developers.openai.com/codex/use-cases/chatgpt-apps)[
104
105### Complete tasks from messages
106
107Use Computer Use to read one Messages thread, complete the task, and draft a reply.
108
109Knowledge Work Integrations](https://developers.openai.com/codex/use-cases/complete-tasks-from-messages)