DEV Community

-D-
-D-

Posted on Originally published at note.com

Codex alone vs Claude Code to Codex relay on the same small fix

This article is an English adaptation of my own Japanese article, written with AI assistance.

If you hand code fixes to an AI, should one agent own the change from start to finish, or should one agent implement and a second one review? After reading this, you will have the measurements from one small fix done both ways, the axes I used to compare them, and a way to decide which route fits a given task.

On the same small fix, Codex alone took about 3 minutes. The Claude Code to Codex two-role relay took about 6.5 minutes. In this run, the solo side passed on its first submission and needed less rework. Both sides passed in the end, so the difference is not whether the work got finished. It is how long it took, whether the first submission passed, and whether extra fixes were needed.

What the task was

I took a real diff from the DeerFlow codebase. The change is in a Python feature that extracts readable article content from web pages. When the Markdown on a page contains an image with a relative path, the code should resolve it to a correct absolute URL, using the source page URL as the base.

The required changes were:

  • The article object accepts and keeps the source page URL.
  • The content extraction feature passes that URL to the article.
  • The two kinds of web fetch feature pass the requested page URL.
  • Relative images are resolved against the source page.
  • Absolute URLs are left unchanged.
  • Existing usage without a source URL does not raise an exception.

The completion conditions also said: do not break the existing content extraction or title completion, do not change the Markdown output, and include focused unit tests and a short documentation update. The allowed scope was six files. Because the behavior to fix, the places to touch and the way to verify were all set in advance, this is a small task with clear boundaries.

How the two routes were set up

  • Solo: Codex handled implementation through verification.
  • Relay: Claude Code implemented the change, then Codex reviewed it independently.

I fixed the evaluation axes before running anything: effective run time, first-pass result, final result, serious findings, number of fix rounds, amount of code changed, and each side's final test result.

The setups were not identical. The solo side used gpt-5.4 high. The relay side used Claude Sonnet 5 high plus an independent Codex review. I did not require the solo side to have an equivalent independent review. So this table compares two work paths on one task. It is not a fair ranking of the models themselves.

Results side by side

Item Codex alone Claude Code → Codex Reading
Effective run time 179.383 s 392.406 s Solo was shorter on this task
First-pass result PASS FAIL Solo passed on its first submission
Final result PASS PASS Same end point
Serious findings Not measured (no equivalent independent review) 2, resolved Chances to find problems were asymmetric
Fix rounds 0 1 Relay made one limited fix after the findings
Code changed 6 files, +97/-6 6 files, +182/-6 Same file count, different amount added
Tests 8/8 PASS 10/10 PASS Each side's final check passed; the counts do not decide a winner
Excluded from comparison Child process that was not writable OAuth expiry before the start Not counted against either side's implementation

What happened on the solo side

I counted only the first writable implementation span for Codex alone. It took 179.383 seconds. The first writable implementation passed as it was, and there were 0 fix rounds afterward. Final tests passed 8/8, and the change was 6 files with 97 lines added and 6 deleted.

Implementation, checking and passing all stayed in one flow. There was no re-explaining after a handoff and no correction step. For a small task with clear pass conditions, measuring whether one agent can finish it alone is worth doing before adding roles.

One caveat is that the serious-finding count for the solo side was not measured. It had no separate independent review, so it cannot be placed next to the relay's 2. The fact that it passed first time and the fact that its chance to find problems was different need to be read separately.

What happened on the relay side

The relay took 392.406 seconds of effective time. Claude Code's implementation took 202.168 seconds and Codex's review took 190.238 seconds. The first submission failed, and the review found 2 serious findings that had to be fixed before acceptance.

Both findings were resolved in one limited fix. Zero serious findings remained, and the work was approved. Final tests passed 10/10, and the change was 6 files with 182 lines added and 6 deleted. The relay did not fail. The review caught problems, they were fixed, and the relay reached a final pass.

That check took time. The implementation time alone was longer than the solo side's whole effective time, and a review of nearly the same length came on top of it. For this task, the findings from the review and the time spent on handoff, checking and correction have to be judged together.

Reading the numbers carefully

Splitting work across several AIs does not automatically make it faster or better. An independent look is a real advantage, but handoff of context, review and fixes are extra steps. On this small fix, the solo side passed in less time and with less rework than the route that included those steps.

On code size, both touched 6 files, with the solo side at +97/-6 and the relay at +182/-6. Fewer lines are not always better. Still, for the same pass conditions in this range, the solo change was smaller, and that observation stands.

Do not turn the test counts of 8/8 and 10/10 into a quality ranking, because the test units were not the same. What can be said is that each side passed all of its own final checks.

Environment stops I left out

Two environment problems came up during the experiment. On the solo side, a child execution environment was not writable. On the relay side, OAuth authentication had expired before the start. I treated both as environment problems that happened before any valid implementation began. They are not mixed into the 179.383 and 392.406 seconds above.

Counting authentication waits or permission limits as a difference in ability would hide the work performance I was trying to measure.

What this cannot tell you

This is one small task on one codebase. It does not support any of these conclusions: that Codex is always better than Claude Code, that multiple AIs are pointless, that Claude Code is slow in general, or that the two-role relay itself failed. The two sides also used different setups, and the chance to find problems through independent review was not matched. The numbers show only what actually happened under these fixed conditions.

How to choose

Using the points from this run:

  • Solo implementation fits work where the change range is small, the pass conditions are clear, and one AI can go from implementation to verification. Under conditions like this task's, not adding roles may help keep time and change size down.
  • The relay may fit work where an independent review matters more than the extra time. Here, the review found 2 serious findings, and the work reached a final pass after the fix. If the change is risky, you want to separate who does what, or you want a different view looking for problems, the question is whether you can accept the time that step costs.

If you want to try this yourself, fix the axes before you start: effective run time, first-pass result, final result, serious findings, fix rounds and code changed. Record environment stops separately from the timings, as I did.

Conclusion

The question to ask is not which model is always best. It is which kinds of work justify the time and rework of an extra review given the value of the problems it finds. On this same small code fix, Codex alone was faster, passed on its first submission and needed less rework. The next step is to repeat the comparison on tasks of different kinds and sizes with the same axes fixed, and to put an equivalent independent review on the solo side too.

This example compares the two effective run times from the article, both given in seconds. It also checks whether the relay's implementation time alone is longer than the solo run.

```python runnable
solo_seconds = 179.383
relay_seconds = 392.406
relay_implementation_seconds = 202.168
relay_review_seconds = 190.238
print("Solo is faster:", solo_seconds < relay_seconds, "| shortest (seconds):", min(solo_seconds, relay_seconds), "| longest (seconds):", max(solo_seconds, relay_seconds), "| relay implementation alone longer than solo:", relay_implementation_seconds > solo_seconds, "| relay implementation (seconds):", relay_implementation_seconds, "| solo (seconds):", solo_seconds, "| relay review (seconds):", relay_review_seconds)






```text
Solo is faster: True | shortest (seconds): 179.383 | longest (seconds): 392.406 | relay implementation alone longer than solo: True | relay implementation (seconds): 202.168 | solo (seconds): 179.383 | relay review (seconds): 190.238
Enter fullscreen mode Exit fullscreen mode

Originally published in Japanese: https://note.com/life_to_ai/n/nc1631b6fb585

Verification environment and results

Executed on 2026-11-25 (JST).

  • python (fenced block) — Python 3.11.5, exit code 0

Top comments (0)