>>107040418
One thing I've played with is having every message end on a massive stats block keeping track of everything I want to be tracked, but using a regex to only include in the prompt the stats block in the bot's latest message. See the screenshot for the regex settings.

That said, I feel like SOTA models are able to keep track of a lot of things over really long periods of time nowadays. I've gone up to 80k tokens without summarizing with good detail recall. But if you want to go even longer I'd say with Gemini 2.5 Pro at least you should generate a long summary at the 30k token mark, otherwise the summary will be too compact. I just use a prompt like this:

>Before we continue the story, I have a task for you. I might experiment with shrinking the chat history here in order to reduce costs. Could you create a detailed arc-by-arc summary of the story so far, as well as each of my achievements, what each character's relationship is to me as well as how it has changed since the start, what voice they use with me and others, and every detail that will be necessary for us to write the next parts of this story, without the full conversation history, but with all critical information to keep continuity and coherence?

>keeps track of the character's details like their clothing
T-Tomoyo...