codex-subagent · git:20261028.d072ec8 · 2026-10-28 · sha256 7e3cb4f9aeb7b547
codex-subagent git:20261028.d072ec8A
Immutable. This exact content never changes and is served at /api/v1/blob/7e3cb4f9aeb7b547.
---
name: codex-subagent
description: Delegate a task to Codex as a subagent
disable-model-invocation: true
argument-hint: [model] [effort] <task>
allowed-tools: Bash(jq *)
---
The user invoked this skill explicitly, which authorizes running Codex with full access for this task.
default_model: !`codex debug models | jq -r '[.models[].slug | select(test("^gpt-[0-9]+(\\.[0-9]+)?-sol$"))] | first' || echo gpt-6.1-sol`
default_effort: high
If the arguments start with a model slug or an effort level, use them; the rest is the task. Otherwise use `default_model` and `default_effort`.
1. Write a self-contained prompt for the task to a new file in the scratchpad. For computer use, include the keyword `computer_use` in the prompt.
2. Run Codex as one command, with no variable assignments or `&&` before it, using literal paths:
codex -m <model> -c model_reasoning_effort="<effort>" --dangerously-bypass-approvals-and-sandbox exec - < <prompt-file> > <log-file> 2>&1
3. Run it in the background unless the result is needed before continuing.
4. Read the log and verify the result before reporting.