Most of my day is now spent being the while-loop.
Run the test, read the error, fix one line, re-run — look up and the day's gone.
So I taught the agent to run the loop itself. Paste this into Claude Code to save your time:
run the check → read the errors → apply the SMALLEST fix → re-run, until exit code 0 or pass
— with a hard attempt cap so it can't bulldoze a speculative rewrite between runs.