Claude Code

The 4 Claude Loops: Stop Prompting, Let Claude Repeat the Work

The four loop types the Claude Code team uses, with the exact command to paste for each

2min read
4numbered steps
3sections

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.

Free MCP directory

Make your AI 100x more powerful.

Connect Claude, ChatGPT or Cursor to the apps you already use. Thousands of servers, one click to set up.

Browse free MCP servers

Read next