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.
@sgoedecke, thank you for sharing this drop-in, zero-config action - it’s super helpful for learning and experimentation!
Just one concern: in a public repository, anyone can create an issue with
[codex]
in the title, which would trigger the workflow. That leads to unintended use of GitHub Models and Actions minutes, and (who knows?) potentially exposes the repository to prompt injection attacks.Do you have any recommendations on how to restrict who can trigger the codex.yml workflow or otherwise mitigate these risks?