@the-agency/pi-tokenshrink
v0.1.2
Published
Reduce token usage of a Pi agent's conversation context using TokenShrink.
Maintainers
Readme
pi-tokenshrink
A Pi extension that uses tokenshrink to reduce token count of a prompt in a deterministic way that does not depend on LLM-based inference.
Install
pi install npm:@the-agency/pi-tokenshrinkUsage
Token reduction will be turned on automatically, and its status, plus an estimated count of saved tokens, will appear in the Pi status bar.
Commands:
/tokenshrink on: enable/tokenshrink off: disable/tokenshrink toggle: toggle between on and off
