Agent skill

Codex Delegation

by athola in athola/claude-night-market

Delegates tasks to the OpenAI Codex CLI (codex exec) via delegation-core.

MITAuto-check passedAgent Workflows

Install Codex Delegation

skills CLI
$ npx skills add athola/claude-night-market --skill codex-delegation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install athola/claude-night-market codex-delegation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/athola/claude-night-market.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/conjure/skills/codex-delegation .claude/skills/codex-delegation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
codex-delegation
GitHub stars
342
Token cost
~934 tokens
SKILL.md length
392 words
Files
1
Skills in repo
159
Repo updated
First seen
Licence
MIT

At a glance

Delegates tasks to the OpenAI Codex CLI (codex exec) via delegation-core.

  • Delegation-core selects Codex
  • SKILL.md covers Overview, When To Use, When NOT To Use and Prerequisites, plus 4 more sections
  • Calls codex, npm and uv; needs CODEX_API_KEY and OPENAI_API_KEY
  • OpenAI credentials are already configured

What it does

Codex Delegation is an agent skill from athola/claude-night-market. Delegates tasks to the OpenAI Codex CLI (codex exec) via delegation-core. Use when delegation-core selects Codex or OpenAI credentials are already configured.

Its SKILL.md is about 930 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows. It works with OpenAI. The repository describes itself as: 23 Claude Code plugins: TDD enforcement hooks, git/PR workflows, spec-driven development, code review, project lifecycle, fix-from-error, maintenance automation, context… The licence is MIT.

When your agent uses it

  • Delegation-core selects Codex
  • OpenAI credentials are already configured

Example prompts

  • “Use the codex-delegation skill to delegate tasks to the OpenAI Codex CLI (codex exec) via delegation-core”
  • “/codex-delegation”

Requirements

  • Python 3
  • Node.js
  • A credential in OPENAI_API_KEY
  • A credential in CODEX_API_KEY

What it can do on your machine

Read from SKILL.md and the folder at commit 9f3eb00. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • codex
    • npm
    • uv
    • make

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm and uv, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • CODEX_API_KEY
    • OPENAI_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Codex Delegation loads about 934 tokens when it runs. Until then it costs about 44 tokens; SKILL.md has 392 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~44
When it runs · the whole SKILL.md, loaded when a task matches
~934

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from athola/claude-night-market at commit 9f3eb00, republished under its MIT licence (© athola). 392 words, ~934 tokens.

