Cindy Zhu.
← all free guides
Power-user Claude

Make Claude work while you sleep: the overnight setup

Hey, it's Cindy ๐ŸŒฑ This is the overnight setup: four ways to make Claude run for hours on its own and finish real work while you sleep, plus the one trick that makes any of them actually work.

Most people use Claude for five minutes and close the tab. It can actually run for hours on its own, finishing real work while you sleep. Here are the four ways to set that up, all inside Claude Code (the free desktop app): what each one is, when to use it, where it falls short, and the one trick that makes any of them actually work. Anthropic's own docs are linked in each section if you want to go deeper.

option one

Give it a goal ๐ŸŽฏ

What it is: you type /goal and a finish line, and Claude keeps working and checking its own output until it hits that goal, instead of stopping at the first answer.

Use it when: you have a batch with a clear pass or fail, like "make ten carousels and don't stop until each one passes my checklist".

Heads up: the goal has to be measurable (a number or a checklist), not "make it good", or Claude can't grade itself.
๐ŸŽฏ set a goal
/goal make ten carousels and don't stop until each one passes my checklist

Go deeper: Keep Claude working toward a goal


option two

Put it on a schedule โฐ

What it is: a routine that runs Claude on a timer (say 6am daily) on Anthropic's cloud, so your laptop can be shut.

Use it when: recurring online work, like a morning brief pulled from your Notion or inbox.

Heads up: cloud routines can only see online things (Notion, email, the web), not files on your computer. For local files, use a goal or a loop on your Mac instead.
โฐ set a routine
Set a routine to run every morning at 6am, do the job, and leave the result waiting for you.

Go deeper: Automate work with routines


option three

Put it on a loop ๐Ÿ”

What it is: /loop re-runs the same task on a time interval (say every hour) in an open session.

Use it when: you want Claude to keep checking for and clearing new work over a few hours.

Heads up: it runs on your Mac, so keep it awake (see the tips below). It repeats on a timer, it doesn't chase a finish line the way a goal does.
๐Ÿ” set a loop
/loop every hour, check for new work and clear it

Go deeper: Claude Code commands


option four

Clone it into a team ๐Ÿ‘ฅ

What it is: instead of one Claude, it spins up a team of sub-agents that work at the same time.

Use it when: a big batch you want done fast, or work that splits into parallel parts.

Heads up: more agents use more of your plan, and they need clear, separable tasks so they don't trip over each other.
๐Ÿ‘ฅ spin up a team
Spin up a team of sub-agents to tackle a big batch in parallel.

Go deeper: Orchestrate subagents with workflows


the real unlock

The trick that makes it all work: a progress file ๐Ÿ““

What it is: a simple notes file Claude updates as it goes and re-reads to stay on track.

Use it when: any long job. On a big run Claude's memory fills up and older details get summarized away, the progress file is the part it never loses.

Heads up: you have to actually ask for it, Claude won't keep one by default.
๐Ÿ““ the progress file
Tell Claude: keep a progress file as you go, and re-read it before each step so you never lose your place.

the craft

How to get the most out of it ๐ŸŽ“

  1. โ˜• Keep your Mac awake for local runs. open a terminal and run caffeinate -i, then close it in the morning.
  2. ๐ŸŽฏ Always give a measurable finish line so Claude can check its own work.
  3. ๐Ÿฃ Match it to your level. New to this? Start with a goal on a small job you can verify. Already comfortable? Combine a team plus a progress file for a big overnight batch.

what to watch

The honest bit โœ…

Cloud schedules can't touch files on your computer, only online ones. Long runs use more of your plan, so start small and verify the output before you scale up. Claude tells you what it did, but still spot-check overnight work before you ship it.
Want more like this? Follow @cindiezhu for daily AI you can actually use.