codex-delegate
Skill by amElnagdy
Delegates a coding task to the OpenAI Codex CLI as a background implementer, then has the assistant review the diff and commit it. Built for developers who want to review and land Codex's work themselves.
Install codex-delegate
Built from the published package, never by AI.
git clone --depth 1 https://github.com/amElnagdy/delegate-skills /tmp/delegate-skills && mkdir -p ~/.claude/skills && cp -r /tmp/delegate-skills/skills/codex-delegate ~/.claude/skills/codex-delegateRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/amElnagdy/delegate-skills /tmp/delegate-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/delegate-skills/skills/codex-delegate ~/.gemini/antigravity-cli/skills/codex-delegateAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
codex-delegate is an agent skill that hands a bounded coding task to the OpenAI Codex CLI, which acts as a background implementer. The assistant acts as the orchestrator. It writes a brief, dispatches the task through a bundled helper script called relay.mjs, waits for completion, and reads a structured result.json file. The helper defaults to a write-capable sandbox and stores its artifacts in a temp directory.
The orchestrator then re-runs the project's gate commands, reviews the diff against the brief, and commits verified work itself. The helper never commits. The skill also supports read-only runs for second opinions and queues of sequential tasks. It is aimed at developers who want Codex to write code while they review and commit it.
Written from the project's SKILL.md and checked against it.
What it can do
- Write a briefStructures a task for Codex with the goal, current state, changes, and a report contract.
- Dispatch to CodexRuns codex exec through the bundled relay.mjs helper and captures the run.
- Structured resultsWrites result.json with status, touched files, and Codex's final report.
- Session resumeContinues the exact Codex session with a delta brief using the thread id.
- Read-only runsDispatches Codex in read-only mode for review or diagnosis without edits.
- Task queuesRuns a sequence of coding tasks and includes an end-of-run coherence check.
- Review checklistRe-runs project gates and checks the diff against the brief before landing.
What you need
- OpenAI Codex CLI installed and authenticated (codex login)
- Node 18+
- git
- A shell that can run bash or zsh (macOS, Linux, or Git Bash or WSL on Windows)
Try asking
- Have Codex implement the pagination fix in the users API
- Delegate this refactor to Codex and review the diff with me
- Run this queue of coding tasks through Codex
Good to know
- Designed for and run on Claude Code. Other orchestrators are not yet proven.
- The helper never commits. The orchestrating agent makes the commit.
- Codex's sandbox cannot reliably write .git, which varies by version, OS, and path.
- Not meant for tasks small enough to do inline.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/codex-delegate/SKILL.md, skills/codex-delegate/scripts/relay.mjs. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md10 KB -
references/dispatch-and-poll.md18 KB -
references/multi-task-queues.md4 KB -
references/review-and-land.md8 KB -
references/writing-the-brief.md6 KB
Show all 6 files
-
scripts/relay.mjs39 KB
Alternatives to codex-delegate
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
codex-delegate: common questions
Does it commit the code Codex writes?
No. The helper never commits. The orchestrating agent reviews the diff, re-runs the project's gates, and commits only verified work.
Which assistants does it work with?
It is designed for and run on Claude Code. The source says other orchestrators are designed-for but not yet proven.
When should I not use it?
Skip it for tasks small enough to do inline, or when you want the code written directly without delegating.
How do I install codex-delegate?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is codex-delegate free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is codex-delegate safe to use?
It scores 87 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to codex-delegate?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