Download SKILL.mdSave it as .claude/skills/codex-delegation/SKILL.md (or your agent's skills folder).
name
codex-delegation
description
Delegates tasks to the OpenAI Codex CLI (codex exec) via delegation-core. Use when delegation-core selects Codex or OpenAI credentials are already configured.
alwaysApply
false
category
delegation-implementation
tags
codex, openai, cli, delegation
dependencies
delegation-core
tools
codex, delegation_executor.py
usage_patterns
codex-cli-integration, headless-ci-execution
complexity
intermediate
model_hint
standard
estimated_tokens
550
references
delegation-core/shared-shell-execution.md

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
bash
npm install -g @openai/codex

Homebrew and a curl installer are also documented upstream.

Authentication

Either persist an API key or log in interactively:

bash
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
bash
uv run python scripts/delegation_executor.py codex "Explain this module" \
  --files src/
Through the Makefile
bash
make -C plugins/conjure delegate-codex PROMPT='Explain this module'
Direct CLI usage
bash
codex exec "Explain the retry logic in this package"

Smart Delegation

codex declares the code_execution strength and ranks behind gemini, qwen, minimax, glm and muse in the candidate order. It declares no model ids, so smart_delegate leaves model selection to the CLI.

Show full SKILL.md (157 more words)Show less

Codex-Specific Details

PropertyValue
Binarycodex
Package@openai/codex
Headless formcodex exec <prompt>
Prompt deliverypositional, stdin also supported
Version probecodex --version
Auth probecodex login status
Structured outputcodex exec --json

Login caveat worth knowing before scripting this: an open issue (openai/codex#9253) reports that codex login fails outright on headless hosts, over SSH or in containers, unless a workspace administrator has separately enabled device-code auth. That is a single reporter's account with no maintainer confirmation, but it is the failure mode to check first when codex exec will not run unattended. Persisting an API key beforehand avoids it.

Exit Criteria

  • codex resolves on PATH and answers codex --version
  • codex login status reports a logged-in state rather than "Not logged in"
  • The built command is codex exec <prompt> with the prompt last and no prompt flag before it
  • File context was inlined into the prompt
  • Output saved to delegations/codex/YYYYMMDD_HHMMSS.md
  • This skill ran because delegation-core selected codex

© athola, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/conjure/skills/codex-delegation of athola/claude-night-market.

Open the folder on GitHubat commit 9f3eb00

Compare with similar skills

Codex Delegation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Codex Delegation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Codex Delegation this skillathola/claude-night-market342—~934Automated safety check: PassMIT
Install and Run Cogneetopoteretes/cognee32k1 repos~1kAutomated safety check: NotesApache-2.0
LLM Councilgcpdev/llm-council-skill4611 repos~1kAutomated safety check: NotesMIT
Codex with ChatGPT Planning LoopXiaoDuoYa/codex-with-chatgpt7.1k—~11kAutomated safety check: NotesMIT
Nagentdavidondrej/skills4.1k—~1.7kAutomated safety check: NotesMIT
Cao MCP Appsawslabs/cli-agent-orchestrator1.4k—~1.9kAutomated safety check: PassApache-2.0

Similar skills

  • Install and Run Cognee

    topoteretes/cognee

    Installs the cognee AI memory library in a Python environment, sets the LLM key and gets a first remember and recall script running with the Python SDK.

    32k GitHub starsUsed in 1 repo~1k tokens
    Agent WorkflowsAuto-check: notes
  • LLM Council

    gcpdev/llm-council-skill

    Multi-LLM collaborative brainstorming and planning. An agent skill from gcpdev/llm-council-skill.

    461 GitHub starsUsed in 1 repo~1k tokens
    Agent WorkflowsAuto-check: notes
  • Codex with ChatGPT Planning Loop

    XiaoDuoYa/codex-with-chatgpt

    Uses ChatGPT in the browser as the planning and review brain for a Codex session, with Codex keeping all execution and ChatGPT reading the workspace through a bridge.

    7.1k GitHub stars~11k tokensUpdated 7 days ago
    Agent WorkflowsAuto-check: notes
  • Nagent

    davidondrej/skills

    Launch a new bb worker thread with the right project, model, worktree, and task brief.

    4.1k GitHub stars~1.7k tokensUpdated yesterday
    Agent WorkflowsAuto-check: notes
  • Cao MCP Apps

    awslabs/cli-agent-orchestrator

    Official

    Enable, operate, and extend CAO's MCP Apps surface — the host-rendered fleet dashboard visible inside MCP App hosts (Claude Desktop, ChatGPT, VS Code Copilot, Goose, Postman).

    1.4k GitHub stars~1.9k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Daily Logs

    memodb-io/Acontext

    Track daily activity logs and summaries for the user. An agent skill from memodb-io/Acontext.

    3.7k GitHub stars~243 tokensUpdated 2 mo ago
    Agent WorkflowsAuto-check passed

More from athola/claude-night-market

All 159 skills in this repo
  • Night Market Diagnostics Toolkit

    athola/claude-night-market

    Run and interpret repo diagnostic scripts (ratchets, validators, token stats).

    342 GitHub stars~3.4k tokensUpdated 2 days ago
    Auto-check passed
  • Skills Eval

    athola/claude-night-market

    Evaluate Claude skill quality through auditing. An agent skill from athola/claude-night-market.

    342 GitHub stars~1.6k tokensUpdated 2 days ago
    Auto-check passed
  • Agent Teams

    athola/claude-night-market

    Coordinates Claude agent teams via filesystem protocol. An agent skill from athola/claude-night-market.

    342 GitHub stars~2.5k tokensUpdated 2 days ago
    Auto-check passed
  • Delegation Core

    athola/claude-night-market

    Delegates execution to eight CLIs (Gemini, Qwen, MiniMax, GLM, Muse, Codex, OpenCode, Glimmer).

    342 GitHub stars~2.5k tokensUpdated 2 days ago
    Auto-check passed
  • Elegant Code

    athola/claude-night-market

    Guide minimal code via a decision ladder with full safety, edge, and negative-case coverage.

    342 GitHub stars~2.1k tokensUpdated 2 days ago
    Auto-check passed
  • Skill Library Mission

    athola/claude-night-market

    Build a project skill library in .claude/skills/ via discovery, parallel authoring, and review.

    342 GitHub stars~1.6k tokensUpdated 2 days ago
    Auto-check passed

Works with

Categories

Questions about Codex Delegation

What does Codex Delegation do?

Delegates tasks to the OpenAI Codex CLI (codex exec) via delegation-core. Codex Delegation is an agent skill from athola/claude-night-market. Delegates tasks to the OpenAI Codex CLI (codex exec) via delegation-core.

When should I use Codex Delegation?

Codex Delegation fits situations like: delegation-core selects Codex; openAI credentials are already configured.

How do I install Codex Delegation in Claude Code?

Run `npx skills add athola/claude-night-market --skill codex-delegation -a claude-code`. Or copy the skill folder (plugins/conjure/skills/codex-delegation in athola/claude-night-market) into .claude/skills/codex-delegation in your project. Claude Code loads it when a task matches its description.

How do I install Codex Delegation in Codex?

Run `npx skills add athola/claude-night-market --skill codex-delegation -a codex`. Or copy the skill folder (plugins/conjure/skills/codex-delegation in athola/claude-night-market) into .agents/skills/codex-delegation in your project. Codex loads it when a task matches its description.

Can I use Codex Delegation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add athola/claude-night-market --skill codex-delegation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/codex-delegation, .gemini/skills/codex-delegation, .github/skills/codex-delegation and .opencode/skills/codex-delegation in your project.

What does Codex Delegation need to run?

Going by SKILL.md and its folder, Codex Delegation needs the command-line tools its instructions call (codex, npm, uv and make) and credentials named CODEX_API_KEY and OPENAI_API_KEY. Our summary lists: Python 3; Node.js; A credential in OPENAI_API_KEY; A credential in CODEX_API_KEY.

Does Codex Delegation access the network?

SKILL.md contains no URLs. Its commands use npm and uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Codex Delegation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Codex Delegation use?

Codex Delegation is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Codex Delegation use?

About 934 tokens (SKILL.md is roughly 3.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Codex Delegation?

Skills that share tags, products or a category with Codex Delegation: Install and Run Cognee (topoteretes/cognee, 32k stars), LLM Council (gcpdev/llm-council-skill, 461 stars), Codex with ChatGPT Planning Loop (XiaoDuoYa/codex-with-chatgpt, 7.1k stars) and Nagent (davidondrej/skills, 4.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Codex Delegation?

athola (a GitHub user) maintains it in athola/claude-night-market, which has 342 GitHub stars. The repository holds 159 skills in this directory. The repository was last updated on October 6, 2026.

Source: athola/claude-night-market on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.