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.
npx skills add xonika9/agent-skills --skill x9-codex-delegationgit clone --depth 1 https://github.com/xonika9/agent-skillsWrote 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.
[](https://agentmods.dev/skills/xonika9/agent-skills/x9-codex-delegation)<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.
<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>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.
| Model | Per session | Once 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 |
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 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-rescuesubagent 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.
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.
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.
- 10d ago First seen · 57 lines · 136 tokens per session scan B c2bb062fd600
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.
Other skills, from other repositories
e2e-automator
Build robust end-to-end test suites with Playwright or Cypress. Covers page objects, fixtures, visual testing, and CI integration.
agent-harness-fault-injection
Use when an agent workflow needs deterministic recovery evidence for sandbox, MCP/tool, worker, checkpoint, memory, or orchestration failures.
architecture-decision-records
Comprehensive patterns for creating, maintaining, and managing Architecture Decision Records (ADRs) that capture the context and rationale behind significant technical decisions.
agent-framework-azure-ai-py
Build persistent agents on Azure AI Foundry using the Microsoft Agent Framework Python SDK.
aria
Designs the data model, API contracts, and structural foundation of the system.
api-security
Authorized security assessment of REST, GraphQL, WebSocket, and SOAP APIs: discovery, authentication and authorization flaws (BOLA/IDOR, JWT/OAuth), rate-limit testing, and a structured multi-phase methodology.