Infinite memory Guide
(Complete Guide to Perfect Chat Memory ยท Zero Context Loss ยท Infinite RP Length)
Three techniques to preserve your story without corrupting the AI's perception.
The core principle: Separate History from Storytelling.
When a chat reaches 65โ128k tokens, the RP model stops "remembering" the beginning, starts hallucinating, and loses character voice. Standard auto-summarization usually flattens emotional depth and physical micro-details.
The fix is to treat your story like a game with a save file. Below is how โ in plain language anyone can follow.
๐ค Why This Works (Even With "minMessages" or Any Bot)
"My lorebook uses minMessages to gate content. Won't a new chat or memory injection break the slow-burn?"
No โ and here's why. The Save State doesn't just dump facts. It captures the exact current state of every character: their Stage, their Anchor positions, how they're holding themselves together right now. When you inject this snapshot into a new chat (or Chat Memory), the AI reads it as "this is where we are NOW." Content that was gated by minMessages is already unlocked inside the snapshot โ the slow-burn isn't broken, it's preserved at its current temperature. Works on any bot โ complex psychology, casual play, mine, yours. The method only cares about capturing the truth of the current moment.
๐ Where do I get the prompts?
Right here in this chat. Scroll down to find all 4 versions:
๐ฌ My Bots (Advanced)
Tool 1 and Tool 2 are messages 3 and 4 in this chat.
For characters built with deep psychology, anchors, HUDs, or custom mechanics.
๐ฎ Any Bots (Standard)
Tool 1 and Tool 2 are messages 1 and 2 in this chat.
For any bot without complex structural mechanics.
Both categories give you a Save State (Tool 1) for memory injection mid-chat, and a Bootstrap Generator (Tool 2) for starting a fresh chat from a clean slate.
โ ๏ธ Golden Rule โ read this once
Tool 1 is safe inside an RP chat. Tool 2 is never used inside an RP chat โ only in an external model.
If you mix them up, the bot will treat the Bootstrap template as in-character text. Don't.
โโโโโโโโโโโโโโโโโโโโโโโโโ
ใ Method 1: The External Archiver ใ (Best Quality)
โโโโโโโโโโโโโโโโโโโโโโโโโ
Let a "smart" AI read and summarize the whole chat for you.
How it works: Export the chat โ send it to an external AI with the Save State (Tool 1) prompt โ paste the result into Chat Memory.
โก Step 1: Get the chat out of the site
๐ฅ Use a browser extension to export your chat.
๐พ Step 2: Save it as plain text
Export as .txt or .json โ no formatting garbage.
๐ง Step 3: Send it to a model with a long context window
Open one of the approved external models. Paste the Save State (Tool 1) prompt, then paste your full chat log at the bottom.
Approved Models for Summarization:
โข Grok (free)
โข Gemini Pro (free)
โข Qwen Pro (free)
โข DeepSeek (free ยท unlimited)
๐พ Step 4: Put it back into memory
Copy the generated report โ in Janitor go to chat settings โ Chat Memory โ paste it in.
Pros and Cons
โ Maximum precision โข Clean perception โข Backup included โข Fast
โ Requires a desktop browser for the export extension.
โโโโโโโโโโโโโโโโโโโโโโโโโ
ใ Method 2: The Quick Compressor ใ (Right inside the chat)
โโโโโโโโโโโโโโโโโโโโโโโโโ
How it works: Paste Save State (Tool 1) as your next message โ bot replies with the summary โ copy it to Chat Memory โ delete both messages.
Pros and Cons
โ High precision โข Mobile-friendly โข Instant
โ Slight blind spot risk on very long chats.
โโโโโโโโโโโโโโโโโโโโโโโโโ
ใ The "Hard Reset" ใ (Fresh start โ or in-place re-anchor)
โโโโโโโโโโโโโโโโโโโโโโโโโ
How it works: Use an external model with Bootstrap Generator (Tool 2) โ get a ready code block โ paste into a new chat or current chat.
Pros and Cons
โ Total freedom (new chat) or zero migration cost (in-place)
โ Perfect continuity with natural Scene Start hook
๐ก Pro Tip โ The Hybrid Approach
Use Method 2 regularly (every ~25โ30 messages).
Use Method 1 when quality drops.
Use the Hard Reset (Tool 2) when the chat is fully broken or at the end of a major Arc.
โโโโโโโโโโโโโโโโโโโโโโโโโ
ใ ๐ WHAT'S NEW IN v3.0 ใ
โโโโโโโโโโโโโโโโโโโโโโโโโ
Both Tool 1 (Mid-Chat Refresh) and Tool 2 (New Chat Bootstrap) have been significantly upgraded for better long-term memory preservation.
Key Improvements:
Stronger Memory Priority โ Explicit instructions to preserve recurring symbols, emotional milestones, and turning points instead of generalizing them.
Better Scene Start Quality โ Now generates 4โ6 rich, atmospheric sentences with deeper sensory details and micro-movements for smoother transitions into a new chat.
Improved Extraction Accuracy โ Clearer rules for Physical Tells, Traces, Dynamics Lock, and State Vectors to reduce loss of nuance.
Denser Snapshots โ Empty or meaningless fields are completely omitted, making reports cleaner and more efficient.
Stronger Anti-Puppetry & Language Control โ Better protection against assuming {{user}}'s inner state and stricter native language consistency.
These updates make the Continuity Archiver even more effective at maintaining emotional depth, character voice, and story continuity across very long roleplays with minimal context loss.
โ The Continuity Archiver v3.0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโ
ใ ๐ง UPDATE v3.1: THE MEMORY SURGEON ใ
โโโโโโโโโโโโโโโโโโโโโโโโโ
TL;DR: v3.0 caught the emotional pulse, but bled the structural memory. v3.1 closes the seam: world canon, permanent biology, voice patterns, recursive motifs, verbatim callbacks, and object anchors are no longer optional โ they are the load-bearing walls. Bloat is no longer the enemy; silence is.
v3.0 trusted the model to remember the shape of the world. v3.1 writes the shape into the bone. This update patches systematic memory loss found in 2400+ line deep-RP logs.
โโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๏ธ THE 6 LOST CLASSES (What v3.0 silently dropped)
โโโโโโโโโโโโโโโโโโโโโโโโโ
Analysis of long-form logs revealed that v3.0 systematically erased six critical data types during compression:
๐ World Canon / Lore โ Factions, political landscapes, magic systems, biographical hard facts. Gone.
๐งฌ Character Physical Canon โ Permanent biology. vertical pupils, dust-pollen color-coding, prosthetics. Reset to generic every save.
๐ฃ๏ธ Voice / Speech Pattern โ Rhythm, fillers, sentence length, characteristic lexicon. Flattened.
๐ Object Anchors (Props) โ Untouched glasses, folded maps, removed gloves. Their symbolic weight vanished.
๐ Recursive Symbols / Motifs โ Dissolved into generic traces.
Echo Callbacks โ Repeated phrases that define the relationship. Paraphrased into meaninglessness.
โโโโโโโโโโโโโโโโโโโโโโโโโ
โ๏ธ v3.1 CORE DIRECTIVES (The New Rules)
โโโโโโโโโโโโโโโโโโโโโโโโโ
1. MEMORY > BREVITY. "Bloat" is acceptable if it carries signal. Never summarize away recurring symbols, named objects, or character-specific micro-tells.
2. ONE BLOCK = ONE MEMORY TYPE. Do not mix world canon with current emotional traces. Separation is structural integrity.
3. VERBATIM QUOTES. Key phrases must be copied word-for-word. No paraphrasing. If they said "Over here. Alright?", it stays exactly that.
4. TRAJECTORY, NOT SNAPSHOT. Stages, Overrides, Secrets are histories. "Stage 1 โ 2 โ Current", not just "Stage 2".
5. PROGRESSIVE COMPRESSION. Old events can be compressed. The last 5โ10 posts must be maximally detailed.
6. ANTI-COUNTER RULE. Models hallucinate "posts since last shift: 4". Use qualitative states: "current run: building / cooling / climaxing".
7. THE DASH RULE. If a block has no content, write โ. Never delete the block. Silent omission creates ambiguity: forgot it, or was it empty?
โโโโโโโโโโโโโโโโโโโโโโโโโ
๐งฑ NEW STRUCTURAL BLOCKS
(Inject these into your Tool 1 & Tool 2 prompts)
โโโโโโโโโโโโโโโโโโโโโโโโโ
Add these sections exactly as shown below to your State Save and Bootstrap templates. They replace the vague "Traces" and "Unresolved Issues" with surgical precision.
ใWORLD CANONใ
Setting: [world / faction / locale]
Hard Facts: [up to 6 bullet facts established โ political, magical, biographical. Each โค 12 words.]
Rules of the World: [up to 4 โ e.g. "Empire is xenophobic", "plasma is last-resort defense"]
ใCHARACTER PHYSICAL CANONใ
(Permanent biology. Copy forward across saves unchanged.)
โ [Name]: [body type, fur/skin, eyes, ears, tail, wings, distinctive marks, prosthetics, scent, voice quality]
ใVOICE PATTERNใ
[1โ2 sentences per character โ rhythm, sentence length, fillers, typical lexicon. e.g. "Ragged, monosyllabic, with air gaps between words"]
ใRELATIONSHIP TRAJECTORYใ
Stages traversed: [Stage 1/Name โ Stage 2/Name โ ... โ Current Stage N/Name]
Vector now: [โ / โ / โโโ] | Drift since last shift: [1 sentence]
ใRECURRING SYMBOLS / MOTIFSใ
โ [motif] โ [meaning in this RP]. (List every motif repeating โฅ 2 times).
ใCALLBACK LEDGER โ VERBATIM QUOTESใ
โ "..." โ [Speaker, post tag, intent]
ใOBJECTS / PROPS LEDGERใ
โ [Object]: where it is now | who last touched it | meaning
ใPROMISES & DEBTSใ
โ [Who โ Whom]: "verbatim quote" | Status: pending / fulfilled / broken
ใLEXICONใ
โ [word/phrase] โ [what it refers to]. Preserve character-specific terms, don't substitute synonyms.
โโโโโโโโโโโโโโโโโโโโโโโโโ
๐ SURGICAL TECHNIQUES FOR PERFECT RECALL
โโโโโโโโโโโโโโโโโโโโโโโโโ
1. The Double Pass โ First run Tool 1 (State Save). Then feed *both the raw log and the State Save* into Tool 2 (Bootstrap) with the instruction: "Use the State Save as mandatory skeleton, extract verbatim quotes and tactile details from the log." The structure holds; the flesh re-attaches.
2. The Cold Reader Test โ Append this to your Bootstrap prompt: *"At the end of the generated block, list in one comma-separated line: 5 key symbols, 3 exact time-locations, 5 verbatim phrases, 3 NPCs. If you cannot, regenerate the block because memory is insufficient."* Self-check enforced.
3. Slot Inversion for Physics โ Separate physical data into [CHARACTER PHYSICAL CANON] (permanent, never rewrites) and [Physical Tells] inside the snapshot (dynamic, current state). No more rewriting chitin and vertical pupils every save only to lose them.
โโโโโโโโโโโโโโโโโโโโโโโโโ
โ v3.1 INTEGRITY CHECKLIST
โโโโโโโโโโโโโโโโโโโโโโโโโ
Before injecting the Bootstrap into a new chat, verify:
[ ] All NPC names from the log are in NPC REGISTRY.
[ ] RELATIONSHIP TRAJECTORY lists Stage 1 through Current Stage.
[ ] SECRETS LEDGER includes revealed secrets, not just hidden ones.
[ ] Every motif appearing โฅ 2 times is in RECURRING SYMBOLS.
[ ] Minimum 5 verbatim quotes in CALLBACK LEDGER.
[ ] All anchor-objects are in OBJECTS LEDGER.
[ ] PHYSICAL CANON is filled for every active character.
[ ] CHRONOLOGICAL INVENTORY contains โฅ 15 entries; last 5 have micro-details.
[ ] SCENE START continues from the exact microsecond of the break. Zero time skips.
Nothing was removed. The memory was made enforceable.
โ The Continuity Archiver v3.1 โ
๐ TAGS: memory guide context window chat memory janitor ai prompt engineering continuity state save bootstrap roleplay memory long roleplay infinite rp context hack token limit large context summary summarization deepseek gemini claude chatbot character ai memory loss hallucination fix psychology literary rp slow burn context preservation roleplay guide advanced prompts narrative archivist
Published chats
comments
Leave a comment or feedback for the creator โค๏ธ