---
title: "Scheduled prompts: cron for AI agents in Cohub"
description: "Scheduled prompts are cron for AI agents in Cohub: send a prompt once after a delay, at a set time, or on a 5-field cron schedule in your time zone."
lang: "en"
canonical: "https://cohub.live/features/scheduled-prompts"
image: "https://cohub.live/_seo/og/features/scheduled-prompts.png"
updated: "2026-11-17"
---

# 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](https://cohub.live/_seo/img/cli/cli-cron-jobs-dark.webp)

Source: <https://www.npmjs.com/package/@neta-art/cohub-cli>

![Cohub docs, CLI page: prompt a Chat and schedule a prompt with --at](https://cohub.live/_seo/img/docs/docs-cli-prompt-schedule.webp)

Source: <https://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 |

```bash
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](https://cohub.live/features/space-hooks) when an event decides: a file change, a finished turn, a Save, a webhook. Worked examples: [scheduled agent work](https://cohub.live/use-cases/schedule-ai-agent-tasks). A full setup that runs a skill every morning and delivers the result with a hook: [daily GitHub issues digest](https://cohub.live/guides/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](https://cohub.live/docs/developers/cli): the spaces prompt command and its options
- [Core concepts](https://cohub.live/docs/learn/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](https://cohub.live/use-cases/schedule-ai-agent-tasks): 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](https://cohub.live/guides/github-issues-digest): 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](https://cohub.live/features/space-hooks): 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](https://cohub.live/use-cases/indie-developer-ai-workspace): 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.

## Sources

- [Cohub docs: CLI (Prompt a Chat)](https://cohub.live/docs/developers/cli)
- [Cohub docs: Core concepts (Scheduled prompt)](https://cohub.live/docs/learn/core-concepts)
- [Cohub changelog (Library v2.98, Space overview v2.99)](https://cohub.live/changelog)
- [Cohub home page (Scheduled prompts)](https://cohub.live/)

Updated Nov 17, 2026
