Claude Code /loop command – Repeat a prompt on an interval
- Home
- Automation & scheduling
- /loop
/loop[interval] [prompt]
Repeat a prompt on an interval
★ Start hereSkill
Runs a prompt repeatedly while the session stays open. Omit the interval and Claude self-paces; omit the prompt and it runs the built-in maintenance prompt or your loop.md.
Best use
/loop 5m check if the deploy finished. For runs that continue when your computer is off, use /schedule.
Related commands · Automation & scheduling
- /autofix-prSpawns a cloud session that watches the current branch's PR and pushes fixes on CI failures or review comments.
- /deep-researchA bundled workflow that fans out web searches, fetches and cross-checks sources, and writes a cited report.
- /scheduleCreates, updates, lists or runs cloud scheduled tasks (formerly routines) through a guided conversation.
← See all commands