Stop burning usage: replace cron checks with event triggers

Stop burning usage: replace cron checks with event triggers

If your Claude Code, Cursor, or Grok Bot usage cap disappears halfway through the month, check your scheduled routines before blaming your interactive coding sessions.

A scheduled agent check looks harmless when you create it: "every hour, check Linear for new bugs," or "every 15 minutes, scan Slack for customer escalations." The cost shows up in the empty runs. Every time a cron trigger fires, the harness boots a session, loads its system prompt and MCP tool definitions, calls external tools to check for changes, and burns a full turn's worth of tokens just to conclude that nothing happened.

The math of empty polling runs

You do not need a benchmark to see why scheduled polling eats usage fast. Count the ticks:

Schedule cadenceRuns per dayRuns per 30-day monthTypical pattern
Every 5 minutes2888,640Almost never justified for an LLM agent
Every 15 minutes962,880High waste on quiet queues
Hourly24720Still ~90%+ empty runs for most repos or calendars
Daily (weekdays)1~22Reasonable for digests and batch audits
Event / webhook triggerOnly when upstream changesProportional to actual workZero idle turns

Now multiply across a workspace. During a November 13, 2026 Grok Bot Q&A, Lauren Tan and Matt Palmer pointed directly at this pattern when explaining why users were hitting usage limits unexpectedly: people reporting exhausted quotas frequently had half a dozen bots running 15 to 20 scheduled routines, some doing heavy multi-step work comparable to a 15-to-30-minute interactive session. Lauren Tan's advice applies across every agent platform right now: consolidate or remove noisy routines, move event-driven checks to webhooks (which she called an underrated pro tip, citing native Linear webhooks as an example), and watch the new MCP Events spec, which lets bots wake only when something actually happens rather than burning tokens every hour to check an unchanged calendar.

Even with harness optimizations, an empty scheduled run has a nonzero token floor. An event trigger that does not fire costs zero.

How event triggers work across today's agent platforms

Every major coding and assistant agent platform already supports event or webhook triggers alongside schedules — even before native MCP Events (SEP-3415) rolls out broadly. Most teams simply default to schedules because cron is the first option in the UI.

Claude Code scheduled tasks (formerly routines)

According to Claude Code's scheduled tasks docs, a cloud task supports three trigger types: Schedule, GitHub repository events (such as pull_request.opened or pull_request.closed), and API triggers (an authenticated HTTP POST endpoint with a bearer token and optional text payload).

Two details matter when migrating off cron:

  • A scheduled task does not need a schedule. You can remove the cron trigger entirely and run the task purely from a GitHub event or API webhook call.
  • Know the limits. Tasks belong to an individual claude.ai account, each event spawns a fresh session (no session reuse across PR updates), and GitHub triggers are subject to per-task and per-account hourly caps.

Cursor Automations

Cursor Automations run cloud agents on schedules or on native event triggers across GitHub, GitLab, Bitbucket Cloud, Slack (public channels), Linear (Issue created, Status changed, End of cycle), Sentry, and custom HTTP webhooks (POST with Authorization: Bearer and an optional JSON context field).

Cursor's billing note explains why noisy triggers get expensive quickly: automations run as cloud agents using the model's maximum context window and bill against cloud agent usage. Narrow filters — specific Linear statuses, specific labels, or keyword/regex filters on Slack messages — keep an event trigger from behaving like a polling firehose.

Grok Bot routines

Grok Bot's routines docs support event triggers from Slack, GitHub, Linear, Sentry, PagerDuty, email to the bot's address, and custom webhook endpoints (Authorization: Bearer). Their docs include the exact guardrail every team should adopt: define narrow matching rules (for example, a specific channel plus a keyword like "needs repro") and avoid broad listeners like "every new message," which recreate the same usage drain as aggressive polling.

Where MCP Events (io.modelcontextprotocol/events) fits next

Today, wiring a service that is not on a platform's built-in trigger list still forces you to configure custom webhooks or fall back to cron. SEP-3415 standardizes event subscriptions directly inside MCP with events/list, events/poll, events/stream, and events/subscribe. Even when an upstream API only supports polling (like Gmail history), events/poll moves the polling loop out of the LLM and into the client SDK, waking the model only when events[] is non-empty. See MCP Events vs webhooks vs polling (and Claude Code channels) for the full comparison.

What to move to events vs what to keep on a schedule

Not every cron job is a mistake. Separate reactive queues from time-bound summaries:

  • Move to event or webhook triggers: new Sentry error alerts, Linear issues assigned or labeled for an agent, PR opened or review requested, CI check failed, Slack @mentions or explicit escalation phrases, post-deploy smoke checks triggered by your CD pipeline.
  • Keep on a low-frequency schedule: weekly documentation drift scans, daily end-of-day changelog digests, end-of-cycle summaries, or scheduled dependency audits where the point is aggregating across a time window.

