1# Production systems1# Production systems
2 2
3Use Codex to navigate real codebases, make controlled changes, codify repeatable work, and keep production quality high.
4
3The use cases in this collection are useful when Codex is working in a repo that already has history, tests, owners, and production constraints.5The use cases in this collection are useful when Codex is working in a repo that already has history, tests, owners, and production constraints.
4Codex is particularly good at navigating complex codebases, including sprawling monorepos with lots of different services and dependencies.6Codex is particularly good at navigating complex codebases, including sprawling monorepos with lots of different services and dependencies.
5If you're working on a production system, get familiar with these use cases to understand how Codex can help you.7If you're working on a production system, get familiar with these use cases to understand how Codex can help you.
8 10
9Use Codex to get familiar with a complex codebase, which is especially useful when onboarding onto a repo for production software.11Use Codex to get familiar with a complex codebase, which is especially useful when onboarding onto a repo for production software.
10 12
1113[- https://developers.openai.com/codex/use-cases/codebase-onboarding
12
13### Understand large codebases
14
15Use Codex to map unfamiliar codebases, explain different modules and data flow, and point...
16
17Engineering Analysis](https://developers.openai.com/codex/use-cases/codebase-onboarding)
18 14
19## Modernize the codebase15## Modernize the codebase
20 16
21Leverage Codex to plan tech stack migrations, upgrade your integration to the latest models if applicable, and refactor the codebase to improve readability and maintainability.17Leverage Codex to plan tech stack migrations, upgrade your integration to the latest models if applicable, and refactor the codebase to improve readability and maintainability.
22 18
2319[- https://developers.openai.com/codex/use-cases/api-integration-migrations
2420 - https://developers.openai.com/codex/use-cases/refactor-your-codebase
2521### Upgrade your API integration- https://developers.openai.com/codex/use-cases/code-migrations
26
27Use Codex to update your existing OpenAI API integration to the latest recommended models...
28
29Evaluation Engineering](https://developers.openai.com/codex/use-cases/api-integration-migrations)[
30
31### Refactor your codebase
32
33Use Codex to remove dead code, untangle large files, collapse duplicated logic, and...
34
35Engineering Code](https://developers.openai.com/codex/use-cases/refactor-your-codebase)[
36
37### Run code migrations
38
39Use Codex to map a legacy system to a new stack, land the move in milestones, and validate...
40
41Engineering Code](https://developers.openai.com/codex/use-cases/code-migrations)
42 22
43## Codify repeatable work23## Codify repeatable work
44 24
45Ask Codex to turn repo-specific workflows or checklists into a skill, so that all repo contributors can benefit from a standardized process.25Ask Codex to turn repo-specific workflows or checklists into a skill, so that all repo contributors can benefit from a standardized process.
46 26
4727[- https://developers.openai.com/codex/use-cases/reusable-codex-skills
48 28
4929### Save workflows as skills## Keep documentation current
50 30
5131Turn a working Codex thread, review rules, test commands, release checklists, design...Ask Codex to compare source changes with existing docs, update the smallest useful docs surface, and verify the changes.
52 32
5333Engineering Workflow](https://developers.openai.com/codex/use-cases/reusable-codex-skills)- https://developers.openai.com/codex/use-cases/update-documentation
54 34
55## Maintain system health35## Maintain system health
56 36
57Let Codex pick up feature requests and bug fixes automatically by using it from Slack and connecting it to your alerting, issue tracking, and daily bug sweeps.37Let Codex pick up feature requests and bug fixes automatically by using it from Slack and connecting it to your alerting, issue tracking, and daily bug sweeps.
58 38
5939[- https://developers.openai.com/codex/use-cases/slack-coding-tasks
6040 - https://developers.openai.com/codex/use-cases/automation-bug-triage
61### Kick off coding tasks from Slack
62
63Mention `@Codex` in Slack to start a task tied to the right repo and environment, then...
64
65Integrations Workflow](https://developers.openai.com/codex/use-cases/slack-coding-tasks)[
66
67### Automate bug triage
68
69Ask Codex to check recent alerts, issues, failed checks, logs, and chat reports, tune the...
70
71Automation Quality](https://developers.openai.com/codex/use-cases/automation-bug-triage)
72 41
73## Avoid the review bottleneck42## Avoid the review bottleneck
74 43
75Use Codex to automatically review PRs and run focused QA passes on critical flows, so you can catch issues quickly and ship updates confidently.44Use Codex to automatically review PRs and run focused QA passes on critical flows, so you can catch issues quickly and ship updates confidently.
76 45
7746[- https://developers.openai.com/codex/use-cases/github-code-reviews
7847 - https://developers.openai.com/codex/use-cases/qa-your-app-with-computer-use
79### Review pull requests faster
80
81Use Codex in GitHub to automatically surface regressions, missing tests, and documentation...
82
83Integrations Workflow](https://developers.openai.com/codex/use-cases/github-code-reviews)[
84
85### QA your app with Computer Use
86
87Use Computer Use to exercise key flows, catch issues, and finish with a bug report.
88
89Automation Quality](https://developers.openai.com/codex/use-cases/qa-your-app-with-computer-use)