x9-codex-delegation

x9-codex-delegation is a skill for Claude Code, Codex from xonika9/agent-skills. It costs 136 tokens per session (923 once invoked), scanned B, original, MIT.

A guide for handing substantial, well-defined work from Claude Code to Codex, another coding-agent environment.

In plain words
What is it for?
Delegating code changes, migrations, reviews, repository analysis, or browser tasks from Claude Code to Codex.
Why use it?
It helps choose an appropriate delegation route for implementation, analysis, or logged-in browser work while keeping the task and permissions clear.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also runs codex exec. Also seen: mentions subagents; mentions Claude Code; mentions Codex.

Part of the x9-agent-skills plugin — 18 skills shipped together

Good fit Delegating code changes, migrations, reviews, repository analysis, or browser tasks from Claude Code to Codex.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xonika9/agent-skills/x9-codex-delegation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add xonika9/agent-skills --skill x9-codex-delegation
Clone the repo
git clone --depth 1 https://github.com/xonika9/agent-skills

Made for: Claude Code, Codex.

Or install x9-agent-skills, the plugin that ships this one along with the rest of its 18 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for x9-codex-delegation

README.md
[![agentmods](https://agentmods.dev/badge/skills/xonika9/agent-skills/x9-codex-delegation/github.svg)](https://agentmods.dev/skills/xonika9/agent-skills/x9-codex-delegation)
Your own site
<a href="https://agentmods.dev/skills/xonika9/agent-skills/x9-codex-delegation"><img src="https://agentmods.dev/badge/skills/xonika9/agent-skills/x9-codex-delegation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for x9-codex-delegation

Your own site · 80×15
<a href="https://agentmods.dev/skills/xonika9/agent-skills/x9-codex-delegation"><img src="https://agentmods.dev/badge/skills/xonika9/agent-skills/x9-codex-delegation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 136 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 923 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00136 $0.00923
Opus 5 $0.00068 $0.00462
Sonnet 5 $0.00027 $0.00185
Haiku 4.5 $0.00014 $0.00092

Measured 10d ago against content hash c2bb062fd600, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade B, and why

x9-codex-delegation scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

Read [references/codex-cli.md](references/codex-cli.md) and use its one-shot or resume recipe after checking the current command help. That reference owns exact flags and known differences between `exec` and `resume`; th
skills/x9-codex-delegation/SKILL.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Delegate from Claude Code to Codex

Use x9-browser-session for browser routing. Use the plugin route when it is available; the raw CLI remains a fallback for an explicitly requested delegation.

The onboarding declaration is the machine-readable onboarding contract.

When Claude and OpenAI/Codex are backed by separate subscriptions or usage pools, delegation can distribute substantial work instead of exhausting only the Claude allowance. Treat that as a user-specific routing benefit, not a promise of lower cost: API billing, plan limits, and available runtimes vary.

Choose the route

  • Implementation or fixes: use the installed codex:codex-rescue subagent when available. It is write-capable; the active project's local-change authority applies.
  • Read-only review or one-shot analysis: use the plugin route when callable, otherwise raw codex exec.
  • Logged-in browsing: delegate the whole bounded browse-and-return task and follow the browser adapter. Shell read-only mode does not change the separately approved browser authority.
  • Plugin commands marked user-only: report the exact command for the user; do not pretend it was invoked programmatically.

Raw fallback

Read references/codex-cli.md and use its one-shot or resume recipe after checking the current command help. That reference owns exact flags and known differences between exec and resume; this skill owns the delegation contract, not the volatile command surface. Prefer the model configured in ~/.codex/config.toml unless the user explicitly chooses another.

Brief contract

Pass a self-contained outcome, relevant files/sources, constraints, authority, deliverable, and completion bar. Add these failure rules when tools or current facts are load-bearing:

  • Report failed or cancelled calls exactly; do not substitute memory.
  • Surface an unresolved fork only when it materially changes the result.
  • Attach evidence appropriate to the task: paths/diff/tests for code; URLs and exact facts for research.

Read the full file on GitHub · 57 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 57 lines · 136 tokens per session scan B c2bb062fd600

Subscribe to this mod's changes

x9-codex-delegation is a skill published in the GitHub repository xonika9/agent-skills (4 stars, last pushed 4d ago), licensed MIT. It adds 136 tokens to every session and 923 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.