Skip to main content
CC
CULT OF CLAUDE
CC
CULT OF CLAUDE

Not affiliated with Anthropic. An independent community resource.

Productivity Built-in Intermediate

Loop

Runs a prompt or slash command on a recurring interval

By Anthropic

Trigger Command

command
/loop

Trigger Condition

User types /loop followed by an interval and a command

Overview

Executes a specified prompt or slash command repeatedly at a defined interval. Useful for continuous monitoring, periodic checks, or automated recurring tasks within a Claude Code session.

Available Tools

Bash Read Glob Grep

Usage Example

example
/loop 5m /commit

Tips

  • Specify interval with units: s (seconds), m (minutes), h (hours)
  • Can chain with other slash commands
  • Useful for periodic status checks or auto-commits