# Codex runtime: spawning (partly verified) Read only when dispatching into Codex (T3 `delegate_task` to Codex, Codex gremlins). Spire's own agents run on claude-code. Legend: [README](../../README.md). codex-cli 0.172.0. | Claim | Status | |---|---| | `codex exec --json` runs non-interactively; first event is `thread.started{thread_id}`. No preassigned session id | verified 2026-11-24 (help, source, live runs) | | `codex exec fork [PROMPT]` and `exec resume [id] [PROMPT]`; `exec`, `--ephemeral fork`, `resume` read the prompt from stdin `-`; concurrent forks ran. `--ignore-user-config` keeps auth | verified 2026-11-24 (help, source, P3 live, `gpt-6-luna`) | | `-s`, `-C`, `--add-dir`, `-p` are not global: for fork/resume they precede the subcommand (`codex exec -s read-only -C --json fork ""`) | verified 2026-11-24 (source) | | A fork takes model, effort, sandbox and cwd from the current call, not the base: repeat `-m`, `-c model_reasoning_effort=…`, `-s`, `-C` | verified 2026-11-24 (source) | | `exec` forces `approval_policy = never`, never prompts | verified 2026-11-24 (source, live runs) | | No trust entry: default sandbox read-only, project config, hooks, rules off. Outside a git repo `exec` exits without `--skip-git-repo-check` | observed 2026-11-24 (live runs) | | Tool shells inherit the full env; the `*KEY*/*SECRET*/*TOKEN*` filter is off (leak itself not seen) | verified 2026-11-24 (source) | | Multi-agent tools exist; `-c agents.enabled=false` disables them (accepted live) | verified 2026-11-24 (source, P3 live) | | `--ephemeral` forks wrote no rollout and read the base prefix from cache (2/2); persisted forks missed (0/3) | observed 2026-11-24 (research, P3; turn-delta estimate) | | A resumed base keeps its thread id and cache key | observed 2026-11-24 (research, P3) | | `turn.completed.usage` is the thread's running total, base included | observed 2026-11-24 (research) | | Nested `codex exec` works with `--add-dir ` plus network on (n1 failed, n3 worked); escalation per helper call is untried (P4) | observed 2026-11-24 (n1/n3); escalation assumed | | Under `workspace-write` `.git` is read-only: a fork's `git commit` fails (`index.lock: Read-only file system`); forks never commit | verified 2026-11-24 (source); observed 2026-11-24 (P3) | | Native subagent tool is `spawn_agent`, then wait | assumed 2026-11-23 (T3 0.1.11 host rules, dirigent `reports/2026-11-23-11-t3-code-mcp-tools.md` §1, `reports/2026-11-23-11-harnesses.md`; not checked against Codex) | | `AGENTS.md` is the instruction file; skills via `.agents/skills`; Claude plugins do nothing | observed 2026-09-28 (dirigent `reports/2026-11-23-11-harnesses.md`, citing ai-developer reports) | | Spire ships a Codex manifest exposing `skills/`; whether Codex loads them and expands the plugin-root path variable | unknown | | Codex desktop, its sessions and worktrees | unknown | ## Consequence for Spire A Codex child gets a self-contained brief: no `subagent_type`, no Spire skills relied on, no plugin-root path variable; paste what it needs. Keep secrets out of the brief: Codex does not scrub its tool shells, but the gremlins helper scrubs secret-shaped inherited env (`--pass-env` lets one through). Repeat model, effort, sandbox and cwd on every fork. Igor under Codex is unsupported in 0.4.0. ## Unknowns - Manifest and skill loading; Codex desktop, worktrees. - `spawn_agent` arguments and wait semantics. - Which of `--add-dir ` and network is needed for a nested `codex exec` is not isolated. - Rule syntax to deny `git push` or `codex` in a child; explicitly untrusted dirs. ## Sources reliquary quire (unshipped): `research/2026-11-24-09-codex-gremlins-verification.md`. dirigent workpad (separate repo): `reports/2026-11-23-11-harnesses.md`, `reports/2026-11-23-11-t3-code-mcp-tools.md`.