Cmd. /loop
Repeat a prompt while the session stays open (skill, /proactive).
Key takeaways
- Repeat a prompt while the session stays open (skill,
/proactive). - Check the input surface and availability before using the examples below.
Purpose
Repeat a prompt while the session stays open (skill, /proactive).
/loop [interval] [prompt]Availability
| Field | Value |
|---|---|
| Input surface | Running CLI prompt |
| Kind | Bundled skill |
| Status | Current reference |
| Aliases | /proactive |
| Documented minimum | Not specified |
| Reviewed against | 2026-09-22 · Claude Code 2.1.278 |
The installed command menu and account or organization settings determine availability.
Examples
/loop 5m check whether the tests finishedEffects and persistence
Repeats a prompt while the session remains open. Use /schedule for cloud routines that can run independently of the terminal.
Cautions
A local loop depends on the session staying open. Use a cloud routine when that dependency is unsuitable.