If you only read the leaderboard headline, Claude Code and Codex look interchangeable. On Terminal-Bench 4.0 they basically are. The buy still hinges on models, permissions, and how your team burns credits.
Disclosure: ToolPotion Media Team; ToolPotion is our product. Numbers below come from our terminal coding agents comparison .
The scoreboard is a coin flip
Terminal-Bench (Stanford, Harbor, Laude Institute) scores agent–model pairs on hard tasks inside a real terminal. On the current 4.0 board, Codex with GPT-6 Astra at max reasoning effort leads at 58.2% , and Claude Code with Fable 5.1 at max effort sits at 57.9% ( Terminal-Bench via ToolPotion ). Each entry runs 330 trials with a confidence interval of roughly three points either way, so call it a tie.
The effort dial matters as much as the brand. Dropping from max to low effort costs Codex with Astra under 8 points and Claude Code with Fable 5.1 nearly 15 (Opus 5 falls about 17) ( same guide ).…