This is a drop-in, zero-config Actions harness for OpenAI's Codex agent. It uses GitHub Models for inference, so you don't need to set up any secrets - just copy-pasting the action into your repo should work as-is.
You may need to go into your settings and check the "allow Actions to open PRs" checkbox.
To use it, open an issue in your repo with [codex]
in the issue name.
Note: I've updated this to work for the latest version of Codex (the Rust one). If you're using the Python one, you'll have to go to a previous version of this Gist.
@naXa777 Thank you for the feedback! I've added a step to install ripgrep.
About the 413 error - unfortunately the free tier of GitHub Models doesn't have a large enough context window to run Codex (it's 8k tokens max). There's no way around that without going into your GitHub settings for Models and turning on paid usage.
If you did want to lock this down in a public repository, the easiest way would be to have some kind of allowlist in the workflow body, e.g.:
You could also use the API to check for org membership if you wanted to get more sophisticated with it.