What is /schedule?
The /schedule command allows you to instruct an AI agent to execute a task at a specified future time or repeatedly according to a schedule.
Instead of manually asking the AI to perform the same task again, you can schedule it.
In simple words: Tell AI what to do and when to do it.
For example:
- Check deployment status after 10 minutes.
- Check CI test results every 5 minutes.
- Review pending tasks every morning.
- Generate a status report every weekday.
Why do we need /schedule?
Imagine you are deploying a Laravel application.
You have started deployment, but the process takes 15 minutes.
You don't want to keep asking:
"Has deployment finished?"
Instead, you can schedule the agent to check after 15 minutes.
/schedule in 15 minutes, check whether
my Laravel deployment has completed
and report any errors.
Two types of scheduling
/schedule supports two execution methods.
A. One-time timer
A task executes once after a specified duration.
Example:
/schedule in 10 minutes, check whether
my staging deployment is successful.
Recurring schedule
A task executes repeatedly according to a cron expression.
Example:
/schedule "0 9 * * 1-5" Run git fetch
and summarize pending PR reviews.
This runs at 9:00 AM, Monday through Friday.