@yukikisaku/pi-prune
Prune tool data and thinking blocks from the current Pi session.
Package details
Install @yukikisaku/pi-prune from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@yukikisaku/pi-prune- Package
@yukikisaku/pi-prune- Version
0.1.1- Published
- Sep 29, 2026
- Downloads
- 237/mo · 16/wk
- Author
- yukikisaku
- License
- MIT
- Types
- extension
- Size
- 17 KB
- Dependencies
- 0 dependencies · 1 peer
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-prune
Overview
Prune tool data and thinking blocks from the current Pi session.
Requirements
This command rewrites the active session file using Pi's internal rewrite primitive. Before replacing content it writes recoverable originals under a pi-prune-artifacts directory beside the session file. Ephemeral sessions have no recovery artifact.
Installation
pi install npm:@yukikisaku/pi-prune
Usage
Run /prune, /prune tool, or /prune thinking. The default prunes both categories while preserving skill tool content. Before a saved session is rewritten, the removed originals are written to a Markdown artifact and the result message shows its recovery path. Ephemeral sessions are pruned without creating a recovery artifact because they have no session file.
Configuration
No configuration. Recovery artifacts are always stored in a pi-prune-artifacts directory beside the active session file, with one Markdown file created for each prune operation.
Uninstallation
pi uninstall npm:@yukikisaku/pi-prune
Remove any package-specific configuration described above if you no longer need it.
License
MIT © yuki-kisaku. See LICENSE.