pi-wait
Send a queued Pi message after a timeout
Package details
Install pi-wait from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-wait- Package
pi-wait- Version
0.1.5- Published
- Sep 29, 2026
- Downloads
- 604/mo · 28/wk
- Author
- brettinternet
- License
- MIT
- Types
- extension
- Size
- 21.5 KB
- Dependencies
- 0 dependencies · 3 peers
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-wait
Send a prompt after a delay.
pi install npm:pi-wait
/wait 10m Check whether the deployment completed
/loop 10 /wait 10m Check the deployment again
Commands
/wait <duration> <prompt> queue a prompt
/wait <duration> reset the queued prompt's timer
/wait now send it now
/wait pause freeze the countdown
/wait resume continue the countdown
/wait cancel drop it
/wait status show it and the time left
/wait same as status
A new /wait <duration> <prompt> replaces the queued prompt and timer. While the agent is busy, Enter starts the timer now; submitting as a follow-up starts it after the agent settles. Durations use ms, s, m, h, or d, up to 24 days.
Behavior
The prompt waits for current work to settle. If the timer fires while Pi is busy, it stays queued. Active and paused waits survive /reload.
The agent can call wait_then_continue, which ends its turn and starts the timer once the turn settles. It can call cancel_wait to drop a queued wait without ending its turn. During /loop, the iteration waits for the queued prompt and its turn before moving on.