use-cases/github-code-reviews.md +26 −50
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,
55Use Codex in GitHub to automatically surface regressions, missing tests, and documentation issues directly on a pull request. missing tests, and documentation issues directly on a pull request.
66 coverImage: /codex/use-cases/gh-pr-use-case.png
77Easyskills:
88 - token: $security-best-practices
995s 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
1111Related links dependency changes.
1212 bestFor:
13[Use Codex in GitHub](https://developers.openai.com/codex/integrations/github) [Custom instructions with AGENTS.md](https://developers.openai.com/codex/guides/agents-md)
14
15## Best for
16
17 - Teams that want another review signal before human merge approval13 - Teams that want another review signal before human merge approval
18 - Large codebases for projects in production14 - Large codebases for projects in production
1915 starterPrompt:
2016## Skills & Plugins title: Ask Codex to review a pull request
2117 body: "@codex review for security regressions, missing tests, and risky behavior
2218- [Security Best Practices](https://github.com/openai/skills/tree/main/skills/.curated/security-best-practices) changes."
2319 suggestedModel: cloud
2420 Focus the review on risky surfaces such as secrets, auth, and dependency changes.relatedLinks:
2521 - label: Codex code review in GitHub
2622## Starter prompt url: /codex/integrations/github
2723 - label: Custom instructions with AGENTS.md
2824@codex review for security regressions, missing tests, and risky behavior changes. url: /codex/guides/agents-md
25---
29 26
30## How to use27## How to use
31 28
3229Start 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.
33 31
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.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.
35 33
37 35
38This 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.
39 37
4038## Define additional guidance## Define review guidance
41 39
42To 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:
43 41
51```49```
52 50
53Codex 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.
54
55## Related use cases
56
57[
58
59### Bring your app to ChatGPT
60
61Build one narrow ChatGPT app outcome end to end: define the tools, scaffold the MCP server...
62
63Integrations Code](https://developers.openai.com/codex/use-cases/chatgpt-apps)[
64
65### Generate slide decks
66
67Use Codex to update existing presentations or build new decks by editing slides directly...
68
69Data Workflow](https://developers.openai.com/codex/use-cases/generate-slide-decks)[
70
71### Kick off coding tasks from Slack
72
73Mention `@Codex` in Slack to start a task tied to the right repo and environment, then...
74
75Integrations Workflow](https://developers.openai.com/codex/use-cases/slack-coding-tasks)