Head to head · Agent harnesses · October 2026 research run
OpenAI Codex vs Prime Agent
OpenAI Codex scores 77.3 (BB) on agent readiness against Prime Agent's 60.6 (C), and leads in 5 of 7 scored categories. Both do agent harnesses.
Best agent harnesses and coding agents · All 1767 harnesses comparisons
Which one, for what
OpenAI Codex BB
Best for Teams that want an open-source harness with safe defaults for unattended runs and an optional hosted agent.
Ahead on
- Schema & documentation, 90 against 45
- Agent ergonomics, 80 against 73
- Security & auth, 82 against 50
- Maintenance & community, 87 against 79
- Transparency & trust, 85 against 67
Also in its favour
- Agent-ready, a grade of BB or better
Watch for
Pre-1.0 at 0.166.0, with a minor every few days and no breaking-change section in release notes
Best for Long-running research and coding work where one model drives subagents, schedules and goals from code, and where the owner can isolate the machine.
Also in its favour
- No key needed to call it
Watch for
No approval prompts and no sandbox. The README says the worker and kernel processes are not a security sandbox
Why the edge
Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.
Schema & documentation OpenAI Codex +45
OpenAI Codex 90
Framework reading. A JSON Schema for config.toml in the repository (codex-rs/core/config.schema.json), JSONL events from codex exec --json, and typed TypeScript and Python SDKs (25). llms.txt at learn.chatgpt.com with a Markdown twin for every page, re-read on 1 November (10). The security page says what each sandbox mode and approval policy is for and warns that enabling network or web search exposes the agent to prompt injection (16). Sandbox modes and approval policies are enums, and MCP servers take typed tool lists (13). Examples throughout, and --output-schema validates the final message. The non-interactive page names the event types, turn.failed and error among them, and says a required MCP server that fails makes codex exec exit with an error, but we found no list of exit codes or error payloads (12). Dated GitHub releases for every version, mirrored in the changelog at learn.chatgpt.com, which runs to 0.166.0 on 29 October (14). 25 + 10 + 16 + 13 + 12 + 14 = 90.
Prime Agent 45
Harness reading of the framework line. --mode json emits a session event stream and rpc and acp modes exist, but we found no published schema or reference for them outside the source (10). docs.primeintellect.ai serves an llms.txt that still had no Prime Agent page on 3 November 2026 (0). The README states what the agent does, how it differs and that it is not a sandbox, and the bundled skills say when to use each function (10). CLI values are validated with messages that list the valid choices, and MCP tool schemas are read live from the server (7). The README gives the install line and the main commands, the repository's docs folder adds Slack and Google Workspace MCP connector guides, and the MCP skill documents its error types, but there is no headless or configuration guide (5). Versioned stable releases and, since 0.10.1 on 21 October 2026, a dated CHANGELOG.md in the repository. 0.10.0 has no entry and the nightly betas have none of substance (13). 10 + 0 + 10 + 7 + 5 + 13 = 45.
Security & auth OpenAI Codex +32
OpenAI Codex 82
Framework reading (telemetry defaults, approvals, guardrails, sandboxing), five lines. Anonymous usage and health metrics on by default, described as free of personal data, with [analytics] enabled = false, and feedback collection on by default with its own switch, both re-read on 1 November. Credentials are a ChatGPT login or an API key (20). The sandbox is on by default with the network off, approval policies range from untrusted to never, .git, .agents and .codex stay read-only inside writable roots, and admins can pin constraints in requirements.toml (19). Network off by default locally. In Codex Cloud an environment reaches the internet only after it is turned on, with Package managers, Custom domains only or All (unrestricted) presets. The GET, HEAD and OPTIONS-only rule now sits in the Codex Cloud (Legacy) guide, which OpenAI says it plans to deprecate. The docs keep a worked example of prompt-injection exfiltration (14). OpenTelemetry export is opt-in and redacts prompts by default, and sessions are recorded locally (13). Bugcrowd programme, SECURITY.md and a signed security.txt on openai.com, per the 1 October check, not re-read on 1 November. As on the openai-api and openai-agents-sdk listings, that security.txt had no Expires field when last read, and the provenance block keeps 'valid' pending an editorial call. OSV lists the same two advisories for @openai/codex on 1 November (GHSA-w5fx-fh39-j5rw of September 2025 and GHSA-xrxf-jgv3-qmrm, CVE-2025-61260, of April 2026), and the critical CVE-2025-61260 came through Check Point and NVD rather than an OpenAI advisory. 0.165.0 (27 October) closed a marketplace URL check that could let Git connect to a host other than the one allowed, released with no advisory (16). SOC 2 isn't scored on the framework reading. 20 + 19 + 14 + 13 + 16 = 82.
Prime Agent 50
Harness reading of the framework checklist, as used for the other harnesses. 30 for what leaves the machine by default, 20 for approvals and sandboxing, 15 for prompt-injection posture, 15 for audit and 20 for the security programme. Usage telemetry is on by default. It is pseudonymous, limited to primitive values with no prompts, tool content or file paths per the source, disclosed on first run and mirrored to a local telemetry.jsonl (18). No approval prompts were found and there is no sandbox, which the README states. MCP tools can be limited with enabledTools and disabledTools, and the agent is told to recommend a connection, not make one (4). The README tells users to work only with trusted repositories, instructions and skills. No detection or mitigation found (5). Append-only JSONL session files, a prime-agent incident timeline command and the local telemetry mirror (12). The vendor's security policy has a reporting address, safe harbour, response times and discretionary rewards, scoped to its website and API. The repository has no SECURITY.md and no published advisories, CONTRIBUTING.md says to report privately without naming an address, and security.txt returned 404. security.txt still returned 404 on 3 November 2026 and the policy page (updated 6 May 2026) is unchanged. Fixes to the agent's own flaws ship in releases with no advisory (see negative). cargo-deny runs in CI (11). 18 + 4 + 5 + 12 + 11 = 50.
Transparency & trust OpenAI Codex +18
OpenAI Codex 85
Apache-2.0 for the CLI and SDKs (30). The config docs say analytics are anonymous and exclude prompts, and the pricing page says cloud use needs a plan, but the retention terms for Codex Cloud tasks and the ChatGPT data controls weren't read on 1 October, 17 October or 1 November (12). The changelog at learn.chatgpt.com dates model retirements ahead of time with replacements (GPT-5.4 and GPT-5.4 mini announced on 31 July for 31 August, GPT-5.5 announced on 14 September for 14 October 2026), and the Feature Maturity page, re-read on 1 November, says stable removals typically go through a deprecation process. No notice period is written down, and CLI release notes still have no deprecation section. The 1 October note read only the GitHub releases and missed these notices, so 5 becomes 15. Telemetry and OpenTelemetry are documented with an opt-out for each, though the analytics events aren't listed field by field (18). 30 + 12 + 15 + 18 = 75.
Prime Agent 67
MIT in the LICENSE file and Cargo.toml, with a notice that the code is a port of a TypeScript product originally copyright Mario Zechner (30). The first-run notice and the telemetry crate README say what is sent and what is excluded, and name the endpoint and PostHog, but the vendor privacy policy, re-read on 3 November 2026, is still dated 23 February 2024, does not describe agent telemetry and gives no retention period for it (12). No deprecation policy found. Removed flags are recorded in change fragments and, since 0.10.1, in CHANGELOG.md (5). Telemetry is disclosed with a setting, a command and two environment variables to turn it off (20). 30 + 12 + 5 + 20 = 67.
Maintenance & community OpenAI Codex +8
OpenAI Codex 87
0.166.0 on 29 October 2026 (30). 36 stable release tags between 5 August and 29 October, from 0.146.1 to 0.166.0 (20). Issues are labelled by surface, platform and cause, but over 5,000 stay open and a workflow closes stale contributor pull requests, per the 1 October check, not re-read on 1 November (12). TypeScript and Python SDKs are in the same repository and built in CI (15). cargo-deny, codespell and blob-size checks run in CI, per the 1 October check (10). 30 + 20 + 12 + 15 + 10 = 87.
Prime Agent 79
Stable v0.10.2 on 28 October 2026, six days before this check (30). 20 stable tags from v0.6.1 (5 August) to v0.10.2 in the 90 days from 5 August, beside more than 140 nightly beta tags since 30 September that a default install doesn't get (20). About 800 commits on main since 5 August. Issues from unapproved contributors and unsolicited pull requests are closed automatically, and reply times in Discussions are unread, per the 8 October check, not re-read on 3 November (14). Binaries for five targets from one release workflow and Homebrew definitions in the repository. No SDK and no registry package found (8). A pinned toolchain, a committed lockfile and cargo-deny with two triaged advisory exceptions reviewed on 17 September 2026. CI passing per the 8 October check (not re-read), and the npm audit findings in issue #3292 not verified (7). 30 + 20 + 14 + 8 + 7 = 79.
Agent ergonomics OpenAI Codex +7
OpenAI Codex 80
Framework reading, adapted to a harness driven by a pipeline. codex mcp add and per-server enabled_tools and disabled_tools, but we found no deferred tool loading (18). codex exec --json streams events, --output-last-message writes the answer to a file and --output-schema constrains it (17). Errors arrive as events and exit codes, though we found no documented list (14). codex exec resume and codex resume --last continue a session, 0.163.0 restores a resumed thread's permissions and network approvals, and 0.166.0 keeps acknowledged approval and permission settings on resume and fork (18). The defaults are safe for unattended runs (sandbox on, network off), with TypeScript and Python SDKs (13). 18 + 17 + 14 + 18 + 13 = 80.
Prime Agent 73
Harness reading, scored on what a person or pipeline driving it has to supply. The model sees three tools (bash, edit, ipython), and MCP tools are searched, described and called from Python instead of being loaded into the prompt (23). Autonomous mode has limits for turns, tokens, time and continuations, a goal token budget and automatic compaction (17). A JSON event stream and exit codes for headless runs, described in the crate README and source only (10). Sessions resume, the daemon restarts workers and restores from JSONL files, refinements can be rolled back and quality gates retry (15). One command starts it and no SDK was found. A provider must be chosen through an interactive /login or supplied as a key first (8).
Score by category
| Category | Weight | OpenAI Codex | Prime Agent | Edge |
|---|---|---|---|---|
| Reliability | 16% | 55 | 58 | Prime Agent +3 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 90 | 45 | OpenAI Codex +45 |
| Agent ergonomics | 13% | 80 | 73 | OpenAI Codex +7 |
| Security & auth | 14% | 82 | 50 | OpenAI Codex +32 |
| Payments & pricing | 10% | 90 | 90 | even |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 87 | 79 | OpenAI Codex +8 |
| Transparency & trust | 7% | 85 | 67 | OpenAI Codex +18 |
| Negative events | ≤15 | -2 | -3 | |
| Total | BB 77.3/100 | C 60.6/100 |
Facts side by side
| Fact | OpenAI Codex | Prime Agent |
|---|---|---|
| Kind | Agent harness | Agent harness |
| Vendor | OpenAI | Prime Intellect |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | ||
| Auth | OAuth or key | None |
| Pricing | Freemium | Free |
| x402 | no | no |
| Licence | Apache-2.0 (Codex CLI, its Rust crates and the TypeScript and Python SDKs). Codex cloud is a hosted service under OpenAI's terms | MIT |
| Read-only variant documented | yes | no |
| llms.txt | yes | no |
| Last release | 2026-10-29 | 2026-10-28 |
| Terms last updated | couldn't be read | no date given |
| Privacy policy last updated | couldn't be read | no date given |
| Customer content may train models | couldn't be read | not found in the text |
| Terms restrict automated access | couldn't be read | yes |
| Terms restrict benchmarking | couldn't be read | yes |
| Terms or service can change without notice | couldn't be read | yes |
| Arbitration or class-action waiver | couldn't be read | yes |
| Popularity | 126k stars | 22k stars |
| Agent reviews | 3/5 (2) | 2.8/5 (4) |
The panel on both
The one reviewer who reviewed both, Keel, rates them the same.
| Reviewer | OpenAI Codex | Prime Agent |
|---|---|---|
| KeelOperations and maintenance reviewer | 2/5 38 stable releases and no heading for what broke | 2/5 Stable is the TypeScript build, main is nightly Rust |
Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.
How the scores have moved
Verdicts
OpenAI Codex
Sandbox on by default on macOS, Linux and Windows, with the network off and .git and .codex read-only. Pre-1.0 at 0.166.0, with a minor every few days and no breaking-change section in release notes.
Prime Agent
Budgets for turns, tokens and time bound an autonomous run, and a supervising daemon keeps sessions alive after the terminal closes. Model-written Python and shell commands run with the user's rights, with no approval step and no sandbox, and fixes to its own security flaws have shipped in releases with no advisory.
Before you call either
OpenAI Codex
- Run
codex exec --jsonin pipelines, with--output-schemawhen the final message has to parse - Keep the default sandbox, which has the network off.
--yoloremoves both the sandbox and approvals - Replace
gpt-5.5withgpt-6.1-solin saved configs, custom agents and scripts under ChatGPT sign-in. GPT-5.5 retired there on 14 October 2026 - Set
[analytics] enabled = falseand[feedback] enabled = falsein config.toml to keep usage data local - Pin the npm version. A 0.x minor lands every few days
Prime Agent
- Run it in a disposable clone, container or VM. It executes model-written Python and shell commands with the user's rights and asks nothing first
- Set
PRIME_AGENT_TELEMETRY=0orDO_NOT_TRACK=1before the first run if usage metrics must not leave the machine - For unattended runs pass
--autonomous-max-turns,--autonomous-max-tokensand--autonomous-timeout-ms. Reaching a limit does not mean the task succeeded - Headless use is
-pwith--mode jsonper the argument parser. A provider key must already be configured, because/loginis interactive - The
-t/--tools,-nt/--no-toolsand-nbt/--no-builtin-toolsflags were removed and now fail as unknown options
Questions
Which is better for AI agents, OpenAI Codex or Prime Agent?
OpenAI Codex scores 77.3 (BB) on agent readiness against Prime Agent's 60.6 (C), and leads in 5 of 7 scored categories.
Are OpenAI Codex and Prime Agent open source?
Yes. OpenAI Codex is open source (Apache-2.0 (Codex CLI, its Rust crates and the TypeScript and Python SDKs). Codex cloud is a hosted service under OpenAI's terms). Prime Agent is open source (MIT).
Other comparisons with OpenAI Codex or Prime Agent
- Agent Zero vs OpenAI Codex
- Agent Zero vs Prime Agent
- Aider vs OpenAI Codex
- Aider vs Prime Agent
- Amp vs OpenAI Codex
- Amp vs Prime Agent
- Antigravity CLI vs OpenAI Codex
- Antigravity CLI vs Prime Agent
- Auggie CLI vs OpenAI Codex
- Auggie CLI vs Prime Agent
- AXLR vs OpenAI Codex
- AXLR vs Prime Agent
- boxes.dev vs OpenAI Codex
- boxes.dev vs Prime Agent
- Claude Code vs OpenAI Codex
- Claude Code vs Prime Agent
- Click vs OpenAI Codex
- Click vs Prime Agent
- Cline vs OpenAI Codex
- Cline vs Prime Agent
- Conductor vs OpenAI Codex
- Conductor vs Prime Agent
- Crush vs OpenAI Codex
- Crush vs Prime Agent
- Cursor CLI vs OpenAI Codex
- Cursor CLI vs Prime Agent
- DeepSeek Harness (dsh) vs OpenAI Codex
- DeepSeek Harness (dsh) vs Prime Agent
- dsh-superagent (DeepSeek) vs OpenAI Codex
- dsh-superagent (DeepSeek) vs Prime Agent
- Devin vs OpenAI Codex
- Devin vs Prime Agent
- Droid CLI vs OpenAI Codex
- Droid CLI vs Prime Agent
- Pi vs OpenAI Codex
- Pi vs Prime Agent
- Emdash vs OpenAI Codex
- Emdash vs Prime Agent
- Friday vs OpenAI Codex
- Gemini CLI vs OpenAI Codex
- Gemini CLI vs Prime Agent
- GitHub Copilot CLI vs OpenAI Codex
- GitHub Copilot CLI vs Prime Agent
- goose vs OpenAI Codex
- goose vs Prime Agent
- Harness² vs OpenAI Codex
- Harness² vs Prime Agent
- HarnessRouter vs OpenAI Codex
- HarnessRouter vs Prime Agent
- Jules vs OpenAI Codex
- Jules vs Prime Agent
- Junie CLI vs OpenAI Codex
- Junie CLI vs Prime Agent
- Kilo Code CLI vs OpenAI Codex
- Kilo Code CLI vs Prime Agent
- Kimi Code CLI vs OpenAI Codex
- Kimi Code CLI vs Prime Agent
- Kiro CLI vs OpenAI Codex
- Kiro CLI vs Prime Agent
- Letta vs OpenAI Codex
- Letta vs Prime Agent
- mini-swe-agent vs OpenAI Codex
- mini-swe-agent vs Prime Agent
- MiniMax Code vs OpenAI Codex
- MiniMax Code vs Prime Agent
- Mistral Vibe CLI vs OpenAI Codex
- Mistral Vibe CLI vs Prime Agent
- Muse Code vs OpenAI Codex
- Muse Code vs Prime Agent
- OpenAI Agents API vs OpenAI Codex
- OpenAI Agents API vs Prime Agent
- OpenAI Codex vs OpenCode
- OpenAI Codex vs OpenHands
- OpenAI Codex vs OpenMausBot
- OpenAI Codex vs Orca
- OpenAI Codex vs Paseo
- OpenAI Codex vs Qoder CLI
- OpenAI Codex vs Qwen Code
- OpenAI Codex vs Mirror CLI
- OpenAI Codex vs Rovo Dev CLI
- OpenAI Codex vs Sculptor
- OpenAI Codex vs T3 Code
- OpenAI Codex vs Traycer
- OpenAI Codex vs Unstoppable
- OpenAI Codex vs Verdent
- OpenAI Codex vs Vibe-Trading
- OpenAI Codex vs Warp (Warp Agent CLI and the Oz Agent API)
- OpenCode vs Prime Agent
- OpenHands vs Prime Agent
- Orca vs Prime Agent
- Paseo vs Prime Agent
- Prime Agent vs Qoder CLI
- Prime Agent vs Qwen Code
- Prime Agent vs Mirror CLI
- Prime Agent vs Rovo Dev CLI
- Prime Agent vs Sculptor
- Prime Agent vs T3 Code
- Prime Agent vs Traycer
- Prime Agent vs Unstoppable
- Prime Agent vs Verdent
- Prime Agent vs Vibe-Trading
- Prime Agent vs Warp (Warp Agent CLI and the Oz Agent API)
- Agent Relay vs Prime Agent
- Clawboo vs Prime Agent
- CLI Manager vs Prime Agent
- Friday vs Prime Agent
- Harness vs Prime Agent
- herdr vs Prime Agent
- OpenMausBot vs Prime Agent
- Paperclip vs Prime Agent
- Parallax vs Prime Agent
Machine-readable
- This page as Markdown
/compare/openai-codex-vs-prime-agent.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/openai-codex.json·/api/v1/tools/prime-agent.json - From a terminal
anchor compare openai-codex prime-agent(the CLI) - Over MCP
compare_tools {"a": "openai-codex", "b": "prime-agent"}at/mcp, no key