Skip to content
News

How to schedule AI agents to run while you're offline

Schedule an AI agent to prepare a weekly brief while your computer is off. Compare local and hosted execution, test one run, and verify what comes back.

Glowing orange metal on an industrial transfer line lights up a dark casting hall and reflects on the floor.

An AI agent can run while your laptop is off if a scheduler can start the work on a machine that stays online. That could be a hosted agent service or a worker your team operates on an always-on server. If the agent needs your laptop to execute the task or reach its files, turning the laptop off removes something the job depends on.

For a weekly project brief, set up one scheduled run and check three things: where it executes, which records it can read, and where the result will be waiting when you return. A recurring schedule is useful once you can verify all three.

Choose what stays online

SetupWhat happens when your laptop is off?
An ordinary chat with a saved promptSaving the prompt gives you instructions to reuse. A separate trigger and executor must be configured to start new work unattended.
A worker on your laptopIt cannot start work while that machine is off. A worker on a separate, reachable server can continue if its process, credentials, and dependencies are available.
A hosted agent with a saved scheduleIt can run without your laptop or browser, provided the service has an eligible execution route and can reach the inputs with the permissions you gave it.

Start with the input you can least easily move. If the job reads an unpublished local file or needs a tool that exists only on your development machine, a hosted service cannot read or run it simply because you scheduled the job there. If all the inputs are already shared and the output is a draft, hosted execution can remove the dependency on your machine. The VS Code automation guide illustrates the same decision for repository work: a local automation can use your development environment, while a cloud automation runs against an eligible repository independently of your computer.

When the inputs are available to a hosted agent, Swarm Cloud can run scheduled work without relying on your setup computer.

A mechanical assembly in orbit above the blue edge of Earth.

Give the agent a brief it can run without you

Imagine a product team piloting a returns portal. Before the weekly rollout meeting, the project lead wants to know what changed, what is still blocked, and whether there is a decision to make. The agent can prepare that briefing. The lead still decides when the rollout moves forward.

For a first run, place these three short notes in a private project workspace. Give them these names so you can tell whether the output cited the right evidence:

  • Engineering update: The portal is enabled in staging. The production rollout has not started.

  • Support readiness: The return-label instructions are drafted. Weekend support coverage is still unconfirmed.

  • Rollout decision: A production date cannot be approved until weekend coverage is confirmed. The project lead owns that decision.

Save a brief that states the expected result and the limits of the job:

Prepare a short internal returns portal brief from Engineering update, Support readiness, and Rollout decision. Give the latest confirmed state, the unresolved blocker, and the next human decision. Name the source behind each point. If a source is missing or conflicts with another, say so. Save the draft with this run. Do not change the rollout state or send the brief to anyone.

The result should say that the portal is in staging, weekend coverage is unconfirmed, and the project lead still owns approval. If it claims the portal is live or adds a production date, the brief is wrong even if the job completed. That gives you a straightforward way to check what the first run did.

Test a single scheduled run in Swarm

  1. Save the brief. Create a private Space, attach the three example notes as separate files, and save the instructions as a Task. Keep the test self-contained so the agent does not need external tools or accounts.

  2. Choose an execution target. For a test with your computer off, confirm that the Space allows Swarm Cloud, that an eligible hosted route is available, and that the owning account has budget for the job. A connected agent can help set up a schedule, but its own host does not have to be the worker that runs it. Choose hosted execution explicitly for this test.

  3. Schedule once and check what was saved. Use a work-authorized connected agent to schedule the Task for a time a few minutes ahead. Give the date, time zone, and intended hosted target. Read back the saved Task, trigger, and target before closing the browser. Leave any required approvals in place.

  4. Return to the Run. After the scheduled time, open Runs in the Space and find the attempt linked to that Task. Check the execution target, then open the output and compare it with the three notes. The result should be available in the Space with its Run. Record a correction there if it missed the condition for approving the rollout.

To check the offline requirement, turn off the setup computer before the scheduled time and inspect the result later, or from a second device. A manually started job tests the brief and the worker.

A hand checks a batch of coffee beans beside a metal cooling arm and tray.

Diagnose a missing brief before retrying

If the brief is missing, first find out whether Swarm created a Run:

  • No attempt: Check the saved trigger and whether the schedule is enabled. For a recurring schedule, check whether an earlier attempt is still active or waiting for review. Allow for the scheduler's periodic checks; the trigger time is not an exact start guarantee.

  • Queued or blocked: Open the Run's reason before submitting again. It may be waiting for a worker, an approval, a dependency, or available budget.

  • Failed: Read the Run's details, fix the named problem, and check whether there's already another attempt before creating a new one.

If the Run succeeded but the brief is wrong, fix the instructions or the source coverage and rerun the test. If a draft eventually needs to trigger a consequential action, keep that decision separate. See how to add human approval to an AI agent workflow for review patterns.

A shadowed stream winds through a fern-covered forest hollow dotted with firefly lights.

Put the brief on a weekly cadence

Once the one-time test passes, update the brief to review the latest dated project records and say when no reliable update is available. Give one person responsibility for the source notes and another, or the same person, responsibility for reading the brief. A recurring job can faithfully summarize a record that nobody has updated; the output should make its reporting window and gaps visible.

Create a separate recurring schedule with the first trigger and a seven-day elapsed interval. Swarm's intervals measure elapsed time, so check the next trigger if your team needs the same local-clock time after a daylight saving change. After an interruption, missed intervals can be combined into one current attempt. A weekly brief is a good fit for that behavior; a workflow that must process every missed period needs an explicit way to find and handle gaps.

Before committing to the cadence, review usage on the test Run and decide when the brief should stop. Disabling the schedule prevents future occurrences. Use the Run controls separately if an existing attempt also needs to stop. At the next meeting, the practical test is whether the reviewer can open the brief, verify the blocker in its source, and make the right decision without reconstructing the week.

Swarm | How to schedule AI agents to run while you're offl..