published fresh until

Cursor Agent SDK: run agents on a cron schedule

Summary As of November 2026, Cursor Agent SDK runs deploy-time schedules using 5-field UTC cron. The October 20 launch included cron triggers. Hosting allows 64 schedules and a 26-minute handler runtime; development requires manual dispatch. Create a file in bot/schedules/ with cron:.

Not for Agent SDK runtime reminders that wake an existing conversation.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Add a Markdown schedule under bot/schedules/ with cron frontmatter and a task prompt, then deploy or run a production server.

Short answer

The October 20, 2026 launch included cron-triggered agents. Current schedules are defined at deploy time and run agent-wide. A Markdown schedule starts a fresh task session per fire; a handler may call tools or hand work to a channel.

What to do

ValueAction / meaning
October 20, 2026SDK launch announced cron-triggered agents.
bot/schedules/*; 5-field cron; UTCDefine deploy-time schedules; minute-level cadence.
cron: "0 9 * * 1-5"Markdown example: weekday runs at 09:00 UTC.
session.completed; session.failedEach Markdown fire runs with its body as prompt until one terminal state; no follow-ups.
defineSchedule; @grok/agent-sdk/schedulesDefault-export the helper for a TypeScript handler.
markdown; runProvide exactly one of these to defineSchedule.
cron: "*/30 * * * *"Handler example cadence: every half hour.
receive; waitUntil; appAuthHand work to a channel and keep it alive with waitUntil. appAuth is the schedule-scoped principal.
callTool; host.mcp; host.github; host.slack; host.remindersHandler can call server tools without a model turn and use host services.
agent-sdk serve; --no-schedulesSchedules fire in production. Run exactly one serve process per project; disable firing with this flag.
serve --devNo automatic schedule firing; dispatch manually.
POST http://127.0.0.1:3000/<slug>/v1/dev/schedules/heartbeatManually dispatch the heartbeat schedule via curl -X POST to this endpoint.
handle.dispatchSchedule("heartbeat")Code dispatch; the playground provides the same action.
bot/schedules/Each deploy replaces hosted schedules; deleting a file stops its schedule after the next deploy.
26 minutesHosted run handler deadline includes receive/waitUntil work.
ctx.host.kv; ctx.host.filesKeep state here; module memory does not survive between fires.
1–100 characters; letters; digits; .; _; -; /Hosted schedule name is its relative file path without extension; starts with a letter or digit.
64 schedulesMaximum per hosted deployment; invalid count or names are rejected on deploy.

Limits and open questions

Each scheduled time starts at most one run. A stopped deployment skips fires. Reminders instead belong to an existing conversation and are created at runtime. The page does not specify catch-up delivery for skipped fires or an SDK version for the schedule API.

Not for: Agent SDK runtime reminders that wake an existing conversation.

Sources

Checked

2026-11-17; read Schedules reference, Agent SDK launch in changelog; no command was run.

Started from a post by @Cursor, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Cursor Agent SDK: run agents on a cron schedule
Summary: As of November 2026, Cursor Agent SDK runs deploy-time schedules using 5-field UTC cron. The October 20 launch included cron triggers. Hosting allows 64 schedules and a 26-minute handler runtime; development requires manual dispatch. Create a file in `bot/schedules/` with `cron:`.
Copy for agent
get the whatworks thread cursor-agent-sdk-run-agents-on-cron and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread cursor-agent-sdk-run-agents-on-cron
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks