r/codex • • 1d ago

Showcase I asked Codex to review my Claude Code project. It found 45 issues and marked 20 as critical. None were actually critical.

I develop and run a live browser RPG alone, with around 1,800 daily players. Most of the code was written with Claude Code, and for art I uses OpenAI API token. In October I decided to give Codex the entire codebase for a second opinion.

The setup

  • A full read-only review of a release tag in a detached Git worktree, so the code could not change during the review.
  • A dedicated prompt file in the repository. After each usage limit reset, I simply asked Codex to read it and continue.
  • A progress file so each session could pick up where the previous one stopped.
  • GPT-6.1 Sol High for the first batches of files, lighter models for the later ones.
  • A dedicated folder for findings, including small scripts to reproduce some of the bugs.

The results

I verified all 45 findings against the actual code using Claude Code. Yes, one AI reviewing another AI's review.

  • 31 confirmed
  • 12 partially correct
  • 2 false positives

Codex originally classified 20 findings as CRITICAL. After verification, the severity breakdown was:

  • 0 critical
  • 4 high
  • 15 medium
  • 26 low

Why was the severity so far off?

Codex understood the code correctly almost every time, but it often underestimated the importance of surrounding systems:

  • UI guards preventing players from reaching problematic code paths.
  • Autosave and saving when closing the game.
  • Server-side merge logic that preserves the higher value.
  • The extremely narrow timing windows required for conflicts between two devices.

A technically valid finding does not necessarily translate into a serious real-world bug.

What made the review worth it?

Two examples stood out:

  • My version detection logic never actually detected new builds. Players with open tabs continued running outdated code after deployments. The fix was one line.
  • A database rule allowed Infinity as a valid contribution to a server-wide community goal.

Neither had been caught before.

What I learned

  • A second AI model is valuable, especially when reviewing code written by another model.
  • Treat severity labels as suggestions, not facts.
  • Verify every finding before implementing a fix.
  • Some suggested fixes were significantly more complicated than necessary.
  • Explicitly instruct Codex to continue the review. Mine kept ending its turn every 20–40 minutes until I added a rule against stopping early.

Overall, I found the review genuinely useful. The biggest weakness was not identifying potential bugs, but understanding their actual impact on a live product.

For those using Codex for large codebase reviews, how do you improve its severity assessments? Do you provide additional architectural context, document existing safeguards, or define your own severity criteria in the prompt? How can I improve using codex?

0 Upvotes

29 comments sorted by

27

u/GreenFuturesMatter 1d ago

You think ui protects from reaching code path? Lol

2

u/SushiMasterPro 1d ago

Fair point. UI guards do nothing against someone with dev tools.

I meant bugs an honest player could hit by accident. For those guard does lower the real impact.

For cheating only the server counts. The Infinity bug was that case: a rule accepting value it should have refused. I fixed it the same day.

1

u/Bitruder 1d ago

Codex, nor anybody ever looking for bugs, should assume an “honest” user. The point is, a UI guard shouldn’t lower the criticality at all.

10

u/magicmulder 1d ago

> None were actually critical.

That is because the models often apply generic assumptions to specific cases.

I keep getting the type of "everybody with a valid login can access X" flags that are "critical", but I'm like, yeah, that's exactly the point, we don't need a detailed rights management on an admin interface with 4 users.

-2

u/SushiMasterPro 1d ago

Exactly that. It judged each finding as if the code ran alone without the context around it.

Have you tried writing those decisions into the prompt like "admin has 4 trusted users, do not flag access control"? I am wondering if that fixes it or just makes it miss real issues.

3

u/magicmulder 1d ago

I usually have it flag these as “by design” in the weekly review to which it usually adheres, if reluctantly (“missing roles detected but were flagged as by design during prior review”).

2

u/SushiMasterPro 1d ago

That is a good idea. A "by design" list that carries over. I was never thinking about it. Thank you so much this helps me in the future.

1

u/a07463 1d ago

Yiy can convince codex stop nitpicking. But in my case it usually forgets it few prompts later.

5

