Context Budget

The context budget shows what goes into each reply's prompt and how much of the model's context window it takes: the character, the mode, your instructions, lore, memories, summaries and the recent messages. Use it when replies get refused for length, when a story starts forgetting, or to see why a turn costs what it does.

Every figure is approximate (about 3.5 characters to a token).

Where to find it

The writing panel open above the message box: a green ring with "About 14% of the context, 4.7k of 32.8k tokens", "Room for the reply: up to 1k tokens", and "What fills it — estimated" folded; the writing chip under the message box shows the same ring and the preset's name

Step by step

Check how full the context is (chat site)

  1. Look at the ring on the writing chip. It shows how full the model's context will be for your next reply, your draft included, so it grows as you type.

    Ring Means
    Green Under 70% full
    Amber 70–89%
    Red 90% and up
    Empty, no colour The model's context size isn't known, so no share is shown
  2. Press the writing chip. The Context section reads, for example, About 62% of the context, and Room for the reply: up to N tokens.

  3. Open What fills it — estimated to see each part of the prompt, your draft, and a Template and safety margin, adding up to the ring's figure.

What fills it — estimated, opened: Platform text 2.3k, Mode 65, Custom instructions 27, Persona 66, Trackers 50, Author's note 73, Summaries (3) 278, Summary timelines 142, Journal (6) 421, Memories (6) 378, History (2 / 6 msgs · this story’s own setting) 99, and Template and safety margin 798

On the chat site the list can also show Platform text (the platform's own rules for every story), Trackers (the story state sent with each turn) and Summary timelines (how the trackers moved over each summarized chapter).

What the section may also say:

Read the bar (writing app)

  1. Open the Settings panel → Context Budget.
  2. The bar is split into coloured parts, with a total such as "~42,000 tokens / 128k context (33%)" when the model's size is known.
  3. The legend under the bar names each part with its token count.

The parts that can appear (only the ones with something in them show):

Part What it is
Character The character's setup: personality, description, instructions
Scenario The opening scenario
Mode The mode's prompt
Custom instructions Your standing rules for this story
Author's note Your current note, while it's running
Scene direction A direction waiting for the next reply
Dice A roll waiting for the next reply
Response pacing The pacing or target-length line
Persona Your persona
Lorebook Entries always included
Lorebook dynamic (max N) Room for entries found by search, up to your max entries; (ceiling) when you set a token budget
Summaries (N) Compressed older messages
Journal (N) The journal's always-on entries
Cast In a package story, the full cards of the supporting characters on stage
Cast mentioned The cast profile of each supporting character on stage or named in the recent messages. A character with no cast profile is described by their public description once it's released to you
Cast roster Every supporting character's name and role in this story
Memories (N) Memories recall can draw on; (ceiling) with a token budget
History (N msgs) The recent messages, up to Max Context Messages

Turning a feature off (Journal, Summaries, Memories, Lorebook) in Active Features → Feature settings removes its part right away.

Estimated vs. measured

A part drawn slightly faded with a ~ is an estimate.

Bring the cost down (own API key)

When your story runs on your own API key, a Want to optimize costs? box with a Tips button sits under the Context Budget section. It opens Reduce Your Costs:

  1. Use a cheaper model for summarization — Pick summary preset (or Already configured if summaries have their own).
  2. Summarization frequency — Summary Window Size (recommended 8–10) and Summary Count (recommended 3). Higher values mean fewer summary calls.
  3. Context size — Max Context Messages (recommended 15–20). Fewer messages make every prompt smaller.
  4. Max response length — Max Tokens.
  5. Click Save Changes. Only what you changed is saved; closing without saving drops your edits.

On built-in models the box doesn't appear; the Echo estimate under the message box shows what the next turn should cost. See Echoes. The same box and dialog are in the chat site's writing panel.

When the context is nearly full

Context settings may also show a context-fit hint with suggested values and Apply to this chat.