Memory trimmer for Perchance AI Chat — draggable UI, undo, preview diff, search, token count, settings persistence.
If your Perchance memory has gone from “helpful notes” to “unsorted landfill,” this tool helps you clean it up without doing surgery on a giant text block by hand. It gives you trimming, review, backups, safer write-back, and a bunch of extra tools for keeping long chats usable.
Perchance Memory Trimmer Tool is a userscript for Perchance chat that helps you clean up your memory without having to wrestle a giant wall of /mem text by hand every time your chat gets too long, too messy, or too full of repeated lore.
If you use long-running roleplays or story-heavy chats, memory can turn into a junk drawer fast. Old details pile up, duplicates creep in, important facts get buried, and before long you’re staring at a block of text that feels more like archaeology than editing. This tool is meant to make that process easier.
Instead of manually cutting and pasting everything yourself, PMT gives you a floating workspace where you can fetch or paste your memory, trim it down, review what changed, compare versions, save backups, and write the cleaned result back with a lot less stress. It supports the main Perchance chat pages and is designed for real long-chat cleanup, not just tiny one-off edits.
It can do the basics, like keeping the newest entries or trimming oversized ones, but it also includes more advanced tools for people who want more control. You can work toward a token budget, remove duplicates, save snapshots before making risky changes, inspect what got removed, compare memory against lore or summaries, and use extra review tools to spot repetition, conflicts, and clutter.
Most of the tool works locally in your userscript, which means the core cleanup workflow stays on your side. Manual copy/paste still works, but supported Perchance pages can also let the tool fetch and apply memory more directly. The one exception is the optional Q&A feature, which the project describes as user-initiated and API-based.
https://perchance.org/ai-character-chathttps://perchance.org/new-ai-chat-genhttps://perchance.org/urv-ai-chatThis version adds a lot more than just “trim the text and hope for the best.”