Intermediate
Open
Pro
Choosing Between /loop and /goal for Unattended Work
You have three tasks you want Claude Code to handle without you driving each turn:
- "Check every 10 minutes whether our nightly data-export job has finished, and tell me the result."
- "Keep working until every TypeScript file under
src/legacy/compiles understrict: true, or stop after 30 turns if it's not converging." - "Watch for new comments on PR #482 and respond to each one within a few minutes of it appearing, for as long as I'm in this meeting."
For each, say whether /loop (fixed interval or self-paced) or
/goal is the better-fitting mechanism, and explain the mismatch you'd
get from picking the other one. Then explain, for task 2 specifically,
why the "or stop after 30 turns" clause matters even though /goal
already has a built-in "impossible" verdict.
Share this question