Skip navigation
Claude Code vs Codex vs Pi: which coding agent wins?
0:00 / 1:10

Claude Code vs Codex vs Pi: which coding agent wins?

Arena.ai

@arena233K followers

Visit on X
373 likesDownloadOriginal post

85,347 views

Claude Code vs Codex vs Pi: which coding agent wins? Melissa Pan, PhD candidate at UC Berkeley’s Sky Computing Lab and previous Arena.ai intern, explored the hidden “harness tax”: how the system surrounding an AI model affects its cost and performance. She reports three surprising findings. One: harness choice impacts cost more than accuracy. To learn about all three findings, and what they mean for building useful coding agents on realistic budgets, check out the full video here:

22 Comments

Comments from the original post on X (Twitter)

  • Eric Stevens's profile picture

    @Eric_M_Stevens

    @melissapan Swap the model and barely anything changes. Rebuild the scaffolding around it and suddenly it's a different tool.

    2 likes

  • Curious Nori | AI · Food · Travel's profile picture

    @jilyannori

    @melissapan Well said.

    2 likes

  • VastPlan's profile picture

    @yandt888

    @melissapan Arena 对照 Claude Code、Codex 与 Pi,指出外围 harness 带来的成本差往往大于准确率差。代理任务的费用不只取决于模型单价,工具编排、重试与上下文装填会显著改写单次账单;选栈时应把 harness 与模型一并计入。

    2 likes

  • tootooc's profile picture

    @tootoocvc

    @melissapan 同模型换壳,账单和成功率一起飘——这句比榜单管用。一人公司选型别只盯 benchmark:环路怎么验、失败怎么停、状态写在哪。壳可以换;「过/不过」别寄存在某一个壳的默认里。

    1 like

  • owais | building 🏴‍☠️'s profile picture

    @OwaisLogs

    @melissapan Harness mattering more for cost than accuracy makes sense when so much of the bill is context re-sent every turn. Would love to see cost per solved task broken out by harness.

    1 like

  • Rach's profile picture

    @rachpradhan

    @melissapan @trycodegraff! as well!! it’s a self evolving harness haha

    1 like

  • 安叫兽|Bird🕊️ 🔶 BNB's profile picture

    @ajs6888

    @melissapan 原来测试套件才是偷偷抬成本的那只手

    1 like

  • VB's profile picture

    @techtactician

    @melissapan harness tax is the real scoreboard. same model, totally different bill depending on how messy the loop around it is

    1 like

  • RAZA | AI EXPLORER's profile picture

    @razaaitech

    @melissapan The harness tax is a fascinating angle. Really useful analysis for building efficient coding agents.

    1 like

  • Daniel's profile picture

    @imnotchalk

    @melissapan can someone give me the tldr 🤓

    1 like

  • Automater's profile picture

    @automater_ai

    @melissapan The 'which coding agent wins' answer is usually whichever harness stopped fighting the model. Measure tool-loop stability under load, not demo speed. #ClaudeCode

    1 like

  • Artzy's profile picture

    @heyartzy

    @melissapan The harness tax is an often overlooked performance killer

    1 like

  • ethereagle · building's profile picture

    @ethereaglehq

    @melissapan if harness moves cost more than accuracy, you're ranking the wrapper as much as the model. was that Claude Code vs Codex vs Pi on the same model, or did each keep its default?

    1 like

  • Asad Ullah 🇵🇸's profile picture

    @onesuitee

    @melissapan I think pi cost effective and powerful coding agent right now

    1 like

  • Raven's profile picture

    @heyraven_io

    @melissapan the model gets graded, the harness quietly invoices everyone

    1 like

  • Jeremy Fiance's profile picture

    @jfiance

    @melissapan This is awesome/helpful Melissa & Arena!

    1 like

  • Hunter Bown's profile picture

    @goodhunt

    @melissapan would love to see how codewhale performs!

    1 like

  • Silent · Dev Tools's profile picture

    @SilentDevTools

    Harness tax decides the winner more than the model card. Tonight: time-to-first-kept-diff on the same bug across Claude Code / Codex / your third agent, with identical AGENTS.md. Whichever burns fewer tokens per kept line for a week becomes the default lane — swap the rest to overflow only.

  • Fajar M Reza's profile picture

    @FReza1984

    @melissapan Agent benchmarks need matched tasks and budgets; harnesses can dominate outcomes.

  • IrradiatedFentOwl's profile picture

    @29joebidens

    @melissapan Female woman PagMan