How They Use AI  |  Newest

<< Home  |  Prompting craft

AI maintains context for long-term roleplay

AreaPrompting craft
AI usedAny
SourceReddit thread
Posted2025-12-05

The move

Periodically prompt the model to generate an out-of-character summary of the current narrative arc.

Steps

  1. Identify the end of a narrative arc or chapter.
  2. Prompt the model for an OOC summary of main points and characters.
  3. Refine the summary and remove OOC markers.
  4. Use the summary as a rolling synopsis for new chat sessions.

Prompt for your AI

[OOC: Please summarize the chat, including main points and sections. Provide detailed insights, covering the setup, characters, story arcs, and potential future developments. Long response, please.]

What happened

Users struggling with long-term roleplay memory loss found that chats become overwhelmed over time. By prompting the model to provide an OOC summary of key events at the end of a chapter, the user can create a rolling synopsis. This allows the user to refresh the context window when starting a fresh chat session.

Who confirmed it

This approach can yield comprehensive, detailed summaries that you can refine... This refreshes the bot's context window and equips it with all necessary information.

Watch out

Pinning every single summary can clutter the context window.

Give it to your agent

Read https://howtheyuse.ai/p/ai-maintains-context-for-long-term-roleplay.md and help me do this.

Sources



Last updated November 26, 2026.