MCPcopy Create free account
hub / github.com/aikohanasaki/SillyTavern-MemoryBooks

github.com/aikohanasaki/SillyTavern-MemoryBooks @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
1,653 symbols 5,527 edges 34 files ⚖ AGPL-3.0 126 documented · 8% updated 4d ago★ 290

Browse by type

Functions 1,637 Types & classes 16
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

📕 Memory Books

Memory Books is a SillyTavern extension for creating and managing long-term chat memory. It turns completed scenes or automatically selected portions of a chat into structured, editable lorebook entries that preserve important events, decisions, relationships, discoveries, promises, and unresolved threads.

As your chat grows, older messages can be hidden from the active context while their important information remains available through the Memory Book. You keep a durable record of what actually happened without carrying the entire raw conversation inside every new request.

Use Memory Books manually when you want precise control over scene boundaries, or automate the process and let it create memories as the chat continues.

Not sure how AI memory actually works? Read How Memory Works in SillyTavern for a plain-language explanation of chat history, summaries, lorebooks, vector retrieval, trackers, and where Memory Books fits.

📖 Learn Memory Books

STMB has a lot of features, and its documentation became too large to navigate comfortably as a traditional README. Choose whichever guide option works best for you.

Quickstart

Just want to get STMB up and running? Start here.

AI Reference Manual

Download the Memory Books AI Reference Manual, upload it to your preferred assistant, and ask it questions about Memory Books.

Copyright and License

SillyTavern Memory Books is Copyright © 2024–2026 Aiko Hanasaki.

The original code in this repository is licensed under the GNU Affero General Public License v3.0. Modified versions and forks must preserve applicable copyright and license notices, identify their modifications, and comply with the AGPL's source-availability requirements.

See LICENSE.

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 1,629
Class 16
Method 8

Languages

TypeScript100%

Modules by API surface

index.build.js814 symbols
index.js150 symbols
clipManager.js142 symbols
stmbJobs.js63 symbols
stmemory.js55 symbols
sidePrompts.js47 symbols
utils.js44 symbols
sidePromptsPopup.js43 symbols
sidePromptsManager.js39 symbols
addlore.js33 symbols
arcanalysis.js26 symbols
profileManager.js23 symbols

For agents

$ claude mcp add SillyTavern-MemoryBooks \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page