18 Mar 2026
#claude-code
#tools
#automation
Claude Code v2.1.72 added scheduled tasks, a way to run prompts automatically on a repeating interval while your session is open. The easiest entry point is /loop, which takes an optional interval and a prompt.
/loop 5m check if the deployment finished and tell me what happened
You can also loop over other slash commands. If you have a skill or workflow already packaged up, you can re-run it on a schedule without doing anything manually. Useful for polling a long-running build or reviewing a PR every 20 minutes.
/loop 20m /review-pr 1234
Tasks are session-scoped, so they vanish when you close the terminal. There is no catch-up for missed fires, and recurring tasks expire after 3 days. For anything that needs to survive a restart, the docs point to Desktop scheduled tasks or GitHub Actions.