By default, Pi keeps the most recent 20K tokens raw, then summarizes the older context.
Just updated pi-custom-compaction to allow changing that to any custom value, so you can control exactly how much recent conversation history Pi keeps raw during compaction.
pi install npm:p…↗