> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Run on a schedule

> Start your agent on a cron schedule instead of waiting for a message, for work that recurs: a daily digest, a nightly sync or a weekly report.

Each file in `agent/schedules/` is one schedule, named after the file. The simplest is a Markdown file, with `cron` in its frontmatter and the prompt as its body:

```md agent/schedules/daily-digest.md theme={"theme":{"light":"github-light","dark":"github-dark"}}
---
cron: "0 9 * * 1-5"
---

Summarize yesterday's new support tickets and send the summary with post_summary.
```

* `cron` takes the standard five fields, to the minute, in UTC. A deployed agent fires each schedule once per tick.
* A prompt schedule starts a new session on every run, so it doesn't remember earlier runs. It has no one to reply to: the reply is discarded, and a tool that needs approval fails the run. Have the agent deliver its result through a tool.
* To run code instead, write the schedule in TypeScript with `defineSchedule` from `eve/schedules` and give it `run`. It can send the agent's work to a channel, such as a Slack channel, where the run can wait for people like any other session. See eve's [schedules documentation](https://eve.dev/docs/schedules).
* `pnpm dev` doesn't fire schedules on their cadence. Deploy, then watch them with `jaccard logs`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.