The job: “Have my Claude agents do recurring research and reports on a schedule, without me starting them”

Claude scheduled tasks for your agent team: a weekly research digest that runs while you're away

Test a weekly research digest prompt once by hand, then schedule it four ways: a Claude Code cloud scheduled task, a Desktop local task, a Cowork scheduled task, or GitHub Actions. Includes what each option needs, its plans and limits, and how to keep an unattended agent safe.

  • Level Intermediate
  • Time 45 minutes to set up and test, then 5 minutes a week to read
  • Works with
    • Claude Code
    • Claude Desktop
    • Claude.ai
On this page8 sections

An agent team you have to start by hand still needs you. This guide puts it on a schedule. Every Monday, a run reads your notes, searches the web for the week’s news on your topics, has an independent reviewer subagent check the links and dates, and leaves a short digest for you. You test the prompt once by hand, then pick where it runs.

We ran the digest prompt below once with claude -p in a folder with two topics, two notes and a reviewer subagent. It finished in about two minutes. It skipped the note older than seven days, used Claude Code’s official changelog for the software topic, and put unverifiable supply news under “Couldn’t check” instead of guessing. The reviewer returned FAIL on the first pass because one item was filed under the wrong release, and the run fixed it. We did not test the schedulers themselves, since each needs a live account; the steps for them follow Anthropic’s and GitHub’s docs.

What you’ll have at the end

  • A small project folder: topics.md, notes/, reports/ and .claude/agents/reviewer.md.
  • A tested digest prompt.
  • A weekly task in the place that suits you, and a digest such as reports/digest-2026-10-31.md each week.

What you need (and cost)

Pick one of these. Every option uses your plan’s normal usage, or API credits for GitHub Actions with an API key.

OptionRuns onYour computer must be on?PlansGood for
Claude Code cloud scheduled task (formerly “routines”)Anthropic’s cloud, using a fresh clone of your GitHub repoNoPro, Max, Ultra, Team, Enterprise. Research preview.The full agent team, with files kept in git
Desktop local scheduled taskYour computer, in a local folderYes, with the app open and awakeAny plan with Claude Code; Desktop 1.1.5368 or laterLocal files and tools
Cowork scheduled taskRemotely, unless it needs local filesNoAll paid plansNo code or repo; connectors and plugins
GitHub ActionsGitHub’s runnersNoAn API key, or a subscription token from claude setup-tokenYou already use GitHub

Two notes. /loop also schedules prompts, but only inside an open session, and recurring loops expire after seven days, so it doesn’t fit a weekly job. And if you’re only looking for an inbox-and-calendar briefing, the automatic morning briefing guide covers Cowork in more detail.

Step 1: Set up the folder

mkdir -p digest/.claude/agents digest/notes digest/reports
cd digest && git init

Save your topics as topics.md. Say who reads it and what to ignore:

# Digest topics
Who reads this: me, the owner of a small online candle shop. I have 5 minutes on Monday.

1. Claude Code: new features and changes announced in the last 7 days (official sources only: anthropic.com, code.claude.com, claude.com).
2. Soy wax and candle-making supplies: price or supply news from the last 7 days.

Ignore: opinion pieces, listicles, anything older than 7 days.

Drop notes into notes/ during the week, with the date at the start of the file name, such as 2026-10-28-supplier-call.md.

Add the reviewer as .claude/agents/reviewer.md. It’s a variant of the reviewer in the one-person company guide, with WebFetch added so it can open links:

---
name: reviewer
description: Independent QA reviewer. Use after a report or draft exists. Checks every claim against its cited source and writes PASS or FAIL with exact fixes. Never edits the file it reviews.
tools: Read, Grep, Glob, Write, WebFetch
model: inherit
---

You are the independent reviewer. You did not write this file and you don't trust it.

1. Read the file you were given. For every claim, open its source (the note file,
   or the URL with WebFetch) and check the source says it, with the same numbers and date.
2. Mark each claim OK, WRONG (source says something else), NO SOURCE, or TOO OLD
   (outside the date window the task gives).
3. Write your review next to the file, named <filename>-review.md:
   First line: VERDICT: PASS or VERDICT: FAIL
   Then one line per claim with its mark and the exact fix.
4. FAIL if any claim is WRONG, NO SOURCE or TOO OLD.
Never edit the file you review. Reply with the verdict and the counts.

Step 2: Write and test the digest prompt

An unattended run can’t ask you anything, so the prompt must say everything: what to read, the date window, the output file, and what to do when a fact can’t be checked. Here’s the prompt we tested:

Weekly research digest. Today's date is in your environment; use it.

