/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 finishedAbout
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
parallel-agents
/agents
Manage agent configurations and monitor background agents running in parallel.
parallel-agents
/background
Detach the current session to run as a background agent and free this terminal. Optionally pass a final instruction before detaching.
parallel-agents
/batch
Orchestrate large-scale changes across a codebase in parallel. Decomposes work into 5–30 independent units, each in its own git worktree with its own PR.
context-management
/btw
Ask a quick side question without adding it to the main conversation history.