You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,17 +14,22 @@ The plugin lets Claude Code launch one Codex agent or several Codex agents in pa
14
14
- Service tier: omitted by default so Codex uses its normal account/default service tier. Pass `service_tier` only when you explicitly want one.
15
15
- Transport: stdio MCP, launched by Claude Code for the active session. No daemon is required.
16
16
- Prompt delivery: stdin, not command-line arguments.
17
+
- Codex home: uses the user's Codex home by default; pass `isolated_codex_home: true` to use a temporary Codex home with auth but without inherited `config.toml` MCP servers.
-`CODEX_SUBAGENTS_DEFAULT_MODEL`: model to use when a tool call omits `model`.
22
-
-`CODEX_SUBAGENTS_DEFAULT_REASONING_EFFORT`: `minimal`, `low`, `medium`, `high`, or `xhigh`.
23
+
-`CODEX_SUBAGENTS_DEFAULT_REASONING_EFFORT`: `low`, `medium`, `high`, or `xhigh`. `minimal` is ignored as a default and falls back to `medium`.
23
24
24
25
## Spark And Nested Subagents
25
26
26
27
Use `model_preset: "spark"` to launch a top-level Codex agent with `gpt-5.3-codex-spark`. Exact `model` still wins when both are provided.
27
28
29
+
Spark does not support `reasoning_summary`; the plugin rejects `model_preset: "spark"` with `reasoning_summary` values other than `none` before starting Codex.
30
+
31
+
`reasoning_effort: "minimal"` is also rejected before starting Codex because the current Codex CLI auto-attaches `web_search`, which the API does not allow with minimal reasoning. Use `low` or higher.
32
+
28
33
To let a Codex agent spawn its own Codex subagents, pass:
29
34
30
35
-`codex_subagents`: custom Codex agent definitions with `name`, `description`, `developer_instructions`, optional `model` or `model_preset`, reasoning effort, sandbox, MCP servers, skills config, and extra config.
@@ -88,7 +93,7 @@ After startup, ask Claude to use Codex subagents, or invoke the plugin skill:
88
93
89
94
`codex_status` reports the resolved Codex binary, server working directory, Claude project directory, default model, default reasoning effort, and version probe.
90
95
91
-
Each agent accepts model, reasoning effort, sandbox, project directory, timeout, and output-size controls. Pass `project_dir` when Claude Code wants Codex to inspect the same repository or subdirectory Claude is currently working in. If `project_dir` is omitted, the server uses `CLAUDE_PROJECT_DIR` when Claude Code provides it. Omit model to use Codex's configured default or the plugin's optional configured default model.
96
+
Each agent accepts model, reasoning effort, sandbox, project directory, timeout, isolated Codex home, and output-size controls. Pass `project_dir` when Claude Code wants Codex to inspect the same repository or subdirectory Claude is currently working in. If `project_dir` is omitted, the server uses `CLAUDE_PROJECT_DIR` when Claude Code provides it. Omit model to use Codex's configured default or the plugin's optional configured default model.
"reasoning_effort='minimal' is not supported by this plugin because Codex currently auto-attaches web_search, which the API rejects with reasoning.effort 'minimal'. Use reasoning_effort='low' or higher."
21456
+
);
21457
+
}
21458
+
if (model === sparkModel && reasoningSummary) {
21459
+
if (reasoningSummary === "none") {
21460
+
reasoningSummary = void 0;
21461
+
} else {
21462
+
throw new RunValidationError(
21463
+
`reasoning_summary='${reasoningSummary}' is not supported with model_preset='spark' (${sparkModel}). Omit reasoning_summary or use reasoning_summary='none'.`
"- Keep sandbox read-only unless the user explicitly asks for a different sandbox.",
21719
21807
"- Approvals are non-interactive; do not expect Codex to ask permission.",
21720
21808
'- Prefer model_preset "spark" for responsive focused checks, small reviews, UI iteration, and sidecar analysis.',
21721
-
'- Use reasoning_effort "medium" by default, "low" for simple checks, and "high" or "xhigh" only for difficult analysis.',
21809
+
'- Use reasoning_effort "medium" by default, "low" for simple checks, and "high" or "xhigh" only for difficult analysis. Do not use "minimal"; Codex currently auto-attaches web_search and the API rejects that tool with minimal reasoning.',
21810
+
'- Do not combine model_preset "spark" with reasoning_summary values other than "none"; Spark does not support reasoning.summary.',
21722
21811
"- Do not set service_tier by default. Let Codex use its normal account/default service tier unless the user explicitly asks for a service tier.",
21723
21812
"- Pass project_dir whenever Claude knows the active project directory so Codex works in the same tree as Claude Code.",
21813
+
"- Set isolated_codex_home true when a run should ignore the user's Codex MCP server config and use only this request's temporary Codex configuration.",
21724
21814
"- Ask Codex for concise results with file paths, line references, and actionable findings when reviewing code.",
21725
21815
"",
21726
21816
"Nested Codex subagents:",
@@ -21774,14 +21864,16 @@ var commonInputSchema = {
21774
21864
"Convenience model preset. Use `spark` for responsive Codex Spark work; it maps to gpt-5.3-codex-spark."
"Codex model reasoning effort. Prefer medium by default, low for simple checks, high/xhigh only for difficult analysis."
21867
+
"Codex model reasoning effort. Prefer medium by default, low for simple checks, high/xhigh only for difficult analysis. `minimal` is rejected because Codex currently auto-attaches web_search, which the API does not allow with minimal reasoning."
21778
21868
),
21779
21869
sandbox: sandboxModeSchema.default("read-only").describe("Codex sandbox mode. Keep read-only unless the user explicitly asks otherwise."),
"Project directory for Codex. Pass Claude Code's active project directory so Codex works in the same tree. Defaults to CLAUDE_PROJECT_DIR when Claude provides it."
@@ -21794,6 +21886,9 @@ var commonInputSchema = {
21794
21886
ephemeral: external_exports.boolean().default(true).describe("Run Codex without persisting session rollout files."),
21795
21887
skip_git_repo_check: external_exports.boolean().default(false).describe("Allow Codex to run outside a Git repository."),
"Run with a temporary Codex home that links auth but does not inherit the user's Codex config.toml. Use to avoid unrelated MCP servers from the user's Codex config."
Copy file name to clipboardExpand all lines: skills/codex-subagents/SKILL.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,12 +22,16 @@ For independent tasks that can run concurrently, call `run_agents` with one agen
22
22
23
23
When Claude wants Codex to work in the same repository or folder as the active Claude Code session, pass that folder as `project_dir`. Use `cwd` only as a compatibility alias.
24
24
25
-
Prefer `reasoning_effort: "medium"` for exploration and `high` or `xhigh` only when the task is complex enough to justify the extra latency and token usage.
25
+
Prefer `reasoning_effort: "medium"` for exploration and `high` or `xhigh` only when the task is complex enough to justify the extra latency and token usage. Do not use `minimal`; the plugin rejects it because Codex currently auto-attaches `web_search`, which the API does not allow with minimal reasoning.
26
26
27
27
Use `model_preset: "spark"` for responsive, focused work such as UI iteration, narrow exploration, small reviews, and quick sidecar checks.
28
28
29
+
Do not set `reasoning_summary` with `model_preset: "spark"` except for `reasoning_summary: "none"`. Spark does not support `reasoning.summary`, and the plugin rejects unsupported combinations before starting Codex.
30
+
29
31
Do not set `service_tier` by default. Let Codex use its normal account/default service tier unless the user explicitly asks for a service tier.
30
32
33
+
Set `isolated_codex_home: true` when unrelated Codex MCP servers from the user's `~/.codex/config.toml` should not be loaded for the run.
34
+
31
35
Use `codex_status` only when diagnosing installation or binary resolution, or after a failed Codex tool call. Normal delegation should start with `run_agent` or `run_agents`.
0 commit comments