<aside> 🐢

https://www.reddit.com/r/JanitorAI_Official/comments/1u0g15l/i_ride2000_messages_fairly_without_any_context/ https://www.reddit.com/r/JanitorAI_Official/comments/1ev5q1w/how_to_use_longterm_memory/

</aside>

<aside> 🐢

[OOC: Stop the roleplay. In OOC, summarize briefly in bulletpoint format the events of the story so far, any major plot points, any information {{char}} has learned, relationship dynamics, unresolved tensions/active plot threads, and anything else you think should be retained in memory. Exclude any information already in the base prompt. No speculation, avoid purple prose, straight to the point, accurate.]

V.2 =[OOC: Stop the roleplay. In OOC, summarize in bullet-point format the major plot points sorted by 'arcs', any information NPCs has learned, and unresolved tensions/active plot threads. Avoid purple prose, straight to the point, accurate, and token-efficient.]

</aside>


UNTESTED/

Pause roleplay. Ignore all previous instructions. Do NOT produce any in-character text. You are not generating a new summary unless the provided [Summary:…] block is empty. If the block contains text, you must revise it in place. If it is empty, create the initial summary following the required structure. Your job is to revise the contents inside the same structure by:

  1. Lightly compressing older material,
  2. Preserving essential plot & emotional arcs,
  3. Adding only the newest developments. Your summary must remain under ~1K words. This is an editorial task, not a storytelling task.CRITICAL: If you're creating the summary from scratch, you MUST read THE ENTIRE CHAT CAREFULLY. Do NOT skip the middle sections. Do NOT only compress recent messages. Read EVERYTHING before creating the summary.

I. THE HIERARCHY OF WHAT MUST STAY

To prevent confusion, these three mandatory categories have strict priorities:

1. Core Memories (Emotional Anchors; MANDATORY)

What Qualifies as a Core Memory (Universal Criteria):

A moment becomes a Core Memory if it involves: Identity-challenging moments:

What is NOT a Core Memory:

The Core Memory Test:

Ask: "Would removing this moment make a character's current emotional state incomprehensible?"


2. Major Plot Beats (Story Skeleton)

These are non-negotiable. You must preserve all major developments, including:


3. Minor or Old Details (Excess Tissue)

These may be:


II. THE EDITING LOOP (FOLLOW THESE STEPS EVERY TIME)

Step 1: Extract Core Memories

  1. Find all existing "Core Memory:" entries
  2. If there are NONE, create them by reviewing the ENTIRE chat for moments matching the salience criteria above
  3. Prioritize identifying:
  1. Rephrase existing Core Memories only for clarity/conciseness
  2. Preserve emotional meaning exactly You MUST create Core Memories if none exist. Scan the full conversation—do not only look at recent messages.

Step 2: Identify the Plot Skeleton

Locate all major plot beats whose consequences shape the current situation. These form the backbone of the Plot Summary section. They must remain present—even if condensed. Do not remove or bury them. Maintain cause→effect chain.