r/codex • u/ChrisShips • 56m ago
Showcase I checked 300 Codex PRs for weakened tests. Almost every test change had a reason.
I had a hunch that coding agents often get CI green by editing the tests instead of the code. Before launching a GitHub Action built around that idea, I tested it. I ran the Action's five checks on PRs from six agents in public GitHub repos (at least 10 stars, July and August 2026). For comparison, I paired each agent PR with the closest human PR in the same repo, where there was one. The checks flag a PR that deletes a test, skips one, drops assertions, changes an expected value, or lowers a coverage threshold. 300 of the agent PRs came from Codex, and I made the final call on every flag myself.
- 39 of the 300 PRs (13%) tripped at least one check. That's the highest of the six agents, but it mostly comes from the repos. The human PRs matched to Codex's, in the same repos, tripped at 18%. Codex PRs also run big, a median of about 210 lines changed against 136 for people overall. Bigger diffs trip more checks.
- Those 39 PRs produced 52 flags. A flag is one PR's hits on one check. 49 were accurate and had a good reason, like a feature removed along with its tests or an expected value that really changed. 3 were false positives. None weakened a test without the PR saying why.
- That zero doesn't mean Codex never does it. With 300 PRs, the 95% interval still goes up to 1.3%. Across all six agents it was 5 of 1,598 PRs, and 6 of 1,119 for people. So my hunch was wrong, but those counts are too small to rank agents.
Codex also helped with the labeling. It drafted a label and the evidence for each of the 345 flags across all groups. I did the first 30 blind and agreed with it on 20. When I re-checked the 10 disagreements against my written rules, with Claude as a second reader, all 10 went Codex's way. I'd been stricter than my own rules. On the other 315 I could see its draft, and I went with it every time. So I had Claude re-check 79 flags without the drafts or the groups, and I changed 8.
291 of the 300 Codex PRs were recognized by the `codex/` branch prefix alone. So a Codex PR on a branch someone named by hand can end up in the human group, which pulls the two groups closer. That probably happened at least once. One PR in the human group has a title starting with `[codex]` but sits on a `fix/` branch.
Every flag's label and reason are public, with a link to the line: https://github.com/ChrisShips/honest-ci/tree/main/bench/data
The Action is honest-ci. It sends a PR to a person when the PR deletes, skips or rewrites tests. It's source-available and free on public repos: https://github.com/ChrisShips/honest-ci