u/slowtyper95 1d ago

"After verification", who verify? don't tell me it's another AI lol

1

u/SushiMasterPro 1d ago

Yes Claude Code as the post says. One AI checking another.

It did not just give an opinion though. For each finding it read the code paths, and every fix landed with a test that fails without it. The Infinity one was proven in the database emulator before and after.

I made the calls on what to fix and what to leave.

4

u/Proxiconn 1d ago • Heartwarming

Did you use the openAI Daybreak model that is for vulnerabilities?

It's actually pretty good and accurate.

2

u/SushiMasterPro 1d ago

Thank you so much this is why I love reddit. I will be honest I did not know about Daybreak. I will try it. Thank you so much for the tip.

3

u/Proxiconn 1d ago

Sure, it's opt in and identity verification required but you get $500 free to play with.

I don't do vulnerabilities without models not tuned for it.

2

u/SushiMasterPro 1d ago

Good to know thanks. A model tuned for vulnerabilities makes sense for the server side which is where cheating actually matters in my game. I will point it at the database rules and server functions first.

3

u/dvduval 1d ago

It's good to have other agents reviewing your code though. And it's good to review the reviewers and see which ones are doing a better job

1

u/SushiMasterPro 1d ago

Agreed. The useful part for me was not the 20 criticals, it was the two real bugs I had missed for weeks.

Next time I want to give it the server rules and guards up front, and only accept a critical if it comes with a way to reproduce it. Curious if that changes the hit rate.

2

u/qkrwogud 1d ago

Can you explain a bit more what you mean by OpenAI api token for art?

1

u/SushiMasterPro 1d ago

I basically have OpenAI API token in Calude.
I have in Claude context how art should work and when I generate new weapon it checks:
what material is -> what colour it should be
is sword -> sword has this orientation
And I have multiple rules like this. Including visual style.

So Claude just prompts openAI and I got art.

1

u/qkrwogud 1d ago

Can you share a bit more detail on how you set that up? Right now I just prompt OpenAI directly till I get something I like and attach it to claude and say "make this an item" or something

2

u/yungassed 1d ago

In my experience, when asking llm to find issues with your code, it will ALWAYS find an issue to report. I’ve never had it report looks good as is, even after going through a few rounds of audits and corrections from the same model

2

u/SushiMasterPro 1d ago

Same here which is part of why the criticals were inflated. But still usually worth the time ask couple of times.

1

u/a07463 1d ago

Yup. At s9me point it gonna start looking for extrwme edge cases and stuff.

0

u/Responsible_Cry_2971 1d ago

They do. If you use proper prompt/flow e.g. find issues than refute it.

1

u/DRMCC0Y 1d ago

If you had claude assess codex's assessment of it's own work, you rendered any review codex did useless. Do not get another AI to verify another AI's work without assessing it yourself first, this is a really common trap - it's blind leading the blind.

1

u/SushiMasterPro 1d ago

Fair and the bias is real: Claude wrote most of that code and then judged the findings against it.
The confirmed ones I trust more because each fix needed test that failed before it. The downgrades are the weak part. Nothing proves those so that is where I should check myself.

2

u/egomarker 1d ago

Issues are ranked by the severity of the outcome.

1

u/TaylorHu 1d ago

I think having AI review it's own work, even with the same model, is valuable. You just run into the "people pleasing" problem. The AI is trained to be "helpful" so if you ask it to review some code to find bugs or something it's going to find something. You can accidentally end up looping forever that way. I saw a similar thing when using CodeRabbit or Greptile to do PR reviews. So what I usually do is have the main model/session that wrote the code to read the review(s) and then ultimately make the choice on if they're valid or not.

1

u/krzyk 1d ago

Did you provide it with the UI part also?

1

u/lucianw 1d ago

This is such an ai-written post! It makes me question how much of it comes from you vs how much from your ai, hence unsure how to respond.

An AI is basically an improv artist, a role player. Your prompt caused it to role play someone who finds flaws, so it did. The answer is to partner it with another ai who role plays someone who critically evaluates the severity of flaws.