Claude Code Can Now Run for Hours Without You
Claude Code, Anthropic's coding agent, just shipped three commands built for one problem: getting the AI to keep working for hours without you re-prompting it after every step. /goal gives the agent an exit condition it cannot quietly skip. Workflows split a fuzzy task across parallel sub-agents and grade each one with a separate checker, so the AI is not marking its own homework. For a small business, that is the difference between a chatbot you babysit all day and a worker you assign a job to and check on this evening.
You have not been using AI wrong. You have been using it small.
What is Claude Code's /goal command?
/goal is a command inside Claude Code, Anthropic's coding agent, that gives the AI a finish line instead of a to-do list. You type the condition once, for example "do not stop until every unit test passes," and Claude keeps working, turn after turn, until a second, separate model checks the transcript and confirms the condition is actually true. It shipped in Claude Code version 2.1.139 and it changes one specific thing: you stop being the loop. The AI is.
Thariq Shihipar, who works on the Claude Code team at Anthropic, put it plainly in a July 2026 interview with creator Peter Yang: "As the models have gotten smarter, they need less direction, fewer constraints, and fewer examples. We've got /loop, we've got /goal, and we've got workflows. These are all geared at trying to get the agent to run for long periods of time."
Three commands, three different jobs. /goal starts a new turn the moment the last one finishes, and only stops once an evaluator model says the condition is met. /loop starts a new turn on a timer, useful for something you want checked every hour rather than finished once. Workflows go further still: Claude writes a small script that spins up several sub-agents at once, each doing a slice of the work, with a separate agent grading the results before anything ships.
The demo that makes it click, and it is not a coding demo
Here is why a business owner who has never opened a terminal should care. On the call, Thariq recorded a rough video of himself talking to camera, ten minutes before the interview started. Then he gave Claude Code one prompt: transcribe the recording with Whisper, use Remotion to build a UI that highlights each word as it is spoken, add an overlay where he pointed, fade to black at the end, and "/goal, don't stop until the video is fully rendered."
One prompt. No back and forth. Claude transcribed the audio, built the caption overlay, rendered the video, and did not hand control back until the file existed and played. That is the whole shift. Not smarter answers. Fewer handoffs.
Swap "render a video" for whatever eats your afternoons; the mechanism is the same.
Why this matters if you have never written a line of code
Picture Amara. She runs a fourteen-person skincare brand in Lagos, shipping across Nigeria and into three neighbouring countries. Every week she has a growing pile of unanswered reviews on Google, Instagram, and her Shopify store. Some are five stars and easy. Some are a customer whose order arrived late, and those take real thought to answer well. She has been doing this in stolen ten-minute blocks between everything else, which means the ones that need care the most get answered last, if at all.
A goal-driven agent does not need Amara to open each review and write a reply. She gives it the finish line: "Draft a reply to every review from the last 30 days that does not have one yet. Match our brand voice, acknowledge the specific complaint before offering a fix, flag anything that mentions a damaged or missing item for my review before sending. Don't stop until the backlog is at zero." Claude works through the list, turn after turn, checking itself against that condition until an evaluator model confirms the backlog is actually empty, not just "probably fine."
That is the part worth sitting with. The AI is not trusted to grade its own work. A second model checks it.
What workflows add that /goal cannot do alone
/goal is built for tasks with a clear, checkable finish line: tests pass, backlog is empty, file exists. Google's own AI Overview on this feature is explicit that you should avoid it for "subjective work that lacks a measurable done state, like improve the onboarding experience." Fair. Not every business task has a pass or fail button.
That is what workflows are for. A workflow is Claude writing a short script that fans a task out across several sub-agents running in parallel, each one working a piece of it, with a separate verifier agent checking the output against a rubric before it counts as finished.
Say Amara needs product descriptions written for 40 new SKUs before a launch. A workflow assigns each description to its own sub-agent, then routes every draft through a second agent holding the brand-voice rubric: right tone, no banned words, correct claims about ingredients, length under 150 words. Nothing ships until it passes that second check.
Thariq's team has a name for the failure mode this avoids: "self-referential bias." A model grading its own homework tends to be generous with itself. Split the writer and the checker into two separate agent runs, and the check actually means something.

