Codex verification, from task to merge

Codex works in its own sandbox and reports back. Headron decides whether the change is proven.

How Codex reads Headron

AGENTS.md
Codex reads AGENTS.md. headron init generates it from the same body as CLAUDE.md, so both agents read one contract.
.codex/config.toml
headron init adds the MCP server entry below. Running init again leaves an existing entry alone.

The entry

# written by `headron init`
[mcp_servers.headron]
command = "headron-mcp"

The entry runs headron-mcp from your PATH, so install the package first:

uv tool install headron-software && headron doctor
cd your-repo && headron init

Where Codex fits

In Headron's agent routing policy, Codex is the lane for deterministic repository edits and architecture work. mind_route reads that policy for a set of changed files and names the suggested agent and model tier.

The common mistake

Answering from the visible diff instead of the route. A diff shows what changed, not what the change owes. A change that spans two languages owes two gates, so ask the route for each file.

Check the result

headron gate path/to/changed_file.py
headron verify --changed
headron verify --receipt

What each verdict means is in the docs. For the same setup in other agents, read Claude Code verification and Cursor agent verification.

Questions

How do I verify Codex changes?

Run headron init so Codex gets the MCP entry and AGENTS.md, then run headron verify --changed on the result. Use headron verify --receipt to save a record.

Does Headron replace the Codex sandbox?

No. Codex keeps its sandbox and approvals. Headron adds the checks the change owes and refuses an unproven commit.

What if Codex reports that the tests passed?

Treat it as a claim. Headron runs the owed checks itself and reports each as PASS, FAIL, SKIP or NOT RUN. Only PASS counts.

Does the Codex entry need a full path?

No. It runs headron-mcp from your PATH, so install the package once with uv tool install headron-software.

Related guides

Start

Run the free, MIT-licensed verifier or connect through MCP. Headron Harness shows your runs, checks and receipts in one account.