Tag: Terminal-Bench

  • Claude Code vs Codex CLI: Which Coding Agent Wins on Cost

    Claude Code vs Codex CLI comes down to token math, not vibes. Codex bills GPT-5.6 Sol at $5/$30 per million tokens. Claude Opus 5 runs $5/$25 — but Anthropic’s own docs warn its newer tokenizer emits roughly 30% more tokens for the same text. That erases the discount. Codex wins on cost per solved task. Claude Code wins on agent orchestration.

    Both agents shipped meaningful releases this month, and both are now close enough on quality that price is the deciding variable. Here is the full breakdown, with every figure sourced.

    What changed for Claude Code vs Codex CLI in the last week?

    Anthropic shipped four Claude Code builds between August 13 and August 18, 2026. The headline change is subagent forking on by default. OpenAI’s Codex CLI moved earlier in the month, adding a one-command importer that pulls your Claude Code setup straight into Codex.

    Claude Code v2.1.232 made subagent_type: "fork" the default, so spawned agents inherit the full conversation and prompt cache. It also added cross-session @ mentions, letting one session message another by name.

    v2.1.233 added GitLab merge request support on August 15. v2.1.234, first seen August 18, added automatic session continuation when you hit a usage limit — a direct answer to the biggest complaint about subscription-metered agents.

    Codex CLI v0.147.0, dated August 4, 2026, added --approve-for-me for auto-reviewed approvals, opt-in support for the MCP 2026-07-28 protocol, and /import, which pulls supported setup and recent chats from Claude Code and Cursor. OpenAI is openly courting defectors.

    Which is better for coding, Claude Code or Codex CLI?

    On raw capability the two are inside each other’s error bars. The official Terminal-Bench harness leaderboard puts Claude Code first by 0.7 points. Artificial Analysis, running the same benchmark against models rather than harnesses, puts OpenAI first by 0.4 points. Neither gap is decisive.

    The harness leaderboard gives Claude Code the edge

    On the official Terminal-Bench 2.1 leaderboard, Claude Code running Fable 5 sits at 83.8% (±1.2), submitted June 7, 2026. Codex with GPT-5.5 follows at 83.1% (±1.1).

    Below that, Cursor CLI on Grok 4.5 scores 79.3%, Claude Code on Opus 4.8 hits 78.9%, and Codex on GPT-5.6 Terra lands at 78.4%. Gemini CLI on Gemini 3.1 Pro trails at 65.8%.

    Read that spread carefully: the harness matters less than the model inside it. Swapping Fable 5 for Opus 4.8 inside the same Claude Code wrapper costs 4.9 points.

    The model leaderboard gives OpenAI the edge

    Artificial Analysis runs Terminal-Bench v2.1 across 89 curated tasks spanning software engineering, sysadmin, data processing, model training and security. GPT-5.6 Sol at xhigh effort tops it at 89.5%.

    Claude Opus 5 at max effort scores 89.1%. Grok 4.6 at high effort takes third with 88.4%. A 0.4-point gap on an 89-task benchmark is roughly one third of a task. Call it a tie.

    How much do Claude Code and Codex CLI cost in 2026?

    Anthropic prices Claude Opus 5 at $5 input and $25 output per million tokens. OpenAI prices GPT-5.6 Sol at $5 and $30. On the sticker, Anthropic is 17% cheaper on output. Subscription tiers land within $20 of each other at every level.

    Token prices, side by side

    ModelInput / 1MOutput / 1MCached inputContext
    Claude Opus 5$5$25$0.50200K (1M available)
    Claude Sonnet 5$2$10$0.20200K
    Claude Fable 5$10$50$1200K
    GPT-5.6 Sol$5$30$0.501.05M
    GPT-5.6 Terra$2$12$0.201.05M
    GPT-5.6 Luna$0.20$1.20$0.021.05M
    Sources: Claude Platform pricing docs; OpenAI GPT-5.6 announcement (July 30, 2026) and published API rate card, August 18, 2026 snapshot.

    The tier structures mirror each other almost exactly. Sonnet 5 and Terra both cost $2 input. Anthropic has no answer to Luna’s $0.20/$1.20, which OpenAI claims beats Fable 5 on Agents’ Last Exam at an estimated cost per task nearly 99% lower.

    Subscription plans and what they actually buy

    • Claude Free — $0. Claude Code included, limits reset on a rolling five-hour window.
    • Claude Pro — $20/month, or $17/month billed annually. At least 5x Free usage per session.
    • Claude Max — from $100/month, in 5x and 20x tiers above Pro.
    • Codex Go — $8/month, web and CLI access only.
    • Codex Plus — $20/month, adds IDE and iOS.
    • Codex Pro — $100/month (5x) and $200/month (20x).

    One structural difference matters. Anthropic pools your usage: web, desktop, mobile and Claude Code all draw from the same bucket. Chat with Claude all afternoon and your coding agent gets less runway.

    OpenAI meters Codex in credits. Its published rate card charges 125 credits per million Sol input tokens and 750 per million output. At the standard $0.04 per credit, that is exactly the $5/$30 API rate — no subscription markup, no discount. OpenAI’s own guidance puts real-world spend at roughly $100 to $200 per developer per month.

    What is the real cost per solved task?

    Price per token is the wrong metric. What you pay is price per token multiplied by tokens consumed, and on that measure Codex currently wins by a wide margin. Two multipliers work against Claude: a heavier tokenizer and a chattier agent loop.

    The tokenizer tax nobody prices in

    Anthropic’s own pricing documentation carries a warning most buyers skip: Claude 4.7 and later use a newer tokenizer that produces about 30% more tokens for the same text than earlier models.

    Run the arithmetic. Opus 5 output at $25 per million, inflated 30%, is an effective $32.50 for the text volume that Sol bills at $30. Anthropic’s 17% headline discount becomes an 8% premium.

    The token-efficiency gap is the bigger number

    Independent head-to-head testing published by Morph puts the consumption gap at 3.2x to 4.2x. On a Figma plugin build, Codex burned 1,499,455 tokens against Claude Code’s 6,232,242. On a scheduler app, 72,579 against 234,772.

    Combine the two effects and the verdict is brutal. A 17% per-token discount against a 4.2x volume gap leaves Claude Code roughly 3.5x more expensive per completed task in that test set.

    That gap is a workflow choice, not a defect. Claude Code explores more, forks more subagents, and reads more of your repo. You are paying for breadth. Whether breadth is worth 3.5x depends entirely on whether your tasks are ambiguous or well specified.

    Which coding agent should you buy in 2026?

    Pick Codex if your work is well-specified and high-volume. Pick Claude Code if your work is exploratory, multi-repo, or heavy on parallel agents. Pick Luna or Sonnet 5 for anything routine — the flagship tier is wasted on boilerplate, and that is where most teams overspend.

    Your situationBuyMonthlyWhy
    Solo dev, tight budgetCodex Go$8Cheapest real CLI agent; token efficiency stretches it furthest
    Solo dev, daily driverClaude Pro (annual)$17Pooled usage across chat and code; cheapest flagship access
    High-volume refactorsCodex Plus or Pro$20–$2003–4x fewer tokens per task at near-identical benchmark scores
    Parallel agent swarmsClaude Max 20x$200Fork-by-default subagents, no published parallel-agent cap
    Large-context monorepoCodex on SolUsage-based1.05M-token context at flat pricing under the long-context threshold
    Routine boilerplateCodex on LunaUsage-based$0.20/$1.20 per million; 96% cheaper output than Sol
    Recommendations based on August 2026 published pricing and benchmark data.

    Is Claude Code worth $200 a month in 2026?

    Yes, if you run agents in parallel. Max 20x buys 20x the per-session allowance of Pro, and Claude Code’s fork-by-default subagents inherit the prompt cache, so parallelism is cheap in wall-clock terms. Codex reportedly caps developers at eight parallel agents.

    No, if you are a single developer running one session at a time. At that duty cycle you will not exhaust Pro’s $17 annual tier, and the extra $183 buys headroom you never touch.

    The August 18 addition of automatic session continuation at usage limits changes the calculus slightly. Hitting a cap now costs you a pause rather than a lost session, which makes the cheaper tiers more tolerable.

    For the model layer underneath these harnesses, our breakdowns of Muse Spark vs Claude Opus 5 and Gemini 3.7 Flash vs Claude Sonnet 5 cover the cost-per-coding-point math in detail.

    Frequently asked questions

    Can I switch from Claude Code to Codex CLI without redoing my setup?

    Yes. Codex CLI v0.147.0, released August 4, 2026, added /import, which pulls supported setup files and recent chats from both Claude Code and Cursor.

    Which has the larger context window?

    Codex. All three GPT-5.6 tiers carry a 1.05M-token window. Anthropic’s pricing page lists 200K as standard, noting that 4.5+ models include a 1M-token window at standard pricing.

    Does Claude Code cost extra on top of a Claude subscription?

    No. Claude Code is included on Free, Pro and Max, and shares the same usage pool as web, desktop and mobile. You can enable pay-as-you-go credits on paid plans once you hit a limit.

    Is the cheapest model good enough for coding?

    For routine work, often yes. OpenAI states Luna outperforms Fable 5 on Agents’ Last Exam at an estimated cost per task nearly 99% lower. On Terminal-Bench 2.1, Codex on Luna still scored 75.7%.

    Which agent tops the Terminal-Bench leaderboard right now?

    Claude Code with Fable 5, at 83.8%, leads the official harness leaderboard. On Artificial Analysis’s model-level run of the same benchmark, GPT-5.6 Sol leads at 89.5%.

    Do open-weight models beat either of these on cost?

    On price per token, easily. On benchmark parity, not yet at the top tier. We compared the leading options in GLM-5.3 vs DeepSeek V4 Pro.

    Will these prices hold?

    Assume not. The DeepSeek price increase showed how fast the floor can move. OpenAI cut Luna’s rate on July 30 and raised long-context rates at the same time.

    The bottom line

    Buy Codex if you are optimizing spend. The benchmark gap between the two is smaller than the measurement error, and Codex delivers that parity at roughly a third to a quarter of the token consumption. That is not a rounding difference — on a $200/month budget it is the gap between running out on day 20 and finishing the month.

    Buy Claude Code if you are optimizing throughput on ambiguous work. Fork-by-default subagents, cross-session mentions and an uncapped parallel-agent model make it the better orchestrator, and orchestration is where the next year of agent productivity gets won.

    What it depends on, precisely: if your average task ships with a clear spec and acceptance criteria, Codex is cheaper for identical output. If your average task starts with “figure out why this breaks,” Claude Code’s extra tokens are buying you something real.

    The move most teams should make is neither: run Luna or Sonnet 5 for 80% of tasks and reserve the flagship tier for the 20% that need it. That single routing decision saves more money than picking the right vendor.

    Sources

  • GLM-5.3 vs DeepSeek V4 Pro: Which Open-Weight Coder to Buy

    GLM-5.3 vs DeepSeek V4 Pro comes down to one thing: you can download DeepSeek today. Its MIT-licensed weights shipped August 12, 2026, with a 1M-token context, and DeepSeek’s own API lists $0.435 per million input tokens against $0.87 output. GLM-5.3 landed two days later with stronger cyber scores, no published per-token price, and weights held back roughly two weeks.

    Two of the most consequential open-weight coding models of the year shipped 48 hours apart. Both vendors published benchmark tables claiming frontier-class performance. Neither number has been independently replicated.

    Here is what the money actually says.

    What shipped in the GLM-5.3 vs DeepSeek V4 Pro week?

    DeepSeek V4 Pro 0813 went generally available on August 12, 2026, after a preview build dated April 24. Z.ai launched GLM-5.3 on August 14. Both target agentic coding and terminal work. Only one of them can be run on your own hardware right now.

    DeepSeek V4 Pro 0813: 1.6 trillion parameters, MIT license

    V4 Pro is a mixture-of-experts model with 1.6 trillion total parameters and 49 billion active per token, according to TechTimes’ launch coverage. Context window is 1,048,576 tokens. The license is MIT — the most permissive terms in the frontier tier.

    Artificial Analysis ranks it third out of 1,075 models evaluated on its Intelligence Index, with a score of 53, and measures output at 75.4 tokens per second with a 1.69-second time to first token.

    GLM-5.3: same base model, rebuilt post-training

    Z.ai did something unusual. GLM-5.3 reuses the 743-billion-parameter base model from GLM-5.2 with no new pre-training run, per MarkTechPost’s technical breakdown. Every gain came from post-training.

    The gains are not small. Terminal-Bench 3.0 went from 4.6 to 28.3. DeepSWE v1.1 climbed from 46.2 to 66.9. That is a roughly 45% relative jump on agentic software engineering from post-training alone.

    Which is better for coding, GLM-5.3 or DeepSeek V4 Pro?

    On raw self-reported coding scores, DeepSeek V4 Pro leads. It claims 62.7 on DeepSWE and 87.9 on Terminal-Bench 2.1. GLM-5.3 reports 66.9 on DeepSWE v1.1 and 28.3 on Terminal-Bench 3.0. The benchmarks are different versions, so the comparison is not apples to apples — and that is the whole problem.

    The benchmark numbers nobody has verified

    DeepSeek’s self-reported 87.9 on Terminal-Bench 2.1 would place it first in the world. It does not appear on the benchmark’s own board.

    The official Terminal-Bench 2.1 leaderboard is topped by Claude Code running Fable 5 at 83.8% ± 1.2%, followed by Codex with GPT-5.5 at 83.1% and Cursor CLI with Grok 4.5 at 79.3%. No DeepSeek entry exists.

    TechTimes noted the same gap: V4 Pro’s scores “have not been independently replicated by any third-party evaluator as of publication.”

    Independent evaluator Artificial Analysis runs its own Terminal-Bench v2.1 harness and gets different absolute numbers again: GPT-5.6 Sol at xhigh effort scores 89.5%, Claude Opus 5 at max effort 89.1%, Grok 4.6 at 88.4%.

    Three sources, three scales, zero cross-comparability. Treat every vendor coding number as a marketing claim until a third party runs the harness.

    Where GLM-5.3 actually wins

    Security. GLM-5.3 scores 84.5% on CyberGym, up from 77.2%, ahead of Mythos 5 at 83.8% and GPT-5.6 Sol at 83.6%. DeepSeek V4 Pro self-reports 83.3%.

    ExploitBench more than doubled, from 24.4% to 54.4%. Z.ai says the model surfaced 2,436 vulnerabilities across 269 open-source projects, 1,097 of them rated critical or high severity.

    If your workload is vulnerability triage or defensive security automation, that is the strongest open-weight number on the board.

    How much does each model cost per million tokens?

    DeepSeek is cheaper — but only if you buy direct. The same model costs roughly 2.8x more input and 2.8x more output through a marketplace. GLM-5.3 has no published per-token rate at all; Z.ai’s price table still lists GLM-5.2. That pricing opacity is a real cost.

    Metric DeepSeek V4 Pro 0813 GLM-5.3
    Launch date Aug 12, 2026 (GA) Aug 14, 2026
    Input / 1M (vendor direct) $0.435 cache miss Not published (GLM-5.2: $1.40)
    Cached input / 1M $0.003625 Not published (GLM-5.2: $0.26)
    Output / 1M (vendor direct) $0.87 Not published (GLM-5.2: $4.40)
    Input / output via OpenRouter $1.218 / $2.436 GLM-5.2: $0.50 / $3.15
    Parameters 1.6T total / 49B active 743B base (shared with 5.2)
    Context window 1,048,576 tokens Not disclosed
    License MIT, weights live Weights ~2 weeks post-launch
    Subscription option None $18 / $80 / $168 per month

    Sources: TechTimes, OpenRouter, OpenRouter GLM 5.2.

    The marketplace markup is the hidden tax

    Three sources quote three different prices for the identical DeepSeek model. TechTimes lists DeepSeek’s own $0.435 / $0.87. OpenRouter lists $1.218 / $2.436. Artificial Analysis measures $1.32 input and $3.96 output, with a blended rate of $0.69 per million at a 7:2:1 ratio.

    On a 500-million-token month at a typical 3:1 input-output split, that spread is real money: roughly $272 buying direct against roughly $685 through OpenRouter. Same weights, same model ID, 2.5x the invoice.

    DeepSeek has also signaled another increase is coming, with no timeline. Anyone budgeting off today’s rate should read our breakdown of the DeepSeek price increase that ended the AI price war.

    Subscription versus per-token

    Z.ai’s answer to pricing volatility is a flat plan. The GLM Coding Plan runs $18/month for Lite, $80 for Pro and $168 for Max, with weekly credit quotas of 10,000, 60,000 and 140,000 respectively.

    For a solo developer hammering an agent all day, $18 flat beats metered billing on predictability alone. For an API-backed product with variable load, per-token wins on unit economics.

    Can you actually download the weights?

    DeepSeek yes, GLM-5.3 not yet. This is the single most decisive difference between the two models and it gets buried under benchmark tables. An open-weight model you cannot download is a closed model with a press release.

    Z.ai says GLM-5.3 weights land roughly two weeks after the August 14 launch, once “safety evaluation and hardening” finish. Until then, access is API, GLM Coding Plan, or ZCode only.

    That delay is defensible given the model’s exploit-generation scores. It is still a delay, and it has three concrete consequences:

    • No air-gapped deployment. Regulated teams that cannot send code to a Chinese API endpoint are locked out entirely.
    • No cost floor. You cannot benchmark self-hosted cost per token against the API rate, which is the entire argument for open weights.
    • No fork risk protection. If Z.ai changes pricing or terms, there is no downloaded checkpoint to fall back on.

    DeepSeek’s MIT license carries none of those problems. For the economics of running weights yourself, see our analysis of what self-hosting Qwen3.8-Max really costs.

    Which model should you pick for your use case?

    Pick DeepSeek V4 Pro for long-context work, self-hosting and cost-sensitive production. Pick GLM-5.3 for security workloads and for flat-rate interactive coding. Neither beats Claude Fable 5 or GPT-5.5 on the independently verified Terminal-Bench leaderboard, so neither is the right call if raw capability is your only constraint.

    Use case Pick Why
    Self-hosted / air-gapped DeepSeek V4 Pro MIT weights available now
    Large-repo refactors DeepSeek V4 Pro 1M-token context confirmed
    High-volume API product DeepSeek V4 Pro $0.435 / $0.87 direct rate
    Vulnerability triage GLM-5.3 84.5% CyberGym, top open score
    Solo dev, predictable bill GLM-5.3 $18/month Coding Plan floor
    Long-horizon agent runs GLM-5.3 Terminal-Bench 3.0: 4.6 to 28.3
    Absolute best coding score Neither Fable 5 leads at 83.8% verified

    Is GLM-5.3 worth it in 2026?

    Yes, but narrowly. GLM-5.3 is worth paying for if you are doing security work or want a fixed monthly bill. It is not worth waiting for if you need weights on your own GPUs this quarter, and it is not the best coder available at any price.

    Z.ai calls it “the strongest open-weights coder on the market.” Its own numbers complicate that. On Terminal-Bench 3.0, GLM-5.3’s 28.3 trails Claude Fable 5 at 33.7 and GPT-5.6 Sol at 34.6. On DeepSWE v1.1, its 66.9 trails Kimi K3 at 67.5 and Fable 5 at 69.7.

    The one benchmark where GLM-5.3 leads outright is Z.ai Code Bench — Z.ai’s own benchmark. It scores 31.4% at roughly 50,000 tokens per task against Claude Opus 4.8 at 29.5% using 120,000 tokens. Efficient, and self-graded.

    Efficiency is the real story there. Beating a frontier closed model while spending 58% fewer tokens per task is a genuine margin advantage — if the benchmark holds up externally.

    Frequently asked questions

    Is DeepSeek V4 Pro open source?

    The weights are MIT-licensed and available, which permits commercial use, modification and redistribution. Training data and code are not released, so it is open-weight rather than fully open-source.

    When do GLM-5.3 weights release?

    Z.ai said roughly two weeks after the August 14, 2026 launch, pending safety evaluation and hardening. That points to late August. No license has been confirmed.

    What is the cheapest way to run DeepSeek V4 Pro?

    Direct through DeepSeek’s API at $0.435 per million input tokens on a cache miss and $0.87 output. Cache hits drop input to $0.003625. Marketplace routing costs roughly 2.5x more.

    Does GLM-5.3 beat Claude on coding?

    No, on the numbers Z.ai published. GLM-5.3 scores 28.3 on Terminal-Bench 3.0 against Claude Fable 5’s 33.7. It leads only on Z.ai’s internal Code Bench and on CyberGym.

    Why do Terminal-Bench scores differ between sources?

    Because the harness and agent scaffold change the result. Claude Code with Fable 5 scores 83.8% on the official 2.1 board, while Artificial Analysis’s own v2.1 run puts GPT-5.6 Sol at 89.5%. Only compare scores measured by the same evaluator.

    Which model has the bigger context window?

    DeepSeek V4 Pro, at 1,048,576 tokens confirmed by both OpenRouter and Artificial Analysis. Z.ai has not disclosed GLM-5.3’s context length.

    Is GLM-5.3’s cyber capability a risk?

    Z.ai treated it as one, holding weights for safety hardening after ExploitBench scores doubled to 54.4%. The model reportedly found 1,097 critical or high-severity vulnerabilities across 269 open-source projects.

    The bottom line

    Buy DeepSeek V4 Pro. Today, direct from DeepSeek, at $0.435 in and $0.87 out.

    It has the weights you can actually download under MIT, the 1M-token context you can actually verify, and a price roughly 3x below what the same model costs through a marketplace. Third place out of 1,075 models on Artificial Analysis’s Intelligence Index is enough capability for the overwhelming majority of production coding work.

    Buy GLM-5.3 in exactly two situations: your workload is security-focused, where 84.5% on CyberGym is the best open-weight number published; or you want a $18-to-$168 monthly ceiling instead of metered billing that DeepSeek has already warned will rise again.

    And discount both vendors’ headline coding claims. DeepSeek’s 87.9 on Terminal-Bench 2.1 would top the world leaderboard, and DeepSeek is not on that leaderboard. Until a third party runs the harness, those are sales figures, not results. For a comparison where the numbers were independently checked, see our breakdown of cost per coding point across Gemini 3.7 Flash and Claude Sonnet 5, and our look at Meta’s 4x cheaper coding model.

    Sources