Productivity Built-in Intermediate
Loop
Runs a prompt or slash command on a recurring interval
By Anthropic
Trigger 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
/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