1. Read topics.md. It lists the topics, who reads the digest, and what to ignore.
2. Read every file in notes/ whose date in the filename is within the last 7 days. Skip older ones.
3. For each topic, search the web for items from the last 7 days. Open each item before you use it, and check its date on the page. Use at most 5 items per topic.
4. Write reports/digest-YYYY-MM-DD.md (today's date) with:
   - "## Top 3 this week": the three items that matter most to the reader, one or two sentences each, and why it matters.
   - One "## <topic>" section per topic: bullets, each with the date and a source link (or the note file name).
   - "## Couldn't check": anything you couldn't open or date.
   Keep it under 400 words.
5. If a reviewer subagent is available, ask it to check the digest. If it returns FAIL, fix every item once and save the file again. If no reviewer is available, check every link and date yourself.
6. Rules: read only. Don't send, post or buy anything. Never invent a date, price or link. If a topic has nothing new, write "Nothing new this week."
7. Finish with a 3-line summary: the file path, the reviewer verdict, and the number of items.

Save it as digest-prompt.txt and run it once in the folder:

claude -p "$(cat digest-prompt.txt)" --permission-mode acceptEdits --allowedTools "Agent Read Write Edit Glob Grep WebSearch WebFetch"

What our test showed:

  • Top 3: our wax supplier’s price rise (from the dated note) came first, then two Claude Code changes, each linked to the official changelog.
  • Date window: the note from 16 days earlier was skipped, as step 2 says.
  • Honest gaps: searches for soy wax news found only undated or older pages, so it wrote “No public price or supply news from the last 7 days could be verified” and listed them under “Couldn’t check”. It also said it had read only part of a very large changelog page.
  • Review: the reviewer found one item filed under the wrong release number. The run fixed it, but didn’t send the fixed file back for a second review (the prompt only asks for one fix pass). The reviewer gave its verdict in its reply but didn’t save a -review.md file.

Open three of its links yourself before you trust the schedule.

Step 3: Put it on a schedule

Choose one of the options below.

This runs in Anthropic’s cloud, even with your laptop closed. Anthropic’s docs say subagents in your repo’s .claude/agents/ load automatically in cloud sessions, so the reviewer comes along.

  1. Push the folder to a private GitHub repository.
  2. Go to claude.ai/code/routines and click New task. If a menu offers Create with Claude or Set up manually, pick Set up manually. (In the terminal, /schedule does the same thing as a conversation.)
  3. Name it “Weekly digest” and paste the prompt.
  4. Trigger: Schedule, weekly. Anthropic notes that runs set exactly on the hour can start several minutes late, so pick something like Monday 8:07.
  5. Expand Advanced settings. Under Repository, pick your repo, and keep the Default environment.
  6. On the Connectors tab, remove every connector. All your connectors are included by default, and the run can use them, including for writes.
  7. Click Create, then Run now on the task’s page to test it.

Each run opens as its own session in the task’s History, where you read the digest. The repo is cloned fresh each time and Claude’s changes go on claude/ branches, so a saved report won’t appear in your local folder unless you pull that branch.

Limits and behavior, from the docs: the shortest interval is one hour. Each account gets 100 scheduled runs per hour. Runs start in auto mode, where a classifier allows or blocks actions, and a run only stops for you in a few cases, such as repeated blocks. The task belongs to your account alone, and anything it does through GitHub or connectors shows up as you. The Default environment’s network access is Trusted, which allows only a list of package registries and common development domains. If the run says it couldn’t open web pages, change the environment’s network access.

Option B: Desktop local scheduled task

This one runs on your computer, in your real folder, so the reports land in reports/ directly.

  1. In Claude Desktop, open the Code tab and click Scheduled in the sidebar (or under More). Then click New task and, if asked, Set up manually.
  2. Enter a name and paste the prompt.
  3. Expand Advanced settings and, on the General tab, turn on Only on this computer. Pick the digest folder as the Local folder.
  4. Trigger: Weekly. Then pick the permission mode and model in the prompt box’s toolbar, and click Create.
  5. Click Run now once and choose “always allow” for each tool it asks about. The docs say later runs then approve the same tools automatically, so a weekly run doesn’t stall waiting for you.

It only runs while the app is open and the computer is awake. If the computer slept through the scheduled time, the docs say Desktop starts one catch-up run when it wakes, for the most recent missed time in the last seven days. A Monday 8:00 digest might arrive at 11:00, which is fine for this job. Keep computer awake is under Settings > Desktop app (or Settings > This computer > System).

Option C: Cowork scheduled task (no repo)

In the Claude app, click Scheduled in the left sidebar, then New task, then Set up manually. Fill in the name, the prompt, the approval mode, and the frequency (hourly, daily, weekly, on weekdays, or manually). Leave the folder empty. Anthropic’s help article says a task that needs local files or apps only runs locally. In the newer combined Claude app, you can instead write “Every Monday at 8 AM, …” in any conversation and click Schedule.

For Cowork, change the prompt: replace step 2 with a connector you use (for example, notes in a Google Drive folder), and replace “Write reports/digest…” with “Reply with the digest”. Without a reviewer subagent, step 5 falls back to “check every link and date yourself”. We didn’t test that version.

Option D: GitHub Actions

GitHub can run Claude on a cron schedule using Anthropic’s claude-code-action. First, install the Claude GitHub App on the repository. Then run claude setup-token on your computer to get a one-year token for your subscription. Save it as a repository secret named CLAUDE_CODE_OAUTH_TOKEN. Then add .github/workflows/digest.yml:

name: Weekly research digest
on:
  schedule:
    - cron: "7 8 * * 1"   # Mondays 08:07 UTC
  workflow_dispatch:      # adds a "Run workflow" button
jobs:
  digest:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      id-token: write
    steps:
      - uses: actions/checkout@v7
      - uses: anthropics/claude-code-action@v1
        with:
          claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
          prompt: |
            (paste the whole digest prompt from step 2 here, indented like this line)
          claude_args: |
            --allowedTools "Agent,Read,Write,Edit,Glob,Grep,WebSearch,WebFetch"
      - uses: actions/upload-artifact@v7
        with:
          name: digest
          path: reports/

The last step keeps the report as a downloadable artifact on the run’s page. Otherwise it disappears when the runner shuts down. From GitHub’s docs: cron times are in UTC, schedules only run from the default branch, busy times (especially the start of each hour) can delay runs, and in a public repository, scheduled workflows are turned off after 60 days without activity. Anthropic notes a subscription token is tied to the person who created it. Never paste the token into the file itself. We didn’t run this workflow.

The same claude -p command from step 2 also works from any other scheduler on an always-on machine, such as cron. Anthropic’s docs cover claude -p itself, not your scheduler, so test the command line by hand first.

What can go wrong

  • Wrong dates. Search results often show old pages as new. Keep “Open each item and check its date on the page” in the prompt, and keep the reviewer’s TOO OLD rule.
  • The run stalls. Desktop tasks in a manual permission mode wait for an approval nobody gives. Use Run now and “always allow” first. Cloud runs only stop in rare cases, but check the first few runs’ sessions anyway.
  • It can do more than read. Unattended runs act as you. Remove connectors the digest doesn’t need, keep “read only” in the prompt, and never give a scheduled task a tool that sends, posts or pays unless you’ve watched it run many times.
  • Prompt injection. Web pages can contain text aimed at Claude. The read-only rule and the missing send tools limit the damage.
  • Usage adds up. Each run uses your plan’s usage like a normal session, and the reviewer adds a second agent. Start weekly, not hourly, and check your usage page after the first few runs.
  • Nothing arrives. Check the task’s history first. Cloud tasks can be turned off for Team and Enterprise members by an Owner (Organization settings > Capabilities > Remote sessions).

Make it yours

  • Run the whole team. In a repo with the four agents from the one-person company guide, schedule “Work through any new requests in inbox/” each weekday morning.
  • Send it somewhere. Once you trust it, add one delivery step (an email draft or a Slack message) and keep that tool set to ask first. The competitor watch guide shows email delivery through Zapier.
  • Turn saved links into a newsletter. See newsletter from saved links.
  • Split big jobs. If one run gets too long, two tasks an hour apart (gather, then write) are easier to fix. For heavier parallel work, see running Claude agents in parallel.

Next steps

Sources

Facts checked against these sources on . Page updated . How we check facts

  1. code.claude.com/docs/en/routines (opens in a new tab)
  2. code.claude.com/docs/en/desktop-scheduled-tasks (opens in a new tab)
  3. code.claude.com/docs/en/scheduled-tasks (opens in a new tab)
  4. code.claude.com/docs/en/github-actions (opens in a new tab)
  5. code.claude.com/docs/en/headless (opens in a new tab)
  6. code.claude.com/docs/en/authentication (opens in a new tab)
  7. code.claude.com/docs/en/claude-code-on-the-web (opens in a new tab)
  8. code.claude.com/docs/en/sub-agents (opens in a new tab)
  9. support.claude.com/en/articles/13854387-schedule-recurring-tasks-in-claude-cowork (opens in a new tab)
  10. docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows (opens in a new tab)
  11. raw.githubusercontent.com/actions/upload-artifact/main/README.md (opens in a new tab)
  12. raw.githubusercontent.com/actions/checkout/main/README.md (opens in a new tab)

Related guides

All guides