Anthropic's Claude Code team defines a loop as Claude repeating cycles of work until a stop condition is met. There are four kinds. Start with the simplest one that does the job.
The 4 loops
- Turn-based: every normal prompt. Claude reads, acts, checks its work and answers. Write specific prompts, and put your checking steps in a skill so Claude can verify its own work.
- Goal-based: /goal get the homepage Lighthouse score to 90 or above, stop after 5 tries. Each time Claude tries to stop, a checker tests your condition and sends it back to work until it is met or the tries run out.
- Time-based: /loop 5m check my PR, address review comments, and fix failing CI. It re-runs the prompt on your interval (seconds, minutes, hours or days). Leave the interval off and Claude picks one for you.
- Proactive: /schedule creates a routine that runs in the cloud on a schedule, with nobody at the keyboard. It keeps going when your computer is off.
Free, for your email
Get the full setup steps + the copy-paste setup prompt
The rest of this guide (2 more sections) opens right here. The setup prompt, one paste into Claude that sets it all up, comes by email only. Use your real address.
Unlocks: The catch · Sources
50,000+ follow where these guides come from. No spam, reply “unsubscribe” any time.