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
| Value | Action / meaning |
|---|---|
October 20, 2026 | SDK launch announced cron-triggered agents. |
bot/schedules/*; 5-field cron; UTC | Define deploy-time schedules; minute-level cadence. |
cron: "0 9 * * 1-5" | Markdown example: weekday runs at 09:00 UTC. |
session.completed; session.failed | Each Markdown fire runs with its body as prompt until one terminal state; no follow-ups. |
defineSchedule; @grok/agent-sdk/schedules | Default-export the helper for a TypeScript handler. |
markdown; run | Provide exactly one of these to defineSchedule. |
cron: "*/30 * * * *" | Handler example cadence: every half hour. |
receive; waitUntil; appAuth | Hand work to a channel and keep it alive with waitUntil. appAuth is the schedule-scoped principal. |
callTool; host.mcp; host.github; host.slack; host.reminders | Handler can call server tools without a model turn and use host services. |
agent-sdk serve; --no-schedules | Schedules fire in production. Run exactly one serve process per project; disable firing with this flag. |
serve --dev | No automatic schedule firing; dispatch manually. |
POST http://127.0.0.1:3000/<slug>/v1/dev/schedules/heartbeat | Manually 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 minutes | Hosted run handler deadline includes receive/waitUntil work. |
ctx.host.kv; ctx.host.files | Keep 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 schedules | Maximum 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
- Schedules reference, Cursor, 2026-11-17.
- Agent SDK launch in changelog, Cursor, 2026-10-20.
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