A next-generation SillyTavern extension for automatic, structured, and reliable memory creation. Mark scenes in chat, generate JSON-based summaries with AI, and store them as entries in your lorebooks. Supports group chats, advanced profile management, side prompts/trackers, and multi-tier memory consolidation.
Clips vs Side Prompts
| Clips | Side Prompts |
|---|---|
| Save selected chat text into a Memory Book entry. | Ask the AI to review chat and update a tracker entry. |
| Best for one clear fact, line, promise, preference, item, or note. | Best for information that changes over time. |
| Think: “pin this note.” | Think: “keep this section updated.” |
For the longer explanation, see the User Guide.
Compaction vs Consolidation
| Compaction | Consolidation |
|---|---|
| Shortens one existing STMB-managed entry. | Combines multiple memories or summaries into one higher-level recap. |
| Use when a Clip, Side Prompt, or Memory entry is useful, but getting too long. | Use when several memories are ready to become an Arc, Chapter, Book, or other larger summary. |
| Think: “trim this one entry.” | Think: “roll these memories up into a recap.” |
For the longer explanation, see the User Guide.
Start here: * ⚠️‼️Please read prerequisites for installation notes (especially if you run Text Completion API) * 📽️ Quickstart Video - English only (sorry, that's the language I am most fluent in) * ❓ Frequently Asked Questions * 🛠️ Troubleshooting
Other links: * 📘 User Guide (EN) * 📋 Version History & Changelog * 💡 Using 📕 Memory Books with 📚 Lorebook Ordering
Note: Supports various languages: see
/localesfolder for list. International/localized Readme and User Guides can be found in the/userguidesfolder. Lorebook converter and side prompt template library are in the/resourcesfolder.
Set this up in ST (you can change back to Text Completion AFTER you get STMB working)
- Chat Completion API
- Custom chat completion source
- http://localhost:5001/v1 endpoint (you can also use 127.0.0.1:5000/v1)
- enter anything in "custom API key" (doesn't matter, but ST requires one)
- model ID must be koboldcpp/modelname (don't put .gguf in the model name!)
- download a chat completion preset and import it (any one will do) just so you HAVE a chat completion preset. It avoids errors from "not supported"
- change the max response length on the chat completion preset so that it is at least 2048; 4096 is recommended. (Smaller means you run the risk of getting cut off.)
Just like Kobold, set the following up as a Chat Completion API in ST (you can change back to Chat Completion after you've verified STMB is working):
- Create a new connection profile for a Chat Completion API
- Completion Source: Custom (Open-AI Compatible)
- Endpoint URL: http://host.docker.internal:8080/v1 if running ST in docker, else http://localhost:8080/v1
- Custom API key: enter anything (ST requires one)
- Model ID: llama2-7b-chat.gguf (or your model, doesn't matter if you're not running more than one in llama.cpp)
- Prompt post-processing: none
For starting Llama.cpp, I recommend placing something similar to the following in a shell script or bat file, so startup is easier:
llama-server -m <model-path> -c <context-size> --port 8080

Below are some examples of what the chevron buttons look like when clicked. Your colors may vary depending on your CSS theme!



/creatememory slash command.📕 Memory Books supports scene memories plus multi-tier summary consolidation, each designed for different kinds of continuity.
Scene memories capture what happened in a specific range of messages.
This is the standard and most commonly used memory type.

Summary consolidation captures what changed over time across multiple memories or summaries.
Instead of summarizing one scene, consolidated summaries focus on: - Character development and relationship shifts - Long-term goals, tensions, and resolutions - Emotional trajectory and narrative direction - Persistent state changes that should remain stable
The first consolidation tier is Arc, built from scene memories. Higher tiers are also supported for longer-running stories: - Arc - Chapter - Book - Legend - Series - Epic
💡 Think of these as recaps, not scene logs.
This gives you: - lower token usage - better narrative continuity across long chats
All prompts and presets must instruct the AI to return only valid JSON, e.g.:
{
"title": "Short scene title",
"content": "Detailed summary of the scene...",
"keywords": ["keyword1", "keyword2"]
}
No other text is allowed in the response.
stmemorybooks flag are recognized as memories.[000], (000), {000}, #000).Existing memories must be converted! Use the Lorebook Converter to add the
stmemorybooksflag and required fields.

Clip to Memory Book is for quick “remember this” notes. Highlight important chat text, click the floating scissors button, and save the selected text as a bullet in your Memory Book without opening the lorebook editor first.
If you want an ongoing tracker that updates over time, use a Side Prompt instead. Short version: Clip = one saved fact; Side Prompt = ongoing tracker.
Clip entries are normal lorebo
$ claude mcp add SillyTavern-MemoryBooks \
-- python -m otcore.mcp_server <graph>