piagent_
← ~/map

$ cat ~/map/pi-shell-jobs.md

pi-shell-jobs

Managed background shell jobs for pi: long commands and interactive terminals keep running across /reload.

extensions✓ Oct 31

Facts

repository
github.com/wuchangming/pi-shell-jobs ↗
GitHub Stars
★ 0
Forks
0
license
MIT
npm / mo
—
last push
Oct 31, 2026

install

pi install npm:pi-shell-jobs, then start a new pi session or run /reload; append --local for a project-only install, pin with npm:pi-shell-jobs@0.1.1, or follow development via git:github.com/wuchangming/pi-shell-jobs. Use pi --keep-builtin-bash to retain the built-in tools the extension replaces by default.

## TL;DR

A pi extension that runs long commands and interactive terminals as managed background jobs: the conversation continues while exec_command, write_stdin, list_sessions, set_on_exit, and kill_session start, drive, and stop processes that survive /reload within the same pi session.

## Key points

## FAQ

Q Do jobs survive a crash or machine restart?

No. Reload continuity holds within one running pi process only; after a crash or restart the jobs are gone.

Q Does Esc kill a running job?

No. Esc cancels waiting; the job keeps running. Explicit stop and normal pi shutdown request cleanup.

Q What happens when the job registry is full?

It refuses new jobs rather than evicting live ones.

Q Is this a sandbox?

No. Termination is best effort for process trees, and a result can carry cleanup: unconfirmed to say the exit was never confirmed.

Q What are the platform requirements?

Windows, macOS Intel or Apple Silicon, and Linux, on Node 22.19+ with pi 1.4 or later (before 2.0); no tmux, WSL, or external daemon.

## References

## Related entries

## Guides

Last updated: Oct 31, 2026