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 agentmods add skills/xuio/claude-code-codex-subagents/codex-subagentsnpx skills add xuio/claude-code-codex-subagents --skill codex-subagentsgit clone --depth 1 https://github.com/xuio/claude-code-codex-subagentsWhat 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 | $0.00088 | $0.02194 |
| Opus 5 | $0.00044 | $0.01097 |
| Sonnet 5 | $0.00018 | $0.00439 |
| Haiku 4.5 | $0.00009 | $0.00219 |
Grade B, and why
codex-subagents 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 2d 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.
Set `advanced.isolated_codex_home: true` when unrelated Codex MCP servers from the user's `~/.codex/config.toml` should not be loaded for the run. How it starts
The opening of the file, as written. The whole thing — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Codex Subagents
Use the codex-subagents MCP server like Claude's native Task tool when the task benefits from an independent OpenAI Codex worker inside Claude Code. If the user asks to "use Codex", "ask Codex", "launch Codex subagents", "use Spark", "get a Codex second opinion", or "run parallel Codex agents", call the MCP tools directly. Do not wait for the user to name the MCP tool.
Default behavior:
- Launches one-shot Codex work through
codex exec; persistent sessions usecodex app-server --listen stdio://by default for real live steering. The app-server child is owned by the MCP server process, so no external background daemon is required. - Prefers the Codex desktop app binary at
/Applications/Codex.app/Contents/Resources/codexwhen it exists. - Runs Codex in
read-onlysandbox mode unless the user explicitly requests a different sandbox. - Uses non-interactive approvals so write or privileged operations fail instead of prompting.
- Supports explicit non-sandbox/full-access execution with
full_access: true, which maps to Codex's--dangerously-bypass-approvals-and-sandboxflag and allows DNS/network plus unrestricted file and git writes. - Lets the caller set model, reasoning effort, project directory, timeout, and parallelism per agent. Put uncommon settings under
advanced. - Supports
advanced.model: "spark"for Codex Spark (gpt-5.3-codex-spark) without requiring Claude to remember the exact model string. - Supports nested Codex subagents by passing
advanced.codex_subagents,advanced.subagent_tasks, andadvanced.subagent_runtime; custom agents are sent as Codexagents.<name>...config overrides for the child run. - Supports persistent Codex sessions through the
session_idreturned bycodex_taskandcodex_task_group; usecodex_followupto continue, steer, wait on, cancel, or otherwise manage the same Codex context. - Supports
codex_wait_anyfor harvesting whichever background Codex session finishes first when Claude launched several sessions in parallel. - Supports structured results with
advanced.output_contractoradvanced.output_schema; use these when Claude must merge, compare, or aggregate Codex outputs. - Redacts secret-looking output by default and does not forward secret-looking environment variables unless
forward_sensitive_envis explicitly true. - Compacts large tool responses before returning them to Claude; when
mcpResponse.compactedis true, use the returned summary first and inspect server logs only if the omitted raw tail is necessary.
Prefer the native Claude-like tools for normal use:
- For one delegated task, call
codex_task. Providedescriptionlike Claude's Task description andpromptas the self-contained task. For code review and exploration, ask for concise findings with file paths and line references. - For independent tasks that can run concurrently, call
codex_task_groupwith one task object per workstream. Split by ownership such as API flow, tests, security, performance, UI, docs, or migration risk. Keep tasks concrete and bounded, and setmax_parallelto the smaller of the useful agent count and4unless the user asks for more. - For multi-turn Codex work, call
codex_taskfor the initial prompt and preserve the returnedsession_id. Usecodex_followupwithmode: "queue"for ordinary follow-ups,mode: "wait"when Claude needs completion,mode: "steer"for active redirection, andmode: "cancel"when the user no longer wants the run. - For several background Codex sessions, use
codex_wait_anywith all knownsession_idvalues instead of polling each session one at a time. Repeat with the returned remaining ids until all work is complete. - Use
codex_followupmodesteeronly when the user wants to redirect active work now. It delivers real live steering with Codexturn/steerwhen app-server support is active. Setinterrupt_current: trueonly when the active turn should be cancelled and redirected. - If unsure which path fits, call
codex_taskorcodex_followupfirst; use MCP resources only for diagnostics or when a tool response explicitly says to inspect a resource.
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.
- 2d ago First seen · 122 lines · 88 tokens per session scan B 07baf2b57831
codex-subagents is a skill published in the GitHub repository xuio/claude-code-codex-subagents (2 stars, last pushed 2mo ago), licensed MIT. It adds 88 tokens to every session and 2,194 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.
Other skills, from other repositories
stripe-projects
Use after E2B sandbox/API access has been provisioned through Stripe Projects and the user needs to use the resulting E2B API key with the E2B CLI, JavaScript SDK, Python SDK, or Code Interpreter SDK.
ax-cpp-ai
Use when writing C++ code with axllm for named deployment profiles, generic provider clients, model selection, OpenAI-compatible calls, Responses, Gemini, Anthropic, routers, and balancers.
ax-cpp-agent-observability
Use when writing C++ code with axllm for agent tracing, centralized and multi-tenant usage accounting, action logs, runtime diagnostics, replay, and production debugging.
ax-go-agent-observability
Use when writing Go code with github.com/ax-llm/ax/packages/go for agent tracing, centralized and multi-tenant usage accounting, action logs, runtime diagnostics, replay, and production debugging.
ax-cpp-agent-memory-skills
Use when writing C++ code with axllm for agent memory, recall callbacks, dynamic skill discovery, loaded-skill state, and used-skill tracking.
ax-cpp-flow
Use when writing C++ code with axllm for flows, nodes, program graphs, nested programs, dynamic options, caching, and optimizer components.