Codex vs. phax
A side-by-side comparison, last checked on 2026-11-25 against Codex CLI 0.172.0 (2026-11-24) — its changelog and its docs, now served at learn.chatgpt.com/docs, each page linked where it is quoted below — and phax 0.43.0.
The one-line difference
Codex is the agent; phax is a program that can run it. Codex does the work, in your terminal, your IDE, the desktop app or OpenAI's cloud, and on its own it can hand parts of it to subagents, check a turn with hooks you write and review a change. phax is verified delegation: it starts an agent CLI as a subprocess for each phase of an approved plan (Claude Code by default, Codex once you enable it), runs your project's checks itself after every phase and hands back facts, not claims. You never choose one over the other: the real question is what going through phax adds to Codex alone, and what it costs.
What Codex gives you on its own, concretely
- Delegation. Codex can "run subagent workflows by spawning specialized
agents in parallel and then collecting their results in one response", and
"Current Codex releases enable subagent workflows by default"
(Subagents).
The aim is to "Return summaries from subagents instead of raw intermediate
output". A custom agent sets its own
modelandmodel_reasoning_effort. The page asks for care with writes: "agents editing code at once can create conflicts and increase coordination overhead", and custom agent instructions "don't create a separate read-only sandbox". - Planning.
/planswitches a chat to plan mode, to "propose an execution plan before implementation work starts" (CLI reference)./goalstarts Goal mode: "The goal text becomes both the first prompt and the completion criteria for the task" (Long-running work). - Deciding "done". The same page says to "Write a goal that lets ChatGPT
verify its own progress". Hooks can
"Run a custom validation check when a chat turn stops, enforcing standards": a
Stophook that returnsdecision: "block""tells Codex to continue and automatically creates a new continuation prompt". A hook is yours to write, and "Non-managed hooks must be reviewed and trusted before they run". The guide to agents states the stake: "Fluent writing or a confident summary is not enough to establish that a task succeeded." - Isolation. "Locally, Codex uses an OS-enforced sandbox that limits what it
can touch (typically to the current workspace)", and "By default, the agent
runs with network access turned off"
(Agent approvals & security).
The sandbox "applies to spawned
commands, not just to built-in file operations".
codex exec --worktreeand/worktreeput a run in a managed Git worktree. - Cloud tasks. In Codex Cloud, "Each task has its own workspace and can keep working while your computer is asleep." The person's step comes last: "Inspect changed files and check results, request follow-up changes, and commit or open a pull request when you're ready."
- Review.
/reviewstarts "a dedicated reviewer that reads the selected diff and reports prioritized, actionable findings without changing your working tree" (Code review). On GitHub,@codex reviewposts a review, and "Codex flags only P0 and P1 issues"; its rules "don't replace tests, branch protections, or required approvals" (GitHub reviews). - Records and a caller's interface. "By default, Codex saves local session
transcripts under
CODEX_HOME" (configuration). For a script or another agent,codex exec"runs in a read-only sandbox" by default; with--json, "stdoutbecomes a JSON Lines (JSONL) stream" of events such asturn.completedandturn.failed, and--output-schemarequests "a final response that conforms to a JSON Schema". The SDK lets you "Create your own agent that can engage with Codex".
What phax is, concretely
A compiled CLI that drives an AI coding agent (Claude Code by default; Codex
and Mistral Vibe once enabled) through isolated, gated phases. You write a spec
and a plan.md — with the bundled skills in your agent, or headlessly with
phax artifact new spec|plan --headless --brief (experimental) — and approve
them. phax run refuses a plan that is not Approved or has gone Stale, then
runs each phase in its own Git worktree, on a branch made from the previous
phase, with the model and effort the plan gives it. After each phase phax itself
runs your gate profile (your typecheck, tests, lint): a red gate goes back
to the same agent session, within a fix budget, and the phase commits only when
the gate is green. phax then reconciles the files the phase planned with the
files it changed. A plan can give acceptance tests a
phase of their own, judged apart from the phase that must pass them. The run
stops at review_open with a review handoff, an optional compliance review
against the plan, an optional read-only code review whose
findings each get a fate, and an optional GitHub pull request.
With records on, every phase leaves its manifest, gate results, reconciliation,
diff, handoff and transcript on a phax/records/v1 branch. Every command
answers JSON with a schema under --json, so the one
delegating can be a person or another agent
(Delegating from an agent).
Side-by-side
The key distinction
Codex already holds every part a delegation needs: workers, a sandbox, a place to plug in a check, a reviewer. The difference is who holds the check, and what is left afterwards:
- Codex alone: the check is something you add to the agent or to your CI. A
goal is checked by the agent that works toward it; a
Stophook is yours to write; a review reports findings and its rules "don't replace tests, branch protections, or required approvals". What happened is in a transcript on your machine or a task in Codex Cloud. For a great deal of work that is enough, with no setup. - Through phax: the check sits outside the agent. A program that is not the agent starts each session, runs your commands itself, commits a phase only when they pass, compares the files touched with the plan and writes what it saw to a Git branch. The agent saying it is done never moves the run forward.
So Codex is closer to a capable colleague with a sandbox, a cloud to work in and a reviewer of its own, whose checks you wire in yourself; phax is verified delegation: a colleague of your choice, started by a program that runs your checks after every phase and keeps the results in Git.
Where Codex alone is ahead today
- Starting at once. One prompt starts the work. phax runs nothing without an Approved spec and an Approved plan.
- Parallel work inside one task. Subagent workflows are on by default. phax runs the phases of a run one after another.
- Cloud tasks. A task "can keep working while your computer is asleep",
started from the web, the app,
codex cloud execor Slack. phax runs on your machine only, andphax runholds the shell that started it until the run stops. - Scheduled and triggered runs. Scheduled tasks run on a schedule or "from supported app events". Only a person or a caller's command starts a phax run.
- A UI and computer use. A desktop app for macOS, Windows and Linux, an IDE extension, and Computer Use in the app on macOS and Windows. phax is a CLI with headless phases and ships neither.
- An OS sandbox, on by default. Every command Codex runs locally inherits it. phax has no sandbox of its own: its gate steps run outside any sandbox, with your user's rights.
- Windows. Codex has a native Windows sandbox. phax ships macOS and Linux binaries only.
- A library. The Codex SDK starts and resumes threads from TypeScript. phax is a CLI only; its npm schemas package reads its files and starts nothing.
- Hosted pull request review.
@codex reviewand automatic reviews on GitHub. phax opens the pull request and stops. - Steering mid-task. You can redirect a chat at any turn. A phax run stops
for a person only at a phase the plan declares interactive, or where you asked
with
--hold.
When each fits
- Codex alone for short tasks, exploration, read-heavy fan-out, work you watch as it happens or hand to the cloud, and any repository without real automated checks: a gate with nothing to run proves nothing.
- Through phax when the change is large enough to plan in phases, the repository has checks worth trusting, and whoever delegates — you the next morning, or another agent — will not watch the session and needs to read what passed, what left the plan and what became of each review finding.
Two things worth noting
- You can build a gate yourself, in a hook or in CI. A
Stophook that runs your tests and returnsdecision: "block"on failure keeps Codex working; its input carriesstop_hook_active, "Whether this turn was already continued byStop", so your script can end the loop. The other route is the one the review docs name: "Leave mechanical checks in CI." Either way a scope check, a fix budget and a record per step are more scripts. If one hook or your CI covers your need, you do not need phax. - Under phax, Codex's sandbox is the security mode, and Codex is not the
default. In
securemode a Codex phase runs in Codex's ownworkspace-writesandbox, with writes limited to the worktree and phax's own state, and network egress on or off; it is the one agent phax drives whose commands run in an OS sandbox (security). Codex is disabled until you enable it, Claude Code must stay installed as the fallback, the cost ledger does not cover Codex invocations, and Claude Code is the path phax exercises most (model routing).