Scheduled prompts: cron for AI agents
Scheduled prompts are cron for AI agents: a Cohub prompt sent to a Space after a delay, at an ISO time, or on a cron expression with a time zone, with each run recorded in a Chat.
- Who
- Anyone who wants an agent to do something later or on repeat without a separate server or cron box.
- When
- A task has a clock attached: tomorrow at nine, every weekday, the first of the month.
- Why
- A scheduled prompt is an ordinary Cohub prompt with a time attached, sent to the same Space and agent you already chat with.


Three ways to time a prompt
| Option | Example | Use for |
|---|---|---|
--delay-ms |
--delay-ms 600000 |
A reminder in ten minutes |
--at |
--at "2026-12-01T09:00:00+08:00" |
One run at a set time |
--cron + --timezone |
--cron "0 9 * * 1" --timezone Europe/Berlin |
Repeating work |
cohub -s <space> spaces prompt --cron "0 9 * * 1" --timezone Europe/Berlin \
--title "Weekly review" --label Ops "Review last week's commits and update docs/status.md"Options worth setting
--session <id>to continue one Chat on every run, or--titlefor new ones;--labelto file the Chats it creates;--env KEY=valuefor per-run environment variables.
Manage schedules
cohub cron-jobs lslists yours across Spaces;--filter pausedor--filter attentionnarrows it.cohub cron-jobs get,update,toggle <id> on|off,deleteandrunscover the rest.- In the web app, the Library lists scheduled prompts beside Spaces and Apps, with next and last run. A Space's overview counts finished and failed schedule runs over the last 7 days.
Schedules or hooks?
Use a schedule when time decides. Use a Space hook when an event decides: a file change, a finished turn, a Save, a webhook. Worked examples: scheduled agent work. A full setup that runs a skill every morning and delivers the result with a hook: daily GitHub issues digest.
Reference in the docs
This page: Which timing to use for a prompt (a delay, a set time or cron), and when a hook fits better.
- CLI: the spaces prompt command and its options
- Core concepts: where scheduled prompts sit among Cohub's objects
Related
- Set up AI agent scheduled tasks that run inside your Cohub Space while you are away
You schedule AI agent tasks in Cohub with a scheduled prompt: a message the Space sends to its agent once at a set time or on a cron schedule, with every run kept as a Chat.
- Build a daily GitHub issues digest with a scheduled prompt and a Space hook
To get a GitHub issues digest every morning in Cohub, schedule a prompt that runs a digest skill in a fixed Chat, and add a Space hook that posts each new digest file to a webhook as soon as it is written.
- Space hooks: run scripts on AI agent events
Space hooks let you run scripts on AI agent events in Cohub: a YAML file in .cohub/hooks/ runs a command, sends a prompt or calls an App Action when a turn finishes, files change, a Save is created or a webhook arrives.
- How one Cohub Space works as an AI agent workspace for indie developers
Cohub is an AI agent workspace for indie developers: each Space has a cloud sandbox the agent runs commands in, port previews, one-command publishing and prompts that run on a schedule.