How to set up a Claude Code scheduled task that actually runs
My hourly Claude Code monitor ran for days and did nothing. It was set to refuse anything not on its allow list, and a scheduled task has nobody to say yes.
Add allow rules when you create the task, for exactly the commands it needs.
Keep commands simple. A chained command is checked piece by piece, and one unlisted piece blocks the whole thing.
Put secrets inline in the one command that needs them, rather than in a chain.
Run it once by hand and check it returned real data, not just "nothing to report".
Change the schedule from a normal session. A scheduled task can't edit its own schedule.
Treat silence as a warning. A monitor that can't run looks exactly like an all-clear.