Atlas AI Resources

Guide

Scheduling AI agent routines: cron patterns that stay cheap

A routine is what turns an agent from “something you remember to ask” into a job that runs itself. The hard part isn’t the cron line — it’s picking when to wake, and what to do when there’s nothing worth doing.

1. Pick the trigger before the schedule

Ask first: does something happen that should wake the agent (a PR opened, a message posted, a form submitted)? If yes, use an event trigger or webhook. GitHub’s own docs put it plainly: webhooks deliver data as it happens and take less effort and fewer resources than polling an API. Save cron for work that is genuinely time-based — digests, weekly reviews, “check the queue each morning.”

2. Cron patterns worth copying

Standard five-field cron (minute hour day-of-month month day-of-week):

Check the timezone: Cloudflare Cron Triggers run on UTC, and GitHub Actions schedules default to UTC unless you set one. Cloudflare also numbers weekdays 1 = Sunday, unlike most cron systems — use MON–FRI names to avoid surprises.

3. Avoid the top of the hour

Everyone schedules at :00. GitHub notes that scheduled workflows can be delayed during high load, which includes the start of every hour, and recommends a different minute. Cursor’s scheduled triggers may also start late (never early). Pick an odd minute like :07 or :43, and don’t write routines that break if they run a few minutes late.

4. Be quiet when nothing changed

The most useful rule for a scheduled agent: if there’s nothing new, do nothing and say nothing. A daily “no updates today” message trains people to ignore the bot.

5. Keep token and usage cost down

6. A quick checklist

Useful public resources

crontab.guru

Type a cron expression and see it in plain English. The fastest way to sanity-check a schedule.

Cursor docs — Automations

Scheduled (cron) and event triggers for cloud agents: GitHub, Slack, webhooks, Linear, and more, plus memories and prompt tips.

Cloudflare Workers — Cron Triggers

Run a Worker on a schedule; supported cron syntax, UTC timing, and local testing.

GitHub Actions — events that trigger workflows

The schedule event, timezone option, load delays at the top of the hour, and every event trigger.

GitHub docs — About webhooks

A clear explanation of webhooks vs polling, and when to choose each.

xAI docs — Prompt caching

How repeated prompt prefixes are cached automatically, and what breaks the cache.

Anthropic — Building effective agents

Why simple, composable workflows usually beat complex agent frameworks.

New to narrow bots? Start with What is a one-job Grok Bot?