Question 1 · choose 1
In your pipeline, the same Claude Code session that generates a fix is then asked to review it before the pull request opens. Reviews almost never find problems, but human reviewers keep catching subtle issues. What change makes the automated review more effective?
- AKeep the review in the same session but tell Claude to be highly critical of the code it just wrote
- BHave the same session review the change twice and keep only the findings that both passes report
- CRun the review in a separate Claude instance that has the diff but not the generating session
- DTurn on extended thinking so the generating session's self-review goes deeper
Show the answer and why
AKeep the review in the same session but tell Claude to be highly critical of the code it just wrote
Incorrect
The session still carries the reasoning that produced the code and tends to defend it.
BHave the same session review the change twice and keep only the findings that both passes report
Incorrect
Two passes with the same context tend to agree with each other and filter out the findings you want.
CRun the review in a separate Claude instance that has the diff but not the generating session
Correct
A fresh context is not anchored to the decisions it just made, so it is more likely to question them.
DTurn on extended thinking so the generating session's self-review goes deeper
Incorrect
More reasoning in the same context does not remove the bias toward its own earlier decisions.
Self-review is weak because the model keeps the reasoning that produced the code. An independent instance without that context catches issues the generator overlooks.
Anthropic documentation