| name | codex |
| description | Delegate coding tasks to OpenAI Codex CLI agent for one-shot tasks, background operations, and batch processing. |
| metadata | {"version":"1.0.0","author":"erebus","tags":["autonomous-agents","codex","openai","coding"]} |
OpenAI Codex Agent Delegation
Use this skill to delegate tasks to the Codex CLI agent.
When to Use
- User needs one-shot coding tasks executed
- User wants background long-running operations
- User needs batch processing of multiple issues
- Tasks that are well-defined and self-contained
Usage
codex run "Add input validation to all API endpoints"
codex run --background "Migrate database schema to v2"
for issue in $(gh issue list --label "good-first-issue" -q '.[].number'); do
codex run "Fix issue #$issue"
done
Process
- Define: Write a clear task description
- Execute: Run codex with the task
- Monitor: Check progress for background tasks
- Review: Verify the output
- Commit: Accept or reject changes