Bug-score rule for Astra’s code reviews
Astra flags bugs that almost never happen and Opus fixes each one: bugs scored, low scores filed as issues, code left alone.
2.4K saves on X, as of Posted
Review rule
Rate each bug from 1 to 10 on how often it would happen and how bad it would be. If the two scores multiplied are below 5, just file it as an issue and leave the code alone.Next Add the review rule to your review prompt, the Opus rule to CLAUDE.md or AGENTS.md.
Like a lot of you, I use Opus 5.5 to write code and Codex Astra to review it.
But Astra has a bad habit of flagging bugs that are technically possible but almost never happen in practice. Opus sees the logic checks out and fixes it, then Astra flags the next one, and the loop never stops.
Add one line to your review prompt, skill, or AGENTS.md.
Tune the threshold of 5 to your project.
For Opus, the one fixing the code, add one more line to CLAUDE.md or AGENTS.md:
Opus rule
Do not design for rare or future cases nobody asked about.