green-elephant

Why my bots don't always play smoothly (and what you can do about it)

My bots are story bots: secrets, slow reveals, twists, side characters with their own agendas. When a chat goes off the rails (the model forgets something obvious or invents a villain who isn't in the story), people often ask me what broke. Sometimes it really is me, and then I want to hear about it. But often nothing is broken: it's how the AI works under the hood. So here's a short look under that hood, written for players, not developers.

What the model actually sees

The model doesn't remember your chat the way you do. Every time you send a message, Saucepan builds one big block of text and sends it to the model from scratch. Roughly:

The size of that block is called the context window. Whatever doesn't fit simply doesn't reach the model on that turn. The model isn't ignoring it, it never saw it.

How big is the window

It depends on the model and your plan (numbers from Saucepan's Models and Pricing pages, November 2026):

A token is roughly three quarters of a word. Now some rough math for one of my bots:

What reaches the model on every reply: the bot, Story State, memories, lorebook and your chat, on 12k, 30k and 50k windows

That's why the same bot can feel like two different bots on different setups.

Two ways things go wrong

1. The model itself. Even when everything arrives, a model can skip an instruction, mix up who did what, rush a reveal or make up a plot of its own. Lighter models do it more, but no model is immune. That's model quality, and it's partly random: the same model on the same bot can play very differently from one chat to the next.

2. Missing pieces. On a big story bot with a small window, something important may just not arrive on a given turn:

Story State

Most of my bots have a Story State panel at the top of the chat. It keeps the key facts in front of the model every turn: what stage the story is at, who knows what, what has already come out, how characters feel about you. It's not bulletproof, but it's what keeps a slow mystery from collapsing.

The Story State panel at the top of a chat, with the Off / On (Free) / On (Paid) switch

It has three modes:

Things on your side that change the game

The Memories tab (a button at the top of the chat) looks like this on Saucepan+:

The Memories tab in a chat: memory budget, Automatic Memories and Automatic compaction

Picking a model

Here's how it looks to me from testing my own bots:

None of them guarantees a perfect run. A stronger model only guarantees a better one 🙂

When a chat goes off the rails

So is it the bot or the model?

Honestly, sometimes it's the bot. I test every bot on several models with independent reviews, but writing for an AI isn't like writing a book: it's a lot of testing and a bit of hoping for the best, and every playthrough ends up its own. If something keeps going wrong, tell me in the comments which model you were on and what Story State was set to. That's usually the first thing I need to tell a model hiccup from a real bug in the bot, and real bugs I do fix.

Thanks for playing ♥️ — green-elephant