Isn't this just a chatbot that runs longer?
No, and the difference is the evaluator. A chatbot that you leave alone for an hour will happily decide it is done long before it actually is, because nothing is checking its claim. /goal and workflows both add a second, independent pass: a separate model reading the transcript, or a separate model grading the output, before either one is allowed to call the job finished.
That second check is the whole point. It is also why /goal works best when you can state the finish line in a way Claude's own output can prove, the way "all tests pass" is provable from a test run, and "the tone feels more premium" is not. Write your condition so it can be demonstrated, not just asserted.
How to try this in your business this week
- Pick one backlog with a real finish line. Unanswered reviews, unread support emails from today, unpaid invoices past 30 days. Something you could, in theory, get to zero.
- Write the condition like a contract, not a wish. Not "handle the reviews," but "reply to every review from the last 30 days that has no reply, matching this tone, flagging anything with a damaged-item complaint before sending."
- Give it the goal and let it run. In Claude Code, that is literally typing
/goalfollowed by the condition. Check back in an hour, not every five minutes. - For fuzzier, many-item tasks, ask for a workflow instead. Say what "good" looks like as a short checklist, and ask Claude to spin up a workflow that does the work and checks it against that checklist before it counts as done.
- Read what it produces before you trust it wholesale. Thariq's own warning: "the prompt box can definitely just be a lazy button." Skim the first batch closely. That is where you catch a badly worded condition before it repeats the mistake forty times.
| Approach | Starts the next turn when | Stops when | Best for |
|---|---|---|---|
| /goal | The previous turn finishes | A separate model confirms your condition is met | A backlog or task with a provable finish line |
| /loop | A time interval elapses | You stop it, or Claude judges the work done | Recurring checks, like a nightly report or a morning triage |
| Workflows | Claude's script decides | Every parallel sub-task passes its own verifier check | Fuzzy tasks with many similar items, like 40 product descriptions |
What you have after this
A week in, you have one backlog that used to sit ignored, now cleared on a schedule instead of when you finally have an hour. A month in, you have written two or three conditions well enough that you barely think about them, they just run. Six months in, the list of things you personally have to remember to do gets shorter, not because you got faster, but because you stopped being the one holding the loop open.
Same business. Same team. A meaningfully lighter Tuesday.
How Notma helps you find the first one
Most owners we work with have three or four backlogs like Amara's sitting in plain sight, invoices, reviews, onboarding emails, none of them urgent enough to fix today and all of them heavy enough to notice. The 14-Day AI Readiness Sprint exists to find the one with the clearest finish line and get an agent running against it inside two weeks, not a quarter.
What is the difference between /goal and /loop in Claude Code?
/goal starts a new turn the moment the previous one finishes and only stops once a separate evaluator model confirms your stated condition is actually met. /loop starts a new turn after a set time interval instead, and keeps going until you stop it or Claude judges the work done. Use /goal for a task with a real finish line; use /loop for something you want repeated on a schedule.
Do I need to know how to code to use Claude Code's /goal command?
No. The clearest public demo of /goal, from a Claude Code team member himself, was a video-editing task with no code involved: transcribe a recording, build caption overlays, render the file, don't stop until it exists. The skill that matters is writing a condition specific enough that Claude's own output can prove it is true.
What is self-referential bias, and why do Claude Code workflows fix it?
Self-referential bias is a model being too generous when it grades its own work. Claude Code's workflows avoid this by running the work and the verification as two separate agent sessions, so the check is genuinely independent rather than the same model marking its own homework.
Is Claude Code's /goal command available to everyone, or just Anthropic's enterprise customers?
/goal and /loop are commands inside Claude Code itself, Anthropic's coding agent, and require version 2.1.139 or later. Some related features mentioned in Anthropic's own interviews, such as certain artifact types, are currently limited to Team and Enterprise plans with wider availability expected later.
Can a small business really run an AI agent unattended without something going wrong?
The honest answer is: with a badly worded condition, yes, something can go wrong, which is why the Claude Code team's own advice is to read the first batch of output closely and write the goal as something provable, not just hoped for. With a specific, checkable condition and a verifier step, unattended runs are the entire point of the feature.
Find your first high-payback workflow.
See the SprintSources
Find your first high-payback workflow.
Book a free conversation or start with the fixed-fee Sprint.
Keep reading
Stop Your AI From Guessing: Get Grilled Before You Build
Before you let an AI agent build or automate anything, make it interview you first. This week the habit went viral under the name "grilling," after…
AI agentsYour AI Agent Doesn't Need Your Real Passwords Anymore
On July 24, 2026, Nous Research shipped iron-proxy, a credential firewall built into Hermes Agent's Docker sandboxes. The sandbox where your agent runs…
Front-office AIBuild an AI Agent That Treats a One-Star Review Differently Than a Five-Star One
To build an AI agent that responds to customer reviews automatically, do not build one path for every review. Build a graph: a rule that reads each review,…