codex-delegation

codex-delegation is a skill for Claude Code, Codex from athola/claude-night-market. It costs 40 tokens per session (1,024 once invoked), scanned C, original, MIT.

A delegation guide for sending coding tasks to the OpenAI Codex command-line tool. It explains when Codex is suitable and how to check authentication and run it.

In plain words
What is it for?
Use it to delegate code analysis, implementation, or review tasks to Codex from an automated workflow.
Why use it?
It helps hand off execution work to Codex when another coding agent or model is useful.

Skill for Claude CodeCodex

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is uv run python scripts/delegation_executor.py codex "Explain this module" \.

Part of the conjure plugin — 11 skills shipped together

Good fit Use it to delegate code analysis, implementation, or review tasks to Codex from an automated workflow.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/athola/claude-night-market
agentmods
npx agentmods add skills/athola/claude-night-market/codex-delegation

Made for: Claude Code, Codex.

Or install conjure, the plugin that ships this one along with the rest of its 11 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 codex-delegation

README.md
[![agentmods](https://agentmods.dev/badge/skills/athola/claude-night-market/codex-delegation/github.svg)](https://agentmods.dev/skills/athola/claude-night-market/codex-delegation)
Your own site
<a href="https://agentmods.dev/skills/athola/claude-night-market/codex-delegation"><img src="https://agentmods.dev/badge/skills/athola/claude-night-market/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 codex-delegation

Your own site · 80×15
<a href="https://agentmods.dev/skills/athola/claude-night-market/codex-delegation"><img src="https://agentmods.dev/badge/skills/athola/claude-night-market/codex-delegation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,024 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. 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.00040 $0.01024
Opus 5 $0.00020 $0.00512
Sonnet 5 $0.00008 $0.00205
Haiku 4.5 $0.00004 $0.00102

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

Security

Grade C, and why

codex-delegation scanned grade C with 2 findings 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 7d 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.

Harvests environment variableshighData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

printenv OPENAI_API_KEY | codex login --with-api-key

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Homebrew and a curl installer are also documented upstream.
plugins/conjure/skills/codex-delegation/SKILL.md · 143 lines

How it starts

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

Table of Contents

Codex CLI Delegation

Overview

OpenAI's Codex CLI ships as npm @openai/codex and installs a codex binary. Its headless entry point is codex exec, which takes the prompt as a positional argument and reuses saved CLI credentials.

When To Use

  • delegation-core selected codex for the task
  • OpenAI credentials are already configured on the machine
  • The work suits a second opinion from a non-Anthropic, non-Google model

When NOT To Use

  • The host is headless and codex login has never succeeded there. See the login caveat below
  • The job checks out untrusted repository code. OpenAI's own docs warn against exposing the key as a job-level environment variable in that case

Prerequisites

Installation

npm install -g @openai/codex

Homebrew and a curl installer are also documented upstream.

Authentication

Either persist an API key or log in interactively:

printenv OPENAI_API_KEY | codex login --with-api-key

Verification runs codex login status, which reports one of "Logged in using an API key", "Logged in using ChatGPT", "Logged in using Agent Identity", or "Not logged in". The service uses that probe rather than checking a single variable, because either credential path is valid and only the probe sees both.

CODEX_API_KEY scopes a credential to a single codex exec run.

Quick Start

Using the shared delegation executor

uv run python scripts/delegation_executor.py codex "Explain this module" \
  --files src/

Through the Makefile

make -C plugins/conjure delegate-codex PROMPT='Explain this module'

Direct CLI usage

codex exec "Explain the retry logic in this package"

Read the full file on GitHub · 143 lines

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. 7d ago First seen · 143 lines · 40 tokens per session scan C 178610801a75

Subscribe to this mod's changes

codex-delegation is a skill published in the GitHub repository athola/claude-night-market (337 stars, last pushed today), licensed MIT. It adds 40 tokens to every session and 1,024 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 2 findings (harvests environment variables, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories