17 November 2026
خلّ Claude Code يكمل بدونك: الطرق الأربع بالدور والهدف والوقت والجدولة، مع أمر جاهز لكل طريقةKeep Claude Code Working Without You: Turn, Goal, Time and Scheduled Loops, With a Ready Command for Each
Learn the four ways Claude Code keeps working without you typing "keep going", pick the right one for your task, and get a ready command for each.
Who this guide is for
Claude Code users who keep coming back to nudge it forward.
Key terms
- Loop
- A cycle of work an agent repeats until a stop condition is met. Every message you send is a loop of its own.
- Stop condition
- What tells it when to stop: the task is done, a number is reached, the tries run out, or you cancel it.
- /goal
- A command that gives Claude a measurable goal. After each attempt, an evaluator model checks your condition and sends it back to work until it is met or the tries run out.
- /loop and /schedule
- The first repeats a task on an interval on your computer and stops when the computer is off. The second creates a routine in the cloud that keeps running with your laptop closed.
The steps
Step 1
Ask who starts the work
The four ways differ in who starts the cycle and when it stops.
Turn based: you prompt, it stops when done or when it needs you. Goal based: it keeps going until a condition you set is met. Time based: it comes back on an interval. Proactive: a schedule or an event starts it while you are away.
Pick one way for one task. You do not need all four on day one.
Here is a task I keep checking on: [describe the task]. Help me choose: turn based, /goal with a measurable goal, /loop on an interval, or a /schedule routine in the cloud. Suggest a clear stop condition and a limit on tries.PromptLet Claude pick with youTip: If you cannot write the stop condition in one line, stay turn based until it is clear.
Step 2
Strengthen the turn based loop
This is your everyday loop: you prompt, it works, checks, and stops.
Make it stronger with a SKILL.md file that tells it how to verify its own work, like opening the page and testing the button, before it comes back to you. It returns something tested, not a question.
Write a SKILL.md file called verify-ui with the steps to verify any UI change in my project [project name]: open the page, test [the key elements], and check the console has no errors. Keep it short and clear.PromptWrite a verify skillStep 3
Use /goal when the result is measurable
When the result can be measured with a number or a clear condition, give it a finish line instead of typing "keep going".
Write the goal as a number and set a limit on tries. After each attempt it checks the condition and goes back to work until it is met or the tries run out.
The Set a goal section of the Claude Code docs: /goal followed by the condition you want.Source: code.claude.com /goal [the result you want, as a number or a clear condition], stop after [N] triesPromptCommand templateTip: The Claude Code team's own example: /goal get the homepage Lighthouse score to 90 or above, stop after 5 tries
Step 4
Use /loop for things you keep checking
If you keep returning to the same thing, give it a timer instead of checking by hand.
/loop runs on your computer, so it stops when you turn the computer off. It ends when you cancel it or the work is done.
Prefer longer intervals, or react to an event when you can, so it does not burn usage for nothing.
The /loop section of the Claude Code docs: an interval and a prompt, like /loop 5m check the deploy.Source: code.claude.com /loop 5m check my PR, address review comments, and fix failing CIPromptExample from the Claude Code teamStep 5
Move it to the cloud with /schedule
When the work should keep going with your laptop closed, turn it into a cloud routine with /schedule.
The routine runs on the schedule you set and keeps going until you turn it off. It is a research preview, so try it on a simple task first.
The Create from the CLI section of the Claude Code docs: type /schedule in any session. The page is now named Cloud scheduled tasks.Source: code.claude.com /schedule every [hour / day at 9am]: [the check you want, in one sentence]PromptRoutine templateStep 6
Combine schedule and goal: the proactive loop
The proactive loop runs on its own: a schedule or an event starts it, each task stops when its goal is met, and the routine runs until you turn it off.
The Claude Code team's example: every hour, check the feedback channel for bug reports, and do not stop until every report found that run is triaged, actioned and answered. You review what comes out.
/schedule every hour: check [where the requests arrive] for [type of request]. /goal: don't stop until every [request] found this run is triaged, actioned, and responded to.PromptProactive templateTip: Pair it with skills that describe how you work, and keep the final call before anything ships.
Step 7
Set the limits before you walk away
Before any loop runs without you, check three things.
A measurable condition: a number or a clear result, not "make it better". A limit on tries: so it does not spin forever. A small pilot first: dynamic workflows can spawn hundreds of agents, so try a small slice of the work before all of it.
For recurring routines, consider a smaller, faster model.
Here is the loop I want to run: [the full command]. Review it: is the stop condition measurable? Is there a limit on tries? What is the worst that could happen if it ran an hour without me? Suggest a smaller pilot to start with.PromptReview the loop before you run it
Ready prompts to copy
The takeaway
Start with one task you are tired of checking, give it a finish line and a limit, and let Claude keep going.
Liked this guide?
Join Mohammad's community
72 guides like this one, and a new one every week. One subscription opens them all.
Approximate price in your currency. You pay in AED
- A permanent archive. Open any guide, any time
- 20% off private build sessions
- Cancel any time, no commitment
Or without a subscription
Most value
Start building with me now
We sit together, break down your problem, and I build the AI solution with you step by step
- A private session with you
- Real building during the session
- Results you take with you when we finish
100% free
A free consultation about your problem


