FormingConfigpipublished fresh until

Same model, lower bill? Pi vs Claude Code vs Codex CLI as the harness for your coding agent

Summary A September 2026 UC Berkeley and Arena study (HarnessTax) ran 7 models in Claude Code, Codex CLI and the minimal open-source Pi harness. Success rates moved little between harnesses, but Claude Code cost about 2x Pi and 1.6x Codex on SWE-bench Lite. What that does and does not mean for your setup, as of October 2026.

Not for Claude Code vs Codex on a production repo; see claude-code-vs-codex-production-codebase

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The option

Option
AConfig · v1.3.0+wwfix.1Pi coding agent
How you use itA setting in your project
What it can doinstalls software · writes files · network · runs shell
What's inside
AConfig · v1.3.0+wwfix.1Pi coding agent
How you use it
A setting in your project
What it can do
installs software · writes files · network · runs shell
What's inside

What this thread does

The argument

The HarnessTax study (Arena blog, 16 September 2026, by Melissa Pan, Shuo Yang, Negar Arabzadeh, Wei-Lin Chiang, Ion Stoica and Matei Zaharia) spread widely on X, including a post by Pi's account and threads claiming that Pi "beats" Claude Code and Codex. The study's own numbers are more careful than many of those posts.

What the study measured

21 model and harness pairs: 7 models (including Claude Fable 5, Opus 4.8, Sonnet 4.6, GPT-5.6 Sol and Luna, Kimi K3) in Claude Code, Codex CLI and Pi. Each pair ran 30 sampled tasks from SWE-bench Lite and 30 from Terminal-Bench 2.0, three times each, at each harness's high-effort setting, capped at 100 turns, priced with one fixed API price list.

Results as stated by the authors

  • Harness choice barely changed success: on average within about ±2% on SWE-bench Lite and about ±5% on Terminal-Bench 2.0.
  • Cost did change. Across shared models, Claude Code cost about 2.0x Pi and 1.6x Codex on SWE-bench Lite, and 1.5x Pi on Terminal-Bench 2.0 (geometric means). The same model reached similar success at up to 5x the cost.
  • Example: Claude Fable 5 solved 97.8% in Claude Code, 96.7% in Codex and 96.7% in Pi, at $1.33 vs $0.67 per attempt for Claude Code vs Pi, with about the same number of turns.
  • Claude Code's first request carried over 10x Pi's initial context (longer instructions, larger tool schemas).
  • The model maker's own harness was not always best: an alternative harness had the highest observed success in 9 of 12 comparisons. GPT-5.6 Sol scored 83.3% in Pi vs 78.9% in Codex on Terminal-Bench 2.0, at $0.42 vs $0.76.

How to use this

  • Pay per token through an API? Harness choice is a real cost lever. Try the same model in Pi or Codex on a few of your own tasks and compare cost per finished task, not per request.
  • On a subscription (Claude Pro/Max, ChatGPT plans)? You usually cannot move the subscription model to another harness freely, and per-token cost matters less than usage limits.
  • Need sub-agents, plan mode, hooks, permissions, IDE integration? Pi deliberately ships without sub-agents and plan mode; you add them with extensions. Claude Code's extra context pays for features the benchmarks did not measure.

Caveats

  • Two public benchmarks, 30 tasks each, which the models may have seen in training. The authors say results may differ on other workloads.
  • Prompt caching changes real bills; the study used fixed list prices.
  • Pi's account promoting the study is not neutral, and neither are the harness makers.

The package below installs Pi so you can run your own side-by-side.

Primary source

Primary source: HarnessTax, Arena blog (Arena, published 16 September 2026, updated 18 September; read 18 October 2026). Checked: 21 model and harness pairs across seven models and three harnesses; the same 30 sampled tasks from SWE-bench Lite and Terminal-Bench 2.0, three runs per task, high effort, 100-turn cap, one fixed price list dated 1 September 2026; success effect within about ±2% and ±5%; Claude Code about 2.0x Pi and 1.6x Codex on SWE-bench Lite and 1.5x Pi on Terminal-Bench 2.0 (geometric means); up to 5x cost for similar success; Claude Fable 5 at 97.8%, 96.7% and 96.7% with $1.33 vs $0.67; Claude Code's initial context over 10x Pi's; an alternative harness highest in nine of twelve comparisons; GPT-5.6 Sol 83.3% in Pi vs 78.9% in Codex at $0.42 vs $0.76; the author list. Not verified: the UC Berkeley affiliation (two authors are listed there elsewhere, not on the blog text I read), Fable's turn counts, Pi shipping without sub-agents and plan mode, the X posts, and the Pi package install.

Started from a post by @pidotdev, packaged by the editor. Original post

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Same model, lower bill? Pi vs Claude Code vs Codex CLI as the harness for your coding agent
Summary: A September 2026 UC Berkeley and Arena study (HarnessTax) ran 7 models in Claude Code, Codex CLI and the minimal open-source Pi harness. Success rates moved little between harnesses, but Claude Code cost about 2x Pi and 1.6x Codex on SWE-bench Lite. What that does and does not mean for your setup, as of October 2026.

## Options
- A · Pi coding agent · early, no verdict yet · installs software · writes files · network · runs shell
Copy for agent
get the whatworks thread harness-choice-pi-vs-claude-code-codex and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread harness-choice-pi-vs-claude-code-codex

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · Pi coding agent

Minimal, extensible open-source coding agent CLI (MIT) with four built-in tools: read, write, edit and bash. Connects to many model providers via subscription login or API key. Use it to compare cost and results against your current harness on the same model.

Format
Config
Source
github:earendil-works/pi#packages/coding-agent
Pinned
v1.3.0+wwfix.1 · 71023aec1546
Content hash
71023aec1546d6d6
Audit
scan passed
Can do
installs software · writes files · network · runs shell
Works with
pi
Check
Pi 1.3.0 installed in the project; The pi CLI runs without a download; Node.js 22.19 or newer
Author
@earendil-works
Kudos
0
Are you @earendil-works? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package pi-coding-agent before installing

A · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package pi-coding-agent
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp