How They Use AI  |  Newest

<< Home  |  Prompting craft

Keep model aware over 50k tokens in 4-6k context

AreaPrompting craft
AI usedAny
SourceReddit thread
Postedunknown

The move

Store chronological summaries and relationships in per-character lorebooks while tracking current clothing, equipment, and time in Author's Notes.
When this worksWhen it doesn't
Roleplay chats exceed a 4k to 6k context window, causing characters to lose track of past events, time, or out-of-scene interactions.The base character card personality is poorly defined, leading to wonky behavior when transferring summaries into a new chat.

Key details

Prompt for your AI

(Reply out of character, summarize the chat between {{user}} and {{char}} so far.) System Rules for Long Roleplay Context Management: 1. Character Lorebook Entries: - Create a personal plot entry for each character containing significant events in chronological order. - Maintain an entry for relationships and feelings toward other characters, updating it when relationships change. - Store names of people, places, and events to let the lorebook fill out details dynamically in chat. 2. Author's Note State Tracking: - Update the Author's Note with the current state of characters, specifically clothing and equipment as a PLIST. - Include time of day and immediate context so the AI does not lose track of current scene state. 3. Out of Character Extraction: - To carry summaries to a new chat, request an out-of-character summary, refine as needed, and place the result into the character card or lorebook. 4. Character Execution Constraints: - You are {{char}}. Write {{char}}'s reply only. - Use modern or simple writing. Avoid repetition. - Do not assume the actions of {{user}}. Be proactive, creative, and drive the plot forward. Before you give me the final result, check with me: - Verify lorebook plot entries list events in chronological order. - Ensure current clothing and equipment are formatted as a PLIST in the Author's Note. - Confirm time of day is specified in the Author's Note. - Check that the base character card personality is clearly defined before migrating to a new chat.

What happened

Running roleplay sessions past 50k tokens on a 4-6k context window, a user tracked long-term context by placing chronological plot entries and relationships into lorebooks. They kept immediate character state like clothing (as a PLIST) and time of day in Author's Notes, using out-of-character summary requests to carry progress to new chats.

Who confirmed it

I have had chats run over 50k tokens while running a 4 to 6k context window and managed to keep the model reasonably aware of what's going on.

Give it to your agent

Read https://howtheyuse.ai/p/maintain-long-term-memory-across-chat-sessions.md and help me do this.

Sources



Last updated November 26, 2026.