pi-scratchpad
pi extension: a per-session scratchpad directory for temporary files, kept out of your project
Package details
Install pi-scratchpad from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-scratchpad- Package
pi-scratchpad- Version
1.0.1- Published
- Oct 2, 2026
- Downloads
- 555/mo · 25/wk
- Author
- toshimichi
- License
- unknown
- Types
- extension
- Size
- 3.1 KB
- Dependencies
- 0 dependencies · 1 peer
Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-scratchpad
A pi extension that gives each session its own scratchpad directory: a place for temporary scripts and intermediate files that stays out of your project.
- creates
~/.pi/agent/scratchpads/<session-id>/at session start - names it in a
<scratchpad>system prompt section, as the default instead of/tmp - exports it to shell commands as
$PI_SCRATCHPAD_DIR
Nothing in it shows up in git status, and nothing is cleaned up automatically.
Install
pi install npm:pi-scratchpad