omp packages

@luxass/pi-schedule0.1.0

Schedule prompts to run later or on a repeat in a Pi conversation.

GitHub Actions Published 9 hours ago MIT ~0 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

@luxass/pi-schedule

Schedule prompts to run later in a Pi conversation, once or on a repeat. When a job is due, its prompt arrives in the chat and Pi works on it.

Install

pi install npm:@luxass/pi-schedule

To try it from this repository, run pi -e ./packages/pi-schedule.

Use

Ask Pi to do something later, such as "in 20 minutes, check whether CI on #57 is green" or "every 30 minutes, check the deploy log". The model schedules a job with a name, a prompt, and a time:

  • delay runs the job after a duration, such as 90s, 20m, 1h30m, or 2d.
  • at runs it at a local time. 18:00 means the next time the clock shows 18:00. A date and time such as 2026-12-24T09:00 also works. Add Z or an offset for another time zone.
  • every repeats the job, at most once a minute. The first run is at delay or at, or one interval from now.
  • skip_if_late skips a run that would start more than this long after its time, such as 5m, because Pi was closed or busy. Ask for it with work that must not happen much later, such as a merge or a deploy. A skipped run shows in the chat but does not start a turn.

When a job is due and Pi is idle, its prompt arrives as a message and starts a turn. If Pi is working, the job waits until Pi finishes, so it never interrupts a turn. A repeating job that came due several times while it waited runs once.

To run an agent at a set time, put the agent in the prompt. With @luxass/pi-subagents, the model can start it when the job runs.

Control Action
/schedule List pending jobs with their next run, then choose one to cancel.
Footer Shows the next job and its countdown, such as ⏰ check-ci in 12m +1.

You can also ask the model to list or cancel jobs.

Jobs belong to the session. /reload and /resume keep them, and /new and /fork start without them. A job that came due while Pi was closed runs once when you open the session again, and its message says how late it is. If the job has skip_if_late and is later than that, it is skipped instead. Jobs run only in the interactive terminal and RPC mode. In print and JSON mode, a scheduled job waits for the next interactive run of the session.

A session can have up to 20 pending jobs, each at most a year ahead.