<< Home | Prompting craft
AI maintains context for long-term roleplay
| Area | Prompting craft |
| AI used | Any |
| Source | Reddit thread |
| Posted | 2025-12-05 |
The move
Periodically prompt the model to generate an out-of-character summary of the current narrative arc.Steps
- Identify the end of a narrative arc or chapter.
- Prompt the model for an OOC summary of main points and characters.
- Refine the summary and remove OOC markers.
- 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.