Claude Code vs Codex Behavior: What Same-Task Comparisons Show
Three patches passed the same GraphQL tests, but only one also cleared equivalence and review. What do published cases reveal about planning, repository exploration, edit scope, and knowing when to stop?

Published same-task comparisons show differences in how much detail the agents add to an incomplete brief, which required behavior they implement, and which checks their patches pass. An older dashboard comparison favored Claude’s extra product details; a 56-task repository evaluation favored GPT-5.5 in Codex for patches that cleared tests and review. More recent cases make “Claude defines the product, Codex implements it” too rigid a rule for assigning work today.
Claude added dashboard details the brief left unspecified
Developer dooddyman gave Claude Code with Fable 5 and Codex with GPT-5.6 Sol the same prompt and design file for an Instagram competitor analytics dashboard. The summer 2026 comparison mentions a SocialCrawl skill but does not disclose the exact execution date, reasoning effort, or CLI versions.
Both dashboards looked good and broadly alike. The author preferred Fable’s handling of unspecified parameters and details, describing Sol as more literal. Claude’s reported run cost was about $33 (₩45,210), against Codex’s $12 (₩16,440), yet the author wanted to keep Claude as the primary tool. Won equivalents use $1 = ₩1,370.
The practical difference was the usefulness of the additions. A rough brief leaves room for the agent to help decide what belongs in the product. An approved ticket may leave very little. The author acknowledged that this was one run per agent, and the post does not provide a file-by-file exploration trace. The finished dashboards show what each delivered; they do not establish which file either agent read first.
The dashboard cost comparison covers the spending and allowance claims separately. Here, the author's preference shows how useful additions to an incomplete brief can matter more than a lower run cost.
Both agents can ask questions before editing
As of November 2, 2026, OpenAI’s Codex guidance recommends Plan mode for gathering context and clarifying ambiguous work. It also suggests asking Codex to interview you before implementation. Anthropic’s guidance describes a similar interview-to-spec workflow for Claude Code. Asking questions is an available workflow in both products.
The harness is the software that connects the model to its context, instructions, and tools. Claude Code’s architecture documentation describes a loop of gathering context, taking action, and verifying results, including test execution. A plan-first run, an implementation run, and a run lacking permission to execute commands will behave differently even under the same product name.
| Stage | What the evidence establishes | What to look for in your run |
|---|---|---|
| Planning | Both products support clarification and written specifications. | Unresolved choices, a usable plan, and explicit change boundaries. |
| Exploration | A macOS developer reported Claude reusing a local pattern. | The actual reference paths and tool trace. |
| Editing | The 56-task patches expose covered and missing behavior. | Required runtime, generated, and packaging changes. |
| Testing | Evaluator grades and the agent’s command history are different evidence. | The command, result, and checks that could not run. |
| Completion | A recent Opus app passed automated checks but failed on core screens. | The working user journey and unresolved failures. |
The exploration example comes from a spring 2026 switching discussion. A developer with interlocking Swift, Objective-C, and proprietary frameworks said Codex duplicated existing functionality while Claude located a similar implementation and proposed a small change. That comment leaves the models and settings unspecified. It illustrates the cost of missing a house pattern; it cannot rank today’s models on repository understanding.
The 56-task comparison separates a small patch from a complete one
Stet’s creator, bisonbear2, replayed 27 Zod and 29 graphql-go-tools changes in a spring 2026 comparison. Opus 4.7 ran through Claude Code’s claude -p and GPT-5.5 through Codex CLI’s codex exec, both at high reasoning. Each had one attempt from a frozen repository; Stet applied the submitted patch and ran checks in an isolated container. The exact execution date and CLI versions were not disclosed.
| Evaluator result | Opus 4.7 · Claude Code | GPT-5.5 · Codex CLI |
|---|---|---|
| Tests passed | 33 / 56 | 38 / 56 |
| Judged equivalent to the human patch | 19 / 56 | 40 / 56 |
| Tests and review both passed | 10 / 56 | 28 / 56 |
Two patch analyses explain more than the overall ranking. In the Zod async-codec and default task, Opus changed eight files but left missing semantics and unpublished generated stubs. GPT-5.5 covered more of the intended schema and build behavior. All three models in that task failed the tests. Better semantic coverage did not make GPT-5.5’s result a completed fix.
The GraphQL task reversed the testing picture. All three patches passed tests for an Apollo-compatible validation change. Opus touched 11 files but missed behavior including enum and wrapped-scalar leaf validation. GPT-5.5 touched fewer files—10—and was the only model to clear equivalence and review. It handled the requested error locations and validation metadata more closely.
Those examples undermine a simple “Codex edits more, so it finishes more” explanation. What matters is whether the patch implements the required behavior in all the relevant code, generated files, and build steps. Neither file count nor final correctness reveals the order of repository reads. The language and repository comparison examines the task-specific differences further.
Newer cases show Opus implementing features and Sol 6.1 changing more code
Opus 5.5 implemented an upload feature in an existing Rails app
In Every’s September 22, 2026 report, Mike Taylor asked Opus 5.5 to implement an MCP-server upload feature in a Rails app. It returned a 17-file, 251-line patch in about eight minutes and passed four of his five checks, missing the size check. Effort was unspecified. Kieran Klaassen also reported that 5.5 followed his custom LFG planning, building, reviewing, and testing skills. Both accounts describe implementation work; the unspecified effort in Taylor's run and custom skills in Klaassen's limit how closely you can reproduce their setups.
GPT-6.1 Sol changed more code and tests than GPT-6 Sol in the same Codex setup
Stet’s October 12, 2026 comparison replayed 24 Go/TypeScript tasks once per model in Codex at medium reasoning. Median changed lines rose from 197 for GPT-6 Sol to 303 for GPT-6.1 Sol. The newer model changed more test lines on 20 tasks.
The published retry-and-test-replay example makes the tradeoff concrete: Sol 6.1’s 26-file patch still failed hidden tests. Writing more tests did not establish correctness. These same-harness results show behavior changing between models; they do not constitute a controlled Opus 5.5 versus Sol comparison.
Distinguish agent-run checks, evaluator tests, and a working user journey
There are three useful records: commands the agent executed while working, checks an evaluator ran after submission, and a person using the finished feature. Each can expose failures the others miss. The 56-task table describes evaluator outcomes. It does not measure how often either agent chose to run tests itself.
OpenAI’s long-horizon design-tool experiment does document agent-side verification. The setup used GPT-5.3-Codex, Extra High reasoning, an empty repository, and full access. During an approximately 25-hour run, Codex ran tests, lint, and type checks at milestones and maintained specification and status files. Those are observed actions in that configured run, rather than an automatic guarantee for a current Codex session.
Every’s September report also describes an Opus 5.5 voice-form app that passed checks Mike had it run, yet its core screens errored and the required AI service was never called. The missing evidence was the actual voice-to-form journey. Additional passing checks would help only if they exercised that behavior.
Large usage studies answer a different question again. Anthropic’s roughly 400,000-session analysis, published June 16, 2026, covers October 2025 through April 2026. Its finding that humans handled most planning and Claude most execution describes a population of sessions. It is not a same-task November model comparison.
Before another fix, distinguish a failed check from one that could not run
Start the next fix with the failing input, actual result, and required result. If a patch leaves the same failure intact, revisit the diagnosis or the expected behavior before making another variation of the patch. If a check never ran, establish why before treating the event as a code failure.
A UTM-tool comparison by Hong Seung-hyeop records an example. In August 2026, he gave Codex CLI with GPT-5.6 Sol and Claude Code with Opus 5 the same specification; he updated the explanation on October 4. Seven test-command requests were denied in Claude’s first acceptEdits run. After he widened the allowed tools, including Bash, the next run had no denials. Effort was unspecified.
The final results both passed the three specified exception cases. Claude also added --url=value input and URL-fragment handling. This same-task record exposes two separate differences: extra behavior in the output and permission to verify it. A denied check calls for a different response from an executed check that finds broken code.
Cross-review needs an equally concrete target. In a later-2026 review discussion, the author proposed defining required properties before review, then separating findings that contradict those properties from improvements that can wait. The post does not specify models or provide a controlled performance test. Its useful contribution is a stopping rule you can apply to either agent.
Ask the reviewer for a file location and steps to reproduce the failure. After a fix, rerun the failing case and affected regression checks. Decide whether to accept the patch when the results demonstrate the agreed behavior and no unresolved defect contradicts it. A different naming preference can remain a follow-up without reopening the feature.
Give either agent a brief that makes the differences visible
For an existing dashboard, the following is an example brief proposed here. It sets useful boundaries without assigning one brand all the planning and the other all the implementation.
Read the dashboard route, data-fetching code, and nearest existing screen. Add competitor view counts and a date filter, including empty and failed-request states. List unresolved product choices with your recommendation. Preserve the stored data shape and public API.
Change the files required for that behavior. Run the existing regression checks and the date-filter checks; report the commands and results. Exercise filter changes, no results, and request failure in the UI. Identify checks you could not run and why. Finish when the required behavior and regression conditions are satisfied; leave other improvements for follow-up.
Keep the model name, effort, harness version, planning mode, and added skills with the result. If you want a second opinion, hand the other agent the same requirements and diff, and ask for missing behavior or reproducible regressions. The comparison then ends with a decision you can make: which result meets the request with less repair and sufficiently strong verification.
Frequently asked questions
Does Claude Code plan while Codex only implements?
Both agents can plan, explore repositories, edit files, and verify results. Codex Plan mode also gathers context and asks clarifying questions. The model, harness, instructions, permissions, and task affect what happens next.
What did the 56-task comparison actually establish?
In a spring 2026 comparison on Zod and graphql-go-tools, Opus 4.7 in Claude Code cleared tests and review on 10/56 tasks; GPT-5.5 in Codex CLI did so on 28/56. Both used high reasoning. Those are evaluator results for those configurations, rather than a measurement of current agents’ self-testing habits.
Does a bigger patch show better repository exploration?
Patch size shows what changed. A tool trace is needed to establish the reading order. In the GraphQL example, GPT-5.5 changed fewer files than Opus 4.7 while satisfying the intended behavior and passing review.
When should a cross-review stop?
When the agreed functionality and regression conditions have sufficient evidence, with no unresolved defect contradicting them. Require a location and reproducer for blocking findings; leave unrelated improvements for follow-up.