CH 43 / 86Chapter 5: Claude Code (The Core of Development)

Claude Code on the Web, Remote Control and Scheduled Runs

On this page7 items

In 10 seconds

You can keep it running even when you step away from your terminal. The key point is that where it runs changes what it can reach.
Anything running in the cloud can’t reach the files on your machine.

This is the same picture as Chapter 4, #31. Behind the convenience lies a difference in what it can reach.

Overview of the options#

These are the options listed in the official documentation.

What you want to doOption
Run it in the browser, with no local environmentWeb version (claude.ai/code)
Continue a local session from your smartphoneRemote Control
Start locally, continue on mobileclaude --cloud
Pull work started on the web into your terminalclaude --teleport
Review the diff of terminal work in the desktop app/desktop
Run automatically at a set time (cloud)Routines
Run automatically at a set time (local)Desktop scheduled tasks
Repeat at short intervals within a session/loop

Sessions aren’t tied to a place: that’s a property that runs through this whole chapter (#34, #36).

The web version#

It runs in the browser. Even without a local environment, you can open a repository and work on it.

It’s suited to three things.

  • Kicking off long-running work and checking the result later
  • Working on repositories you haven’t cloned locally
  • Running multiple tasks in parallel

It’s also available from the iOS and Android apps. You can kick off work while on the move, then pull it into your terminal with claude --teleport when you get back.

There are two kinds of scheduled runs#

Don’t mix these up. It’s the same distinction as with Cowork in #31.

Routines run in the cloud. They run even when your computer is turned off. They can also be triggered by API calls or GitHub events. You can create them from the web, the desktop app, or /schedule in the CLI.

Desktop scheduled tasks run on your own machine. They reach your local files and tools directly.

So the choice is simple.

TargetWhat to use
Repositories (cloud side)Routines
Local files and local toolsDesktop scheduled tasks

If you want to tidy a local folder every morning, use the desktop side; if you want to run PR reviews every morning, use a routine.

Designing for the time you’re not watching#

What Chapter 4, #31 said applies as is. The more something runs while you’re not watching, the more design it needs.

Make the output a report, not an action. Creating PRs automatically is fine, but a person presses the merge button (#42).

Make sure failures don’t pile up. If something that runs every day quietly breaks, by the time you notice you’ll have 30 days’ worth of mistakes.

Know that it keeps consuming tokens. The official explanation of costs states it clearly: scheduled tasks fire at every interval even when the session is idle, and send the full context each time. This is covered in #44.

Check the results every time for the first week. It’s not “set it and forget it” but set it, keep an eye on it for a while, then forget it.

Try it: Check the difference between local and cloud (3 minutes)

This is design work before actually building anything.

Prompt
“`
I’ll list the tasks I want to run automatically. For each one,
decide whether it should be implemented as a “routine (cloud)” or
a “desktop scheduled task (local)”, and give your reasons.
Don’t implement anything yet.

  • (three tasks, including what each one touches)
    “`

Expected result: They split by what they touch. Anything that handles local files goes to the desktop side.

If it doesn’t work: If everything ends up in the cloud, add “what each one touches.” That’s the core of the decision.

Common pitfalls#

Trying to touch local files from a cloud scheduled run. It can’t reach them. Separate them at the design stage.

Closing your machine while using Remote Control. Since it continues a local session, your machine needs to stay running.

No longer looking at the results of scheduled runs. Automation nobody looks at is a system that keeps quietly getting things wrong.

Summary#

  • You can keep it running away from your terminal. Sessions aren’t tied to a place
  • There are two kinds of scheduled runs. Cloud routines can’t reach your local files
  • For the time you’re not watching, have it produce reports, not actions
  • Scheduled tasks use tokens even while idle

Read next#

Cost control and saving tokens