Claude Codeautomation

/loop

Run a prompt repeatedly on a schedule while the session stays open. Omit the interval and Claude self-paces between iterations.

Syntax

/loop [interval] [prompt]

Example

/loop 5m check if the deploy finished

About

Skill. Run a prompt repeatedly while the session stays open. Omit the interval and Claude self-paces. Omit the prompt and Claude runs an autonomous maintenance check or .claude/loop.md. Example: /loop 5m check if the deploy finished.

When to use

  • Polling for a CI run to finish
  • Running a recurring check every N minutes
  • Autonomous maintenance loops without manual re-triggering

More Claude Code commands