pi-icompact

Interactive compaction extension for pi — sort session context into categories and choose how to summarize each one

Package details

extension

Install pi-icompact from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-icompact
Package
pi-icompact
Version
1.0.0
Published
Apr 22, 2026
Downloads
116/mo · 4/wk
Author
joshua_wright76
License
MIT
Types
extension
Size
18.7 KB
Dependencies
0 dependencies · 3 peers
Pi manifest JSON
{
  "extensions": [
    "./extensions/icompact.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-icompact

Interactive compaction for pi. Sort your session into categories and choose how to preserve each one.

Install

```bash pi install npm:pi-icompact ```

Usage

Run /icompact in any pi session.

For each category, choose:

  • Hard summarize — brief 2-4 sentence summary
  • Soft summarize — detailed summary with key decisions and code changes
  • Fully keep — preserve verbatim
  • Fully remove — drop entirely
  • Break down — split into sub-categories for finer control

Controls

Key Action
↑ / ↓ Select action
Enter Confirm
Esc Cancel

License

MIT