Repository navigation
Loop review rounds in review-and-fix until clean - #7
Conversation
One invocation now repeats review, fixes, and self-review until a round finds only nits or raises an open question, after at least one full review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AI review and fixesReviewed at a1a0b4b I reviewed the looping change, walking through the stop conditions case by case. I self-reviewed the fixes by checking that the frontmatter parses and that no line goes past 100 columns. Blockers
Suggestions
Nits
|
AI review and fixesReviewed at e02df3e I reviewed the whole skill again, focusing on whether one invocation leaves nothing for a re-run, on the stop logic, and on continuing earlier unpushed work. I self-reviewed the fixes by checking that the frontmatter parses and that no line goes past 100 columns. Blockers
Suggestions
Nits |
AI review and fixesReviewed at b70c297 I reviewed the whole skill again, including the git commands it prescribes, which I tried in scratch repos with Git 2.54. I self-reviewed the fixes by checking that the frontmatter parses and that no line goes past 100 columns. Suggestions
|
A full round forced after the cap could keep the loop going without bound. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Otherwise a question still unanswered from an earlier comment would stop every re-run after one round. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Otherwise a round that only found a regression from an earlier fix would stop the loop without reviewing the fix for it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An earlier review that was never posted had its fixes discarded with the fresh branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pushing only one branch would leave the comment citing fix commits that were never pushed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Within one invocation, "since the last round" no longer meant anything. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The invocation needs a full round anyway, so an initial delta round only cost a round of the cap. This also removes the rules for forcing a full round later. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Large PRs need more than five rounds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Otherwise unfixed findings and the author's answers to open questions were never acted on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Delta rounds can converge while the whole still has problems a full review would find, so a clean or nits-only delta round is followed by a full round. Items left with the author don't count, so they can't keep the loop going. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Starting from the remote head would discard fixes the user just reviewed. Fixes go on a `-fixes` branch that is continued within the conversation, reused once fully pushed, and otherwise left for the user to decide. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The comment is feedback for the author; rounds and re-review status go in the report to the user. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes for your own unpushed fixes become fixup commits, squashed after the loop, so reviewers see one commit per finding. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A plain rebase onto a force-pushed head would replay the author's old commits too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
f5a1230 to
b6b2e0c
Compare
A delta tenth round always counted as not converged, even when it found nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
They would be carried onto the `-fixes` branch, into test results and possibly fix commits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AI review and fixesReviewed at b6b2e0c I reviewed the whole skill again, including two problems from using it on a large whatwg/html PR, and walked through the stop conditions case by case. I self-reviewed the fixes by checking that the frontmatter parses and that no line goes past 100 columns. Suggestions
Nits
|
|
I found in my own workflow that it helps telling the reviewer agent to be "adversarial" or work with a clean context, to avoid self-conviction etc. I wonder how you see that in the context of the review-and-fix loop @zcorpan |
|
Claude decides to do that when I tried running this, but it could maybe be stated to do so for full reviews. |
noamr
left a comment
There was a problem hiding this comment.
Lets land this and iterate. Thanks!
Makes one
review-and-fixinvocation do all the work, so it shouldn't need to be run again:<PR branch>-fixesbranch, which is continued within the conversation. Fixes for the agent's own unpushed fixes are fixup commits, squashed after the loop so each finding has one commit.