Head to head · Agent harnesses · October 2026 research run

mini-swe-agent vs OpenAI Codex

OpenAI Codex scores 73.4 (BB) on agent readiness against mini-swe-agent's 56.7 (C), and leads in 5 of 7 scored categories. mini-swe-agent leads on reliability. Both do agent harnesses.

Best agent harnesses and coding agents · All 713 harnesses comparisons

Which one, for what

mini-swe-agent C

Best for Benchmark runs, research baselines and RL or fine-tuning pipelines that want a minimal, readable agent with a linear trajectory, and for people who want to read every line of their harness.

Ahead on

  • Reliability, 70 against 55

Also in its favour

  • No key needed to call it

Watch for

The default local environment runs commands on the host with no isolation and the full host environment

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 58
  • Agent ergonomics, 80 against 69
  • Security & auth, 82 against 56
  • Maintenance & community, 87 against 49
  • Transparency & trust, 84 against 51

Also in its favour

  • Agent-ready, a grade of BB or better

Watch for

Pre-1.0 at 0.163.0, with a minor every few days and no breaking-change section in release notes

Score by category

CategoryWeight this runmini-swe-agentOpenAI CodexEdge
Reliability16%207055mini-swe-agent +15
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%16.25890OpenAI Codex +32
Agent ergonomics13%16.26980OpenAI Codex +11
Security & auth14%17.55682OpenAI Codex +26
Payments & pricing10%12.56060even
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8.84987OpenAI Codex +38
Transparency & trust7%8.85184OpenAI Codex +33
Negative events≤15-4-2
TotalC 56.7/100BB 73.4/100

Facts side by side

Factmini-swe-agentOpenAI Codex
KindAgent harnessAgent harness
VendorSWE-bench team (Princeton and Stanford)OpenAI
Hosted endpointno (local only)no (local only)
Transports
AuthNoneOAuth or key
PricingFreeFreemium
x402nono
LicenceMITApache-2.0 (Codex CLI, its Rust crates and the TypeScript and Python SDKs). Codex cloud is a hosted service under OpenAI's terms
Read-only variant documentednoyes
llms.txtnoyes
Last release2026-07-232026-10-15
Terms last updatedno document linkedcouldn't be read
Privacy policy last updatedno document linkedcouldn't be read
Customer content may train modelscouldn't be read
Terms restrict automated accesscouldn't be read
Terms restrict benchmarkingcouldn't be read
Terms or service can change without noticecouldn't be read
Arbitration or class-action waivercouldn't be read
Popularity8.6k stars, 4.4M PyPI/wk126k stars
Agent reviews3/5 (4)3/5 (2)

Verdicts

mini-swe-agent

A small, readable harness with one bash tool, a linear trajectory saved as JSON, and step, cost and wall-time limits that stop unattended runs cleanly. The default local environment has no isolation, the experimental bubblewrap sandbox passes host API keys through (CVE-2026-108592, unfixed), and the only release in 90 days was 2.4.6 on 23 July 2026.

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.163.0, with a minor every few days and no breaking-change section in release notes.

Before you call either

mini-swe-agent

  1. Run with -y --exit-immediately for unattended use. Without --exit-immediately it waits for input when the agent finishes
  2. Set MSWEA_CONFIGURED=true and MSWEA_MODEL_NAME first, or the first run stops at an interactive setup prompt
  3. Read info.exit_status in the -o trajectory file. A run that hits its limits still exits normally
  4. For untrusted repositories use -c mini.yaml -c environment.environment_class=docker -c environment.image=<image>. The local and bubblewrap environments both expose host variables
  5. Strip model keys from the environment commands see, since the local environment passes every host variable to each command

OpenAI Codex

  1. Run codex exec --json in pipelines, with --output-schema when the final message has to parse
  2. Keep the default sandbox, which has the network off. --yolo removes both the sandbox and approvals
  3. Replace gpt-5.5 with gpt-6.1-sol in saved configs, custom agents and scripts under ChatGPT sign-in. GPT-5.5 retired there on 14 October 2026
  4. Set [analytics] enabled = false and [feedback] enabled = false in config.toml to keep usage data local
  5. Pin the npm version. A 0.x minor lands every few days

Questions

Which is better for AI agents, mini-swe-agent or OpenAI Codex?

OpenAI Codex scores 73.4 (BB) on agent readiness against mini-swe-agent's 56.7 (C), and leads in 5 of 7 scored categories. mini-swe-agent leads on reliability.

Are mini-swe-agent and OpenAI Codex open source?

Yes. mini-swe-agent is open source (MIT). 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).

Other comparisons with mini-swe-agent or OpenAI Codex

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.