DokiLove guide
Tokens and context length
Understand how character definitions, chat history, and output share the context window.
What occupies context
Character text, system prompts, lorebook entries, user persona, chat history, and the current message all consume context. Output also needs reserved space.
Definition tokens are only the fixed cost; conversation history grows over time.
Low token does not mean low quality
A concise, well-structured definition can outperform repetitive long text. Large cards support complex worlds but require more context and inference cost.
Choose based on model context, expected chat length, and lorebook behavior.
Control token use
Trigger only necessary lore, summarize long chats, and remove repeated or conflicting instructions. Avoid copying the same background into multiple fields.
When early details are forgotten, inspect truncation and prompt priority before adding more permanent text.