fix-loop
Fix Loop
Run a bounded review-fix cycle until all Critical issues are resolved, marked unfixable, or the iteration cap is hit.
Review uses the code-reviewer skill — load it and follow it in the current agent, however your host invokes skills. It is a skill, not an agent type: do not try to dispatch it as a subagent, because no code-reviewer subagent exists to dispatch to. Repairs follow the Fixer contract below.
Keep the reviewer and fixer roles separate even though one agent plays both: findings stand as written. Do not rationalise away findings because you are about to edit the code.
Input
Use the supplied files/directories when present. With no explicit scope:
- uncommitted changes:
git diff --name-onlyplusgit diff --name-only --staged - otherwise recent work:
git diff --name-only HEAD~3. That revision does not exist in a repo with fewer than four commits — checkgit rev-list --count HEADfirst, diff from the root commit when it is shorter, and with a single commit review the files it added (git show --name-only --format= HEAD) - otherwise ask what to review
Baseline
Before fixing, run the project's canonical verification command if discoverable from README, CONTRIBUTING, build scripts, package manager scripts, Makefile, or workspace instructions. Record pass/fail/unavailable so later failures can be separated from regressions.