@deathbeam/pi-archive
Minimal extension for searching past Pi conversations and improving compaction.
Package details
Install @deathbeam/pi-archive from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@deathbeam/pi-archive- Package
@deathbeam/pi-archive- Version
0.0.9- Published
- Oct 18, 2026
- Downloads
- 1,428/mo · 229/wk
- Author
- deathbeam
- License
- MIT
- Types
- extension
- Size
- 24.5 KB
- Dependencies
- 0 dependencies · 2 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
@deathbeam/pi-archive
Search past Pi sessions with search_archive and show recent session titles.
Installation
# Choose one:
pi install npm:@deathbeam/pi-archive # this package
pi install git:github.com/deathbeam/pi-packages # all my packages
Configuration
Optional archive settings live in ~/.pi/agent/settings.json or .pi/settings.json:
{
"archive": {
"compaction": "anthropic/claude-haiku-4-5:low"
}
}
compaction is a provider/model-id string with an optional :<thinking> suffix. When set, Pi's
compaction summary is generated by that model instead of the session model, with Pi's own prompt.
Without the suffix the session thinking level is used. If the model is unknown, has no API key, or
the request fails, compaction falls back to the session model with a warning. Project settings
override global ones.
Development
From this package directory:
npm install
npm test
pi install .