codex-agent

codex-agent is a skill for Claude Code, Codex from southlab-ai/Claude-Plugin-Marketplace. It costs 86 tokens per session (1,356 once invoked), scanned B, original, MIT.

Instructions for starting non-interactive OpenAI Codex command-line agents as background workers. Codex is an AI coding assistant, and the guide covers model selection, reasoning settings, authentication, and structured results.

In plain words
What is it for?
Spawning Codex agents, assigning them repository tasks, running parallel workers, resuming sessions, and collecting their output.
Why use it?
It makes delegated Codex work repeatable and lets separate agents handle tasks in parallel or provide a second opinion.

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.

Part of the ultracodex plugin — 2 skills shipped together

Good fit Spawning Codex agents, assigning them repository tasks, running parallel workers, resuming sessions, and collecting their output.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/southlab-ai/claude-plugin-marketplace/codex-agent
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 southlab-ai/Claude-Plugin-Marketplace --skill codex-agent
Clone the repo
git clone --depth 1 https://github.com/southlab-ai/Claude-Plugin-Marketplace

Made for: Claude Code, Codex.

Or install ultracodex, the plugin that ships this one along with the rest of its 2 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-agent

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/southlab-ai/claude-plugin-marketplace/codex-agent"><img src="https://agentmods.dev/badge/skills/southlab-ai/claude-plugin-marketplace/codex-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,356 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.00086 $0.01356
Opus 5 $0.00043 $0.00678
Sonnet 5 $0.00017 $0.00271
Haiku 4.5 $0.00009 $0.00136

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

Security

Grade B, and why

codex-agent 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.

Spawn non-interactive Codex CLI agents using `codex exec`. Requires the OpenAI Codex CLI installed and authenticated (`codex login`; auth stored in `~/.codex/auth.json`). **Always pin model and reasoning effort explicitl
plugins/ultracodex/skills/codex-agent/SKILL.md · 98 lines

How it starts

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

Codex Agent Spawner

Spawn non-interactive Codex CLI agents using codex exec. Requires the OpenAI Codex CLI installed and authenticated (codex login; auth stored in ~/.codex/auth.json). Always pin model and reasoning effort explicitly — don't rely on ~/.codex/config.toml defaults (they drift).

Model: gpt-5.6-sol by default for a single agent (flagship — a lone second opinion should be the strong one). Use gpt-5.6-terra for routine well-scoped subtasks, gpt-5.6-luna for mechanical extraction/classification. Legacy gpt-5.5 only if the user names it. For fleets, the [[ultracodex]] skill has its own per-role table.

Reasoning effort: medium by default. Raise to high/xhigh only when the user asks (e.g. "xhigh", "a fondo", "máximo esfuerzo") or the subtask is genuinely hard (subtle debugging, architecture, security analysis); max (new in 5.6) for a single hardest problem. Valid values on 5.6: low | medium | high | xhigh | max (minimal is gone).

Base command

codex exec \
  -m gpt-5.6-sol \
  -c model_reasoning_effort=medium \
  -C "<workdir>" \
  -s workspace-write \
  -o "<rundir>/last-message.md" \
  "<PROMPT>"

Run it with the Bash tool and run_in_background: true. The harness notifies you when it exits — do NOT poll or sleep. For long prompts, pipe via stdin (codex exec ... - with a heredoc) instead of an argv string.

Per-run output directory

Before spawning, create a run dir and capture everything there:

RUNDIR="/tmp/codex-agents/<slug>"   # slug: short task name, add -2, -3 if it exists
mkdir -p "$RUNDIR"
  • -o "$RUNDIR/last-message.md" — final answer (this is what you report back to the user).
  • Append --json > "$RUNDIR/events.jsonl" only if the user wants a full trace; otherwise plain stdout (captured by the background task) is enough to monitor progress.
  • The session id appears in the output header (session id: <uuid>) — note it so the agent can be resumed.

Flag decisions

Read the full file on GitHub · 98 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. 10d ago First seen · 98 lines · 86 tokens per session scan B 84317c989bab

Subscribe to this mod's changes

codex-agent is a skill published in the GitHub repository southlab-ai/Claude-Plugin-Marketplace (2 stars, last pushed 1mo ago), licensed MIT. It adds 86 tokens to every session and 1,356 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

cosmergon

Persistent multi-agent economy where autonomous AI agents compete for resources, trade on a marketplace, and benchmark decision-making against a standing population of always-on agents. Invite other agents for energy rewards. Auto-registers — no API key needed.

rkocosmergon/cosmergon-agent · 50 tokens

sector-rotation

An analysis framework for comparing industries in the Chinese A-share stock market, using business conditions, price momentum, valuation, and money flows. It produces rankings and higher- or lower-allocation suggestions.

HKUDS/Vibe-Trading · 39 tokens

foundry-config-setup

Resolve missing setup caused by a hardcoded Foundry project endpoint or model in a sample. Use when a sample fails because it uses a placeholder/hardcoded projectendpoint (for example "https://your-project.services.ai.azure.com") or a hardcoded model instead of reading them from the environment.

microsoft/agent-framework · 65 tokens

rework-rate

Measure and interpret PR rework rate — the emerging 5th DORA metric.

bradygaster/squad · 20 tokens

oma-scholar

Scholarly research companion using Knows sidecar spec (.knows.yaml). Generates, validates, reviews, queries, and compares structured research-paper sidecars, and fetches them from knows.academy. Use for academic literature search, survey synthesis, paper authoring assistance, and peer review with token-efficient…

first-fluke/oh-my-agent · 73 tokens

browser_cdp

A health check for Python code that produces a score, letter grade, and measures of issues such as complexity, duplication, dead code, dependencies, and architecture.

mateaix/mateclaw · 44 tokens