A long Claude Code job usually stalls for one boring reason: a step needed you, and you were not there. A login expired. A key was missing. A question sat waiting.
These five habits fix that. They make the job clearer before it starts, keep Claude working until it is done, keep the main chat from filling up, and give Claude a way to reach your phone. The fifth habit saves the most time.
Download the ZIP for all the prompts and the front-load checklist in one place.
01 / 07
Habit 1: Grill first, then write the plan
Do not type the job and press Enter. Start by making Claude interview you. Anthropic's best practices page suggests the same idea: ask Claude to interview you until it could write the spec, then write it to a file.
Read PLAN.md. Fix anything wrong. Only then move on.
02 / 07
Habit 2: Hand the plan to /goal
/goal sets a completion condition, and Claude keeps working without you prompting each step. After each turn, a model checks whether the condition holds. If it does not, Claude starts another turn. The goal clears once the condition is met, as Anthropic's goal docs describe.
Two things from those docs shape the line you write:
- The checker only judges what
Claude has shown in the conversation. It does not run commands or read files itself, so write a condition Claude's own output can prove.
- To bound how long a goal runs, add a clause such as
or stop after 20 turns.
Here is a goal line that ties to the plan from habit one. Edit the parts in angle brackets.
To remove a running goal, type /goal clear.
Do not paste this yet. /goal starts the job the moment you press Enter, so finish habits 4 and 5 first, then paste it.
A goal does not give Claude extra permissions. In the default mode Claude still stops to ask before some actions, and with habit 4 that question lands on your phone. For fewer stops, allow the safe commands for this job in advance. Keep the "stop and ask" rule for sending, posting, paying and deleting.
03 / 07
Habit 3: The main chat manages, subagents work
Long jobs fill Claude's working memory, called the context window. A subagent is a helper Claude. Per Anthropic's subagent docs, each one runs in its own context window and returns a summary, so your main chat stays clear.
One thing to know: subagents send their own requests, and those count toward the same usage limits as your main chat. A job with many helpers uses more of your plan.
Add this line to your CLAUDE.md, the text file Claude Code reads at the start of every session. For rules across all projects it is
~/.claude/CLAUDE.md (on Windows, C:\Users\<you>\.claude\CLAUDE.md). For one project, use a CLAUDE.md in that project's folder.
04 / 07
Habit 4: Turn on Remote Control and phone notifications
Remote Control connects the Claude app on your phone, or claude.ai/code, to a Claude Code session running on your computer. The work stays on your computer. Your phone is a window into it. All of this comes from Anthropic's Remote Control docs.
Requirements from the docs: a Pro, Max, Ultra, Team or Enterprise plan. API keys are not supported. On Team and Enterprise, an Owner must first switch the feature on.
Set it up:
Install the
Claude app on your phone (iOS or Android).
Sign in with the same account you use for
Claude Code.
Allow notifications when your phone asks.
In
Claude Code, type
/config. Turn on Push when actions required (permission prompts and questions), Push when Claude decides (proactive notifications), or both.In the session that runs your job, type
/remote-control(short form/rc). The first time, accept the one-time confirmation. A Remote Control indicator appears in the footer of the prompt box.Open the
Claude app and find the session. You can answer from there.
The docs say a push can arrive when a long-running task finishes or when Claude needs a decision, and that you can also ask for one in your prompt, for example "notify me when the tests finish". So ask. Send this as your first message, before the /goal line:
Two limits from the docs. Remote Control runs as a local process, so if you close the terminal or stop the claude process, the session goes offline. And if your laptop sleeps or the network drops, it reconnects when the machine is back online. It does not work while the computer is off.
If notifications do not arrive, the docs suggest opening the Claude app so it can refresh its push token, and checking Focus modes on iOS or battery optimization on Android.
05 / 07
Habit 5: Front-load everything that needs you
This one saves the most time. A job stalls at the first step that needs you when you are not there. A login at step nine means the whole job sits at step nine until you come back. So do those things before you start.
Tick every line before you press Enter:
Keys
Logins
Connections
Permissions
The ask-me list
06 / 07
Test it safely
Before you walk away from a real job, run a tiny one.
Pick a throwaway job with three steps, for example "make three small test files in an empty folder".
Run habits one to four on it.
Take out your phone. Check that the session shows in the
Claude app.
Reply from the phone with a short message such as "continue". Check that it arrives on your computer.
Then leave the real job running.
Where was this tested? Every command and setting name above was checked against Anthropic's docs on 8 Nov 2026. The author did not run the phone notifications on a real phone for this guide, and the wording of the ping line was not tested live. If a label looks different on your screen, trust your screen.
Common mistakes
Skipping the interview. A plan written from a one-line job is a guess.
No turn limit in the goal. The limit is your brake.
A goal the checker cannot see. If
Claude never shows the result in the chat, the checker has nothing to judge.
Expecting a ping you never asked for. Ask for it in the prompt.
Closing the laptop or the terminal. The session runs on your computer and goes offline if the process stops.
Does Claude keep working if my computer is off?
No. Remote Control sessions run on your computer. The phone only shows and steers the session.
Do I need the phone part?
No. Habits one, two, three and five work without it. The phone lets Claude reach you when it needs an answer.
Will Claude always ping me?
Not always. The docs describe Claude deciding when to push, so ask for the pings you want in your prompt.
Does this cost more?
Long jobs and subagents use more of your plan's usage. Check your usage after the first long job and set a turn limit.
Finish line
What to do next
Pick one real job you have been putting off.
Run the interview and tick the front-load checklist.
Run the 3-step test job, then start the real one.
Back to all the free guides. Two that pair well with this one: run Claude Code overnight safely and pick up where you left off in Claude Code.
You reached the end of the guide