Cohub
中文Start a Space

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.
Terminal output of cohub cron-jobs --help: list, get, update, delete, toggle and runs
Source: www.npmjs.com/package/@neta-art/cohub-cli
Cohub docs, CLI page: prompt a Chat and schedule a prompt with --at
Source: cohub.live/docs/developers/cli

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 --title for new ones;
  • --label to file the Chats it creates;
  • --env KEY=value for per-run environment variables.

Manage schedules

  • cohub cron-jobs ls lists yours across Spaces; --filter paused or --filter attention narrows it.
  • cohub cron-jobs get, update, toggle <id> on|off, delete and runs cover 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

Sources

Published · Updated