This could honestly be life-changing for developers who are always on the go. Imagine being able to create an issue and have Codex start working on it while you're commuting, at the gym, or just away from your computer. No need to fire up your development environment or open your IDE - just pull out your phone, create a GitHub issue, and let Codex handle the heavy lifting. Perfect for those moments when inspiration strikes but your laptop is nowhere to be found!
Codex is OpenAI's coding agent that can read, modify, and run code in a sandboxed cloud environment. It works in the background, handles multiple tasks in parallel, and can even work proactively using its own cloud container.
Getting Started
Before you can use Codex directly inside GitHub, you will need to make sure Codex cloud is set up.
Start by browsing to chatgpt.com/codex, where you can connect your GitHub account so that Codex can work with the code in your repositories, and so that you can create pull requests from its work.
Afterwards, you can go into the Codex settings and enable "Code review" on your repository.
How to Use It
Once everything's installed, using Codex is super simple. Just mention @codex anywhere in your GitHub repo - issues, pull requests, comments, you name it. Here are some examples:
To trigger a review by Codex you'll have to specifically write:
@codex review
Afterwards you'll see Codex react to your comment with ๐ acknowledging that it started your task.
Once completed Codex will leave a regular code review in the PR the same way your team would do.
Giving Codex other tasks
If you mention @codex in a comment with anything other than review Codex will kick off a cloud task instead with the context of your pull request.
@codex Please implement a function to validate email addresses in TypeScript
Codex will respond right there in the GitHub interface, just like any other collaborator would.
One tip for bigger tasks: since there is no interactive back-and-forth in GitHub, put a clear plan in the issue before tagging Codex. Our guide to Codex plan mode covers how to structure that plan so the agent can run unattended.
Can I use it with my ChatGPT Subscription?
Codex is included in your Plus, Pro, Team, Edu, or Enterprise plan. Learn more about what's included. Note that some Enterprise workspaces may require admin setup before you can access Codex.