AGENTS.md
guidance (when to use them). There is no deterministic stop-hook enforcement
for Codex — if you need that guarantee, pair Codex with ZeroPath PR scanning
so the diff is caught at review time.
What the installer writes
| File | What |
|---|---|
~/.codex/config.toml → [mcp_servers.zeropath] | ZeroPath MCP server |
~/.codex/AGENTS.md | Managed guidance block (between <!-- BEGIN/END ZEROPATH AGENT INTEGRATION --> markers) telling Codex to scan code it writes before finishing a task |
Manual MCP setup
Append to~/.codex/config.toml:
Notes
- If your Codex deployment restricts MCP servers (managed/cloud config or an
mcp_serversallowlist),zeropathmust be included in that allowlist; cloud-managed configuration takes precedence over~/.codex/config.toml. - The
zeropathCLI is installed at~/.zeropath/bin/zeropath, so Codex can also scan from the shell:~/.zeropath/bin/zeropath scan-code --diff --base-ref HEAD --caller agent --json. TheAGENTS.mdguidance mentions this as the fallback when MCP is unavailable.
Verify
Run/mcp in the Codex TUI and confirm zeropath is listed, or:
asyncCodeScans.submit, poll asyncCodeScans.status, and report the
asyncCodeScans.results findings.