If a routine's prompt starts with "Check if there are any new..." or "Look for recent..." and exits early when the list is empty, it is a trigger disguised as a cron job.

Copyable trigger-audit prompt

Paste this prompt into Claude Code, Cursor, or Grok Bot (with access to your routine list, automation config, or workflow files) to audit what is burning usage and get a concrete migration plan:

Audit all of my scheduled routines, cloud automations, cron jobs, and recurring agent tasks.

For each scheduled task, inspect its cadence, prompt, connected tools/MCP servers, and what upstream condition actually makes a run useful. Output a markdown table with these columns:

1. Task name & current schedule (including estimated runs per 30 days)
2. Upstream source it is checking (e.g., Linear, GitHub, Slack, Sentry, email, calendar, internal API)
3. Empty-run risk (High / Medium / Low — High if most runs find nothing new)
4. Recommendation: choose ONE of:
   - Replace with native event trigger
   - Replace with webhook trigger
   - Consolidate or lower cadence
   - Keep on schedule (genuinely time-bound)
5. Proposed trigger rule with narrow filters (exact event type, label, status, repo, or channel + keyword filter so it does not fire on noise)

After the table:
- Rank the top 3 biggest usage drains to fix first.
- Flag any broad event listeners (like "every message in a channel" or unfiltered webhooks) that should be narrowed.
- For each task marked "Replace with webhook trigger", give me the exact curl test payload and minimal fields to send so we avoid bloated or untrusted payloads.
- Do not modify or delete any routine until I confirm.

Once you migrate a reactive check from an hourly schedule to a narrow webhook or native event trigger, leave the old schedule paused for a week to confirm the event path fires reliably, then delete it.

How Cyrus routes events into Claude Code without cron waste

Cyrus was built as a context router — a switchboard for agent context with guardrails and low latency — rather than a polling loop. Instead of waking Claude Code on a timer to go hunt for updates, Cyrus listens to verified upstream events from Linear, GitHub, GitLab, Slack, Sentry (via Linear or alerts), and webhooks, and routes the right context to the right agent only when an actual event matches your rules. Your team moves at the speed of data, and idle polling cost stays at zero.

Two practical differences for teams migrating off personal routines:

  • Shared, persistent sessions per ticket or PR. When a reviewer requests changes on GitHub or a teammate adds context in Linear or Slack, Cyrus routes that event back into the existing session and Git worktree rather than starting blind from scratch.
  • Background worktrees plus live Claude Code channels. Unattended work runs in isolated Git worktrees on your own server or Cyrus Cloud; when you want live events pushed straight into an interactive terminal, Cyrus supports Claude Code channels.

Keeping idle polling cost at zero ensures your token budget goes to real fixes and reviewed PRs instead of checking empty queues 720 times a month.

To wire your first event-driven pipeline in under ten minutes, see our Sentry + Linear AI bug fixes guide or our Linear integration docs.

Frequently asked questions

Why do scheduled agent routines use so much of my monthly quota?

Every scheduled tick starts a fresh agent turn, loads the system prompt and connected MCP tool definitions, and runs tool calls to check upstream systems. An hourly routine runs 720 times a month; ten hourly routines run 7,200 times a month, even if 95% of those checks find nothing to act on.

Can I run Claude Code routines without a schedule?

Yes. Claude Code cloud scheduled tasks support standalone GitHub event triggers and standalone HTTP API webhook triggers with no cron schedule attached. Removing the schedule means the task only consumes usage when a matching GitHub event or authenticated POST arrives.

Won't a noisy webhook trigger burn just as much usage as polling?

It can if the trigger filter is too broad. Listening to every message in an active Slack channel or every comment across an organization creates the same token burn as polling. Scope triggers narrowly — by explicit @mention, specific Linear label or assignee, specific GitHub event, or targeted Sentry alert rule.

How does MCP Events help if an upstream service does not offer webhooks?

SEP-3415's events/poll mode puts the polling loop in the MCP client SDK instead of the LLM. The SDK calls events/poll on the server's nextPollMs schedule with a cursor; when events[] is empty, no LLM session starts and zero tokens are consumed.

Team of engineers preparing a rocket for launch - Ship your next feature with Cyrus
Trusted by product teams at Retool, Gamma, TinyFish, and more

Break free from the terminal

As your Claude Code powered Linear agent, Cyrus is capable of accomplishing whatever large or small issues you throw at it. Get PMs, designers and the CEO shipping product.

Stop burning usage: replace cron checks with event triggers | Cyrus