Codex
CLI name: codex · Status: supported
Prerequisites
Section titled “Prerequisites”Install OpenAI Codex CLI so codex is on
PATH. Session rollouts live under $CODEX_HOME/sessions (default
~/.codex).
Agent config
Section titled “Agent config”cli = "codex"model = "gpt-5.2-codex" # example; use whatever your codex build acceptsprofile = "edit"What wteam runs
Section titled “What wteam runs”New thread:
codex exec --json [-m <model>] … <prompt-with-optional-role-prepended>Resume:
codex exec resume --json … <session_id> <prompt>- Role prompt: prepended to the user message on the first turn only (resume turns send mail only).
- Stdin: empty string (codex expects a TTY-shaped invocation).
- Output: JSONL.
thread.started→ session id; lastagent_message→ text;turn.failedfails the turn. - Context tokens: read from the newest
rollout-*-<id>.jsonlunder Codex’s session dir (token_countevents), because streamed usage is cumulative.
Permissions
Section titled “Permissions”Codex uses a sandbox, not path rules. Read vs edit profiles become read-only vs workspace-write modes (≈ in the permissions matrix). Any allowed edit can widen the whole workspace — planners and reviewers on Codex are less tightly scoped than on Claude.
wteam always adds a config override so <repo>/.wteam is writable inside the
sandbox (agents call wteam during turns). Workers in git worktrees still
anchor .wteam on the main repo via WTEAM_ROOT.