Your overnight loop tried the same task fourteen times. Each run edited the same line, the check failed the same way, and the run ended. What should you change before restarting?
Show answerHide answer
Fourteen identical failures mean the task or the environment is wrong, and another try will fail the same way. Give the loop a no-progress rule, such as an attempt cap or a repeated-failure rule, that ends the loop and hands the problem to a person. Inside a /loop prompt, that rule is an instruction to Claude, not an enforced limit. For claude -p runs, Claude Code enforces the --max-turns and --max-budget-usd flags, though spend can pass the budget cap. Then read what failed and fix the task before you start again.