codex-delegation
/codex-delegation
Deleguje zadania do OpenAI Codex CLI (codex exec) przez delegation-core, gdy ten wybiera Codex lub poświadczenia OpenAI są już skonfigurowane.
- Autor
- athola ↗
- Repozytorium
- claude-night-market ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 01.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 01.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Deleguje zadania do OpenAI Codex CLI (codex exec) przez delegation-core, gdy ten wybiera Codex lub poświadczenia OpenAI są już skonfigurowane.
Oryginalny opis (EN)
Delegates tasks to the OpenAI Codex CLI (codex exec) via delegation-core. Use when delegation-core selects Codex or OpenAI credentials are already configured.
Jak działa
- Overview
- When To Use
- When NOT To Use
- Prerequisites
- Quick Start
- Smart Delegation
- Codex-Specific Details
- Exit Criteria
Podgląd SKILL.md
---
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.
## Codex-Specific Details
| Property | Value |
|----------|-------|
| Binary | `codex` |
| Package | `@openai/codex` |
| Headless form | `codex exec <prompt>` |
| Prompt delivery | positional, stdin also supported |
| Version probe | `codex --version` |
| Auth probe | `codex login status` |
| Structured output | `codex 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`
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · athola/claude-night-market | 100 | MIT |
| zebbern/agent-collab | 100 | Apache-2.0 |
Migawka bazy z 28.10.2026 · wersja paczki b23f36ebfc3f (skrót SHA-256 całej paczki)
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100gemini-delegation
Deleguje zadania do Gemini CLI w ramach delegation-core, gdy wybrany jest Gemini lub potrzebny jest kontekst powyżej 1 mln tokenów. - 100codex
Uruchamia Codex CLI (codex exec, codex resume), gdy trzeba skorzystać z OpenAI Codex do analizy kodu, refaktoryzacji lub automatycznej edycji. - 100codex
Uruchamia Codex CLI (codex exec, codex resume), aby skorzystać z OpenAI Codex przy analizie kodu, refaktoryzacji i automatycznej edycji. - 90codex
Uruchamia Codex CLI (codex exec, codex resume) do analizy kodu, refaktoryzacji i automatycznej edycji. - 100codex
Uruchamia Codex CLI (codex exec, codex resume) do analizy kodu, refaktoryzacji i automatycznej edycji. - 100qwen-delegation
Deleguje zadania do Qwen CLI przez delegation-core dla modeli Alibaba, także przy przetwarzaniu wsadowym z dużym kontekstem.