Question 1 · choose 1
Your CI reviewer is told to "check that code comments are accurate." Most of its comment findings are about wording or slightly dated phrasing, and developers have started ignoring them, along with the few that point to real mismatches. How should you change the prompt?
- AHave Claude score its confidence per finding and drop those below 0.8
- BFlag a comment only when the behavior it describes contradicts what the code does
- CAsk Claude to be conservative and to report noticeably fewer comment findings in each pull request
- DAdd "Only report comment issues you are highly confident about" to the end of the review prompt
Show the answer and why
AHave Claude score its confidence per finding and drop those below 0.8
Incorrect
Filtering on a self-reported score does not change what Claude considers a finding in the first place.
BFlag a comment only when the behavior it describes contradicts what the code does
Correct
A specific criterion tells Claude exactly what to report and what to leave out, which is what lowers false positives.
CAsk Claude to be conservative and to report noticeably fewer comment findings in each pull request
Incorrect
A vague request to report less cuts real and trivial findings alike instead of separating them.
DAdd "Only report comment issues you are highly confident about" to the end of the review prompt
Incorrect
Confidence wording does not define what counts as an issue, so the same style findings keep coming, now labeled confident.
Explicit, categorical criteria beat general instructions such as "be conservative" or "high confidence only": define the condition that makes a comment worth flagging.
Anthropic documentation