harnesslog.dev

Claude Code, AI, and development stories

EN · KO
H
hwangjungmin

Claude Code v2.1.72 added /loop — run a prompt on a repeating schedule without leaving your session.

/loop 5m check if the deployment finished and tell me what happened

Every 5 minutes, Claude wakes up, runs the prompt, and goes back to waiting. Leave out the interval and it defaults to 10 minutes. Works with any prompt, including other commands:

/loop 20m /review-pr 1234

For one-shot reminders, you don’t even need /loop — just describe it:

remind me at 3pm to push the release branch
in 45 minutes, check whether the integration tests passed

To see what’s running or cancel something: what scheduled tasks do I have? / cancel the deploy check job. Natural language works fine.


A few things worth knowing before you rely on this.

Tasks are session-scoped — close the terminal and they’re gone. Recurring tasks also auto-expire after 3 days, so a forgotten loop doesn’t run forever. That’s intentional, but it means /loop isn’t a replacement for a real cron job or GitHub Actions workflow.

If Claude is mid-response when a task comes due, it waits. It fires once when Claude goes idle — no catch-up for missed intervals. So if you’re deep in a conversation and a /loop 5m task was supposed to fire three times, it fires once when you stop.

Max 50 scheduled tasks per session.

For anything that needs to survive restarts or run without a terminal open, use GitHub Actions or Desktop scheduled tasks instead.