Catch a Claude routine that fails silently

A report block for any routine: what it did, how many, what it skipped, and FAILED when empty.

The run listSucceededGreen means the run ended, not that the work got done
FINAL STEP: REPORT
  • STATUS:OK or FAILED
  • DID:what you actually did
  • COUNT:how many, as a number
  • SKIPPED:how many and why
FAILED: when COUNT is 0 or the result is empty
Sent to Slack or email, somewhere you already look#routine-reportsyou@example.comNo report at the usual time is also an alarm
  1. A routine run shows Succeeded in the run list. Green means the run ended, not that the work got done.
  2. The report block at the end of the prompt: STATUS, OK or FAILED. DID, what you actually did. COUNT, how many, as a number. SKIPPED, how many and why.
  3. When COUNT is 0 or the result is empty, the report starts with FAILED:.
  4. The report goes somewhere you already look: a Slack channel such as #routine-reports, or an email address such as you@example.com.
  5. No report at the usual time is also an alarm.
20 minSome setup

You need

  • A Claude plan that includes Claude Code routines
  • One routine you already run, or a new one
  • A Slack channel or an email address you check

A Claude routine can run every day, show a green status, and hand you nothing useful. You find out days later, when you open the notes and they are empty.

The fix is small. End the routine's prompt with a short report that says what it did, how many things it handled and what it skipped. Send that report somewhere you already look. When the result is empty, the report starts with FAILED.

01 / 08

Why a green run is not enough

In Claude Code, a routine is a saved prompt that runs on a schedule or on a trigger, in the cloud. Anthropic now also calls these scheduled tasks, and the documentation uses that name. The run list shows each finished run as Succeeded, Failed or Cancelled.

Here is the part that catches people out. As of November 2026, Anthropic's docs say those outcomes describe how the session ended, not whether Claude completed the work your prompt describes. Succeeded means the session ended without Claude Code reporting a failure. Blocked network requests, missing connector tools and work Claude could not finish show up in the run's transcript, not on the status row.

So a routine can get a green mark and still produce empty notes. The report block makes the task itself tell you.

02 / 08

Check one real run first

If you already run a routine, start here. About 10 minutes.

  1. Open your routines page at claude.ai/code/routines and click one past run. It opens as a normal session.

  2. Read what Claude actually did: what it searched, which tools it used, what it produced, what it said at the end.

  3. Look for signs of a quiet failure: a blocked network request, a missing tool, "I could not find" or "no results", an empty file, a summary of nothing.

  4. Shortcut: in Claude Code, run /schedule why did my {ROUTINE NAME} do nothing this morning? and Claude reads the run log for you. This needs a recent version of Claude Code.

03 / 08

Add the report block

Open the routine, choose Edit, and paste this block at the very end of its prompt. Replace only the part in curly braces with your Slack channel or your email address. Claude fills in the angle-bracket parts on every run. Keep the block as the last thing in the prompt.

The routine report block
Paste this at the very end of a routine's prompt. It makes the routine finish with a short report and mark an empty result as FAILED. FINAL STEP: REPORT (always do this, even if the job failed or found nothing) Write a report in exactly this shape and put it FIRST in your final message: STATUS: OK or FAILED DID: <one line: what you actually did> COUNT: <how many items you processed, as a number> SKIPPED: <how many you skipped and why, one line; write 0 if none> Rules for the report: 1. If COUNT is 0, or the thing you were asked to produce is empty or missing, STATUS must be FAILED and the first line of your message must start with "FAILED:" followed by the reason. Empty output is a failure, not a quiet success. 2. Write OK only if you can name at least one real item you produced. 3. Never guess a number. Count what you actually handled. 4. Then send this exact report, with the "FAILED:" line on top when it failed, to {WHERE: for example the Slack channel #routine-reports, or the email address you@example.com} using the connector. If sending fails, write "REPORT NOT SENT" as the last line. 5. Check step: before you send, list the real items you counted, one per line, so I can see the count is true.
1,220 characters

04 / 08

Why each line is there

  • Report first, in a fixed shape. You can read it in two seconds, and a missing line is easy to spot.
  • FAILED if empty. The status in the run list will not tell you. The report does.
  • Counts, not adjectives. "Processed 4, skipped 1 (empty file)" can be checked. "Went well" cannot.
  • Send it somewhere you already look. A report nobody reads is the same as no report.
  • No report at the usual time is also an alarm. If the message does not arrive on schedule, the run did not happen or could not send. Open the routine.

05 / 08

Run it and test the failure

  1. Click Run now on the routine's page.

  2. Within a few minutes, a report in the shape STATUS, DID, COUNT, SKIPPED should arrive where you pointed it.

  3. Now test the failure case. Temporarily point the routine at something empty, such as a folder or label with nothing in it, and run again. You should get STATUS: FAILED.

  4. If you get OK on nothing, tighten rule 1 in the block, then run it again.

  5. Point the routine back at the real thing.

06 / 08

Switch off connectors the routine does not use

When you create a routine, all of your connected connectors are included by default. Claude can use an included connector during a run, including writes. Routines also act as you, so messages and changes show up under your name.

In the routine's settings, remove every connector this job does not need. Keep only what it reads from and the one place it reports to.

07 / 08

Test it safely

  • The report arrives where you pointed it, with all four lines.
  • An empty run gives STATUS: FAILED and a reason on the first line.
  • A run with one good item and one empty one counts the empty one as skipped.
  • Only the connectors the job needs are switched on.
  • You have a calendar reminder or a habit: no report at the usual time means open the routine.

Common mistakes

  1. Trusting the green mark. It says the session ended, not that the work got done.

  2. Pasting the block in the middle. It belongs at the very end of the prompt.

  3. Reporting to a place nobody checks. Pick a channel or inbox you already open.

  4. Skipping the empty test. You only know FAILED works if you have seen it fire.

  5. Leaving every connector on. A routine acts as you. Keep only what the job needs.

What does a green status mean on a routine?

As of November 2026, Anthropic's docs say it describes how the session ended, not whether your task worked. Read the run or add a report to be sure.

Where do I find my routines?

At claude.ai/code/routines, or run /schedule in Claude Code. Anthropic also calls them scheduled tasks.

What if the report never arrives?

Treat that as the alarm. Open the routine, read the latest run, and check that the report destination is still connected.

Do I need to code?

No. You paste a block of text at the end of the routine's prompt and replace one fill-in.

Finish line

What to do next

  1. Open one past run and read what Claude did.

  2. Paste the report block at the end of that routine and run it.

  3. Test the empty case once, then remove unused connectors.

More guides are on the guides hub. Related: plan your day with two scheduled Claude tasks and give your AI its own login.

You reached the end of the guide