FEA-372: Add post-loop code review and fix skill - #47
Merged
Merged
Conversation
Add comprehensive code review as the final step in the run-loop pipeline, replacing the lightweight in-loop code reviewer with the full code-review:start pipeline after implementation completes. - Remove Phase 5 Step 2 (single-agent code reviewer) from prompt.md, rename phase to "Testing and Validation" - Add run_post_loop_review() to run-loop.sh that invokes code-review:start after loop completion, reads verdict.json, and triggers code-review:fix if issues are found - Write CLOSEDLOOP_START_SHA to config.env for diff scoping - Create code-review:fix skill (verify findings with sonnet agents, fix serially, run build-validator, re-review up to max-cycles) - Add thin command wrapper at commands/fix.md for manual invocation - Bump code plugin to 1.7.0, code-review plugin to 1.5.0 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
shafty023
reviewed
Apr 9, 2026
shafty023
reviewed
Apr 9, 2026
shafty023
reviewed
Apr 9, 2026
shafty023
reviewed
Apr 9, 2026
shafty023
reviewed
Apr 9, 2026
shafty023
reviewed
Apr 9, 2026
shafty023
reviewed
Apr 9, 2026
shafty023
reviewed
Apr 9, 2026
shafty023
reviewed
Apr 9, 2026
shafty023
reviewed
Apr 9, 2026
shafty023
reviewed
Apr 9, 2026
shafty023
reviewed
Apr 9, 2026
shafty023
reviewed
Apr 9, 2026
shafty023
reviewed
Apr 9, 2026
shafty023
reviewed
Apr 10, 2026
shafty023
reviewed
Apr 10, 2026
shafty023
approved these changes
Apr 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
code:code-reviewerwith the fullcode-review:startpipeline after implementation completescode-review:fixskill that verifies findings, fixes confirmed issues serially, runs build validation, and supports configurable re-review cyclesCLOSEDLOOP_START_SHAtoconfig.envso the review can scope its diff to only this run's changesImplementation plan: PLN-233
Changes
plugins/code/prompts/prompt.mdplugins/code/scripts/run-loop.shrun_post_loop_review()function (~130 lines) invoked after both completion-promise and max-iterations exit pathsSTART_SHAcode-review:start --base $START_SHA, readsverdict.jsonfrom the session directoryapprove, invokescode-review:fixwith--max-cycles 2CLOSEDLOOP_START_SHAtoconfig.envincreate_state_file()plugins/code-review/skills/fix/SKILL.md(new)cr-*session directory when not provided--max-cycles(default 2) to prevent infinite loopsplugins/code-review/commands/fix.md(new)/code-review:fixinvocationVersion bumps
code: 1.6.0 → 1.7.0code-review: 1.4.0 → 1.5.0Test plan
run-loop.shon a project with an intentional bug — verify post-loop review catches it and fix skill addresses itapproveand no fix cycle triggers/code-review:fixmanually on a prior review session directoryCLOSEDLOOP_START_SHAis written toconfig.envcode:code-reviewer🤖 Generated with Claude Code