What it does
User messages and recent protected content never enter the selection pool, while retained material keeps its original wording.
Agent tooling
Compacts Pi history without generated summaries, keeping selected tool exchanges and optional assistant prose exactly as they appeared.
Only you can see your notes.
Screenshot unavailable. Open the experiment ↗
User messages and recent protected content never enter the selection pool, while retained material keeps its original wording.
Your developer can adapt this code to shorten long chat histories in your app. The software asks the TypeSafe AI service which older answers are no longer needed. It deletes only the unnecessary parts and leaves the rest exactly as written.
This setup requires an access key that connects the app to TypeSafe. Your developer can borrow the review process directly from the source files. The AI might accidentally discard a useful detail. However, it never changes or deletes messages typed directly by a person.