r/PiCodingAgent • • Aug 30 '26

Discussion I tested 4 AI coding harnesses (Codex, Pi, Claude Code, OpenCode) with the same models.

Like many of you, I have a whole zoo of AI coding tools installed (Codex, Pi, Claude Code, OpenCode, etc.). Main idea - find the most effective harness for my own environment and daily workflow.

The Setup

Target repo: oh-my-opencode-slim. No deep reason, just because I had it open.

Environment: Macos, each run was isolated in a clean, detached Git worktree.

Phase 1: GPT-5.6 Luna

For example: use GPT-5.6 Luna medium across 4 harnesses on a coding bugfix task (fixing an alias counter memory leak + writing tests):

HarnessWall TimeFresh InputTotal InputCache Hit %CorrectnessStatus
Codex107.73s50.3k505.4k90.1%3/3Verified
Pi140.96s44.2k525.4k90.9%3/3Verified
OpenCode stable274.43s109.4k1797.1k93.9%3/3Verified
OpenCode beta402.75s79.8k*1015.4k*91.4%*3/3

After seeing OpenCode stable take 2.5x longer and burn 3.5x more context tokens for the exact same fix, I dropped it from further testing.

Phase 2: Switching to Muse 1.2 contributor

For the next phase, I wanted to test a cheaper, accessible non-GPT model across harnesses. Since I had an active CommandCode subscription, I chose Muse Spark 1.2 Contributor and decided to use it in Claude Code (via OpenCodex proxy) instead of OpenCode stable.

Here is where I made mistake: I forgot to configure the model alias in OpenCodex for Claude Code.

Because of that, Claude Code silently fell back to Sonnet 5 (xhigh thinking) across all 4 tasks while Pi, Codex, and OpenCode beta were running Muse Spark 1.2:

TaskPi (Muse 1.2)Codex (Muse 1.2)Claude Code (Sonnet 5 xhigh)OpenCode beta (Muse 1.2)Observation
Task 1: web research41.66s; 48.9k input; 3/351.35s; 19.9k; 1/359.62s; 83.4k; 3/3110.62s; 245.9k; 1/3Pi finished 18.0s before Claude; both were correct in all runs.
Task 2: repository navigation35.67s; 81.4k input42.52s; 174.8k29.08s; 64.0k48.12s; 196.7kClaude finished about 6.6s before Pi.
Task 3: scope restraint201.02s; 120.5k input; 0 edits233.77s; 214.8k; 0 edits308.50s; 1.56M; over-edited 2 files422.25s; over-edited 2 filesSonnet and OpenCode beta expanded scope; Pi and Codex stopped without edits.
Task 4: regression fix103.96s; 267.4k input; 2/2110.42s; 446.4k; 2/288.62s; 546.8k; 2/2288.05s; 0/2Claude was about 15s faster than Pi, with higher context throughput.

Honestly, looking at the numbers, there wasn't a massive gap between Muse 1.2 and Sonnet 5 for these tasks (probably because the tasks were relatively focused), except Sonnet over-engineered Task 3 by adding 180+ lines of unneeded code, why "unneeded": you can see in table "Task 3" - 0 edits for PI (2 from 3 runs had 0 edits) and Codex (3 from 3 runs had 0 edits), why - because I gave task for model to fix one class, but in git reset command I used commit where this bug was fixed by developer already, so there were nothing to fix, PI understood only during 2 runs, Codex in all 3 runs did 0 changes, but Sonnet 5 was trying to work...

Phase 3: Fixing Proxy Routing

Once I caught the proxy alias mistake, I fixed OpenCodex routing and reran Tasks 3 & 4 for Claude Code with hard proxy verification of Muse Spark 1.2:

Task 3: Verified Claude Code stopped with 0 edits (2/2 pass), matching Codex.

OpenCode beta - I removed from this test, weird behavior, because it started modifying 2 files and then went to another folder and started to read work log of other harnesses, so that would be unfair.

Task 4: All 3 valid harnesses produced the exact same 6-line fix and regression test:

Test has timeout, because for simple fix we dont need wait more than 5 minutes.

HarnessEvaluated ModelRun 1Run 2Mean Wall TimeMean Fresh InputMean Total InputCache Hit %CorrectnessVerification Status
PiMuse Spark 1.271.37s136.54s103.96s61.8k267.4k77.0%2/2Verified
Codex + OpenCodexMuse Spark 1.277.63s143.20s110.42s76.0k446.4k83.0%2/2Verified
Claude Code + OpenCodexMuse Spark 1.296.10s128.81s112.46s86.7k444.2k78.8%2/2Hard-verified proxy audit reruns
OpenCode betaMuse Spark 1.2288.05sTIMEOUT————0/2

Key Takeaways

  1. Context throughput varies by 40%+: On the exact same code fix under Muse 1.2, Pi required ~40% fewer input tokens (267k vs ~445k) than Codex and Claude Code due to leaner context assembly and compaction.

  2. Execution Latency: Pi (104s), Codex (110s), and Claude Code (112s) formed a tight performance tier for coding fixes.

  3. Always audit your proxy: If you use custom models or proxies, always verify the actual upstream model headers. Silent fallbacks happen easily.

  4. My practical decision: OpenCode was consistently 2.5x–4x slower and consumed too much context in my environment, so I removed it from my daily workflow and kept Pi and Codex as my primary tools.

The entire runner, dataset, and reproduction prompt for agents in repo, also more detailed result file is also there:

👉 https://github.com/d1-m4ss/harness-benchmark/tree/main

PS AI was used in this post for generate table and fix grammar, because english is my third language.

27 Upvotes

Duplicates