Claude Code Scheduled Tasks: A Weekly Check You Can Review in Five Minutes
Claude Code can run tasks on a schedule. For a regular check that should run without you, a cloud task fits: you create it with the /schedule command, it runs on Anthropic's servers and doesn't need your computer to be on. Once a week the agent runs the check and leaves a report you read when it suits you.
Below is an example: a weekly report on flaky tests. Its value is that it takes five minutes to read and splits right away into "look at it yourself" and "can go to an agent". The second part is easy to move into Tascue right away: each line of the report becomes a task in the backlog, not an item everyone saw and forgot.
Which mode to pick
| Mode | Where it runs | Computer must be on | Fits a weekly check |
|---|---|---|---|
/schedule, a cloud task |
Anthropic's servers | No | Yes |
| Scheduled tasks in the Claude app | Your computer | Yes | If you need local files |
/loop in a session |
An open session | Yes | No: repeats last at most 7 days |
| GitHub Actions | GitHub runners | No | Yes, if you need the report in CI |
Cloud tasks are available on the Pro, Max, Ultra, Team and Enterprise plans. Each run uses your subscription limits.
Setup
Run this in Claude Code:
/schedule weekly flaky test check, Monday 9:07
Claude asks which repository to use and what to do, then saves the task. You can do the same on claude.ai/code/routines: New task, then Schedule in the Trigger row and a weekly frequency.
A few details:
- runs scheduled exactly on the hour can start a few minutes late, so pick a time like 9:07;
- a custom cron expression is read in UTC: Monday 9:07 UTC is
7 9 * * 1; - the repository is cloned fresh for every run, from the default branch.
What to tell the agent
Find flaky tests. Don't fix anything and don't create branches.
1. Run the tests five times: uv run pytest -q.
2. A flaky test is one that failed in at least one run, but not in all of them.
A test that failed in all five is broken; list it separately.
Report: at most 15 lines, three sections:
- Needs attention: broken tests and flaky tests in payments and auth.
- Can go to an agent: flaky tests with a clear cause
(time, order, network) and one sentence on what to fix.
- Summary: how many flaky tests out of how many.
The "at most 15 lines" limit matters most here. Without it, the report turns into a log nobody reads.
The report
Flaky tests. 5 runs, 412 tests.
Needs attention
- tests/billing/test_refund.py::test_partial_refund — 2 of 5, payments.
Can go to an agent
- tests/orders/test_export.py::test_csv_dates — 3 of 5: depends on the current
date, needs a fixed now.
- tests/api/test_search.py::test_order — 1 of 5: result order
isn't set, add sorting.
Summary: 3 flaky out of 412.
Each run is a separate session. You can open it from the History list on the task page.
What to do with the report in Tascue
A report is useful only if something happens after it. Five minutes on Monday is triage, not fixing.
The lines from "Can go to an agent" become tasks in the Tascue backlog. The report already has everything a task needs: the file, the test, the cause and what to fix. All that's left is one line on how to check it, for example "the test passes 20 runs in a row". You can hand these tasks to an agent any day you get to them, not in the middle of other work.
"Needs attention" is your call. A failing refund test shouldn't go to an agent blindly. First write down in the task what's known, and decide who looks into it and how.
If the agent has access to the Tascue MCP, it can write its findings into the backlog itself. Then on Monday you open ready tasks instead of a report and decide which to take. And on Mondays Tascue already sends the "Your week in Tascue" email: what's done, what's in progress and what's next in the queue.
When to turn the schedule off
- Three weeks in a row the report says "0 flaky". The check has done its job; pause it with the switch on the task page.
- Nobody reads the report anymore. It's either too long or the check isn't needed. Shorten the report first, and if that doesn't help, turn it off.
- The check moved to CI, for example tests are retried automatically and flaky ones are flagged there.
- The runs started to eat noticeably into your limits. Cut five runs down to three or run the check every two weeks.
You can delete the task from the menu next to its name on claude.ai/code/routines.