aashahin/claude-codex-delegate/codex-delegate
Claude Code and agent skill by aashahin/claude-codex-delegate
- community
Checking that the SKILL.md file is still in the repository.
Delegate coding or analysis work to an OpenAI model through the Codex CLI (GPT-6 Sol, Astra, Luna, GPT-5.6 Terra… anything `list_models` shows) while Claude stays the orchestrator. Use when the user says things like "use sol 6 to implement X", "have codex do it", "delegate this to gpt-6", "let sol write it and you review", "get a second opinion from codex", or asks to run/compare several Codex models, including from subagents and workflows.
Install
npx vskill@latest install aashahin/claude-codex-delegate/codex-delegateSKILL.md
The same SKILL.md was published earlier as aashahin/claude-codex-delegate/codex-delegate.
Delegating to Codex models
The codex MCP server runs tasks with codex exec in the user's project. The delegated model has Codex's own tools (shell, apply_patch), so it can implement code, not just answer. You stay the orchestrator: you plan, write the brief, and review what comes back.
Tools
| Tool | Use | |
|---|---|---|
list_models (filter?) | See model slugs and the reasoning efforts each supports. | |
delegate | Run a task and wait for the result. | |
delegate_async → task_result (wait_s) | Long tasks, or several runs in parallel. Also task_list, task_cancel. | |
list_sessions | Find a session_id to continue. |
In a plugin install the tools are named like mcp__plugin_codex-delegate_codex__delegate. With a manual install they are mcp__codex__delegate.
Picking the model and effort
- Pass what the user said:
model: "sol 6","gpt 6 luna","5.6 terra". The server matches loose
names against the account's model list. A name without a version picks the newest family ("sol" → gpt-6.1-sol). "gpt 6" alone is ambiguous: pick from the candidates, or ask the user if their intent is unclear.
- Reasoning effort:
effort: "high", or a suffix,"sol 6#high". Levels are low, medium, high, xhigh
and max, plus ultra on some models. If the user doesn't ask for one, omit it and Codex's configured default applies. Use low for trivial, mechanical edits.
- If the user names no model, omit
model. Codex then uses the model from~/.codex/config.toml(list_modelsmarks it(default)). - Speed:
fast: trueuses the Fast (priority) tier, which is quicker but uses more of the user's allowance.fast: falseforces the normal tier. Omit it to inheritservice_tierfrom config.toml. Use it when the user asks for fast or for normal speed. - On a follow-up with
session_id, omitmodelto keep the session's model.
Writing the brief (prompt)
The delegated model cannot see this conversation. Write a self-contained brief:
- Goal: what to build or fix, and why.
- Context: the relevant files and paths, the existing patterns to follow, and the commands to build and test.
- Constraints: what not to touch, and the style to follow. Tell it not to commit unless you want a commit.
- Done when: the acceptance criteria, e.g. "
bun testpasses" or "prints X". - Report: ask for a short summary of the changes and anything left undone.
Keep cwd at the project root unless the task is scoped to a subdirectory. Use images for screenshots or mockups.
Sandbox
sandbox | Can do | |
|---|---|---|
workspace-write (default) | Edit files under cwd and run commands. No network. | |
read-only (or auto: false) | Read and run read-only commands. Use it for reviews, questions and second opinions. | |
danger-full-access | Anything, including installing packages and using the network. Use it only when the task needs that, and say so in your reply. |
If a run fails because it couldn't install a dependency or reach the network, install it yourself or re-run with danger-full-access.
After it returns: review, don't trust blindly
The result reports status, session_id, token usage, the tools used, files edited by codex (every file it patched) and git changes (the new porcelain entries).
- Read the diff (
git diff, or read the new files) for the files it lists. - Run the tests or build yourself.
- To fix something, either continue the same session with
delegateandsession_id, giving
precise feedback, or fix it yourself if that's quicker.
- Tell the user which model did what, and your verdict on it.
Parallel and multi-model patterns
- Fan out: call
delegate_asynconce per subtask, thentask_resultwithwait_sfor each.
Parallel tasks that edit files must use separate git worktrees (git worktree add) or non-overlapping files, because they share the directory.
- Compare: give the same brief to 2–3 models (e.g. sol 6 and 5.6 terra) in separate worktrees, then
diff the results and pick or merge the best one.
- Second opinion:
sandbox: "read-only"with a prompt like "review this diff for bugs: …". - Subagents / workflows: the
codex-workeragent wraps this loop. Spawn it with the model and task
in its prompt, e.g. "Use codex model sol 6 to add tests for src/foo.ts".
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/codex-delegate/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aashahin/claude-codex-delegate/codex-delegate)