pi-scheduled-tasks
v0.0.3
Published
A pi extension for scheduled prompts, recurring checks, and prompt-executable slash commands
Maintainers
Readme
pi-scheduled-tasks
A pi package that adds scheduled prompts and prompt-executable slash commands to pi.
It lets pi run reminders, recurring checks, cron-style tasks, and loop-style prompts without needing a polling loop.
Install
From npm
pi install npm:pi-scheduled-tasksProject-local install:
pi install -l npm:pi-scheduled-tasksFrom GitHub
pi install git:github.com/errfld/pi-scheduled-tasksQuick examples
/loop every 15m check CI failures and summarize changes
/schedule once "tomorrow at 9am" remind me to review open PRs
/schedule cron "0 9 * * 1-5" /daily-standupWhat it adds
Commands
/loop 5m check deployment
/loop every 2 hours check CI
/loop check deployment
/loop
/schedule list
/schedule delete <id>
/schedule every 30m check CI
/schedule once "in 45 minutes" check tests
/schedule cron "*/15 * * * *" check statusModel-callable tools
scheduled_task_createscheduled_task_listscheduled_task_delete
Features
- one-shot scheduling with natural language time input
- interval scheduling like
5morevery 2 hours - cron scheduling with standard 5-field expressions
- loop-style recurring prompts with default prompt resolution
- queued execution while pi is busy
- session snapshot persistence and restore
- custom scheduler status and message rendering
Default /loop prompt resolution
When /loop is used without an explicit prompt, the extension resolves the default prompt in this order:
.pi/loop.md~/.pi/agent/loop.md.claude/loop.md~/.claude/loop.md- built-in default prompt
Development
npm install
npm run ciUseful commands:
npm test
npm run test:watch
npm run check
npm run pack:checkRelease
- push to
mainto run CI - push a tag like
v0.0.3to run the release workflow - tagged releases publish to npm using the repository
NPM_TOKENsecret - published versions are installable with
pi install npm:pi-scheduled-tasks
Changelog
See CHANGELOG.md.
License
MIT
