Playing AI Dungeon

Table of Contents

Getting Started

New Player Guide

AI Dungeon 101

Adventure Awaits

Common Questions

AI Model Differences

About the AI

Account Questions

Community

Memberships & Benefits

Other Questions

Privacy & Security

Status

Terms of Service

How do I manage my context?

This guide is intended for players who are struggling with their story becoming incoherent over time, losing important details, forgetting plot elements, or otherwise just not having enough context space to fit all components.

This guide assumes that you have a basic understanding of the various Plot Components, though a deep understanding is not required.

<aside> <img src="/icons/graduate_gray.svg" alt="/icons/graduate_gray.svg" width="40px" />

If you would like to learn the basics of Plot Components, you can find a Beginner’s Guide here!

</aside>


What is Context?

How much “context” you have determines how much of your story the model can use in one response. This includes your past actions and the AI responses, but it also includes your Plot Essentials, Story Cards, and Memory Bank—everything uses context, so it’s important that every part of your adventure is optimized to not use it unnecessarily.

Context is counted in tokens. For instance, if your model has 4k tokens of context, it means you can have up to 4k tokens worth of recent actions, AI Instructions, Plot Essentials, Story Cards, and so on.

Read more about tokens here →

For this guide, we will estimate that your tokens are characters/4, so for every 4 characters, you get 1 token.

Some models have more context than others. The more context, the more expensive the model is to run, so typically smaller models will have much more context available than the larger ones. Higher subscription tiers can give you more context with your models, or access to other models with more context.


Where to View your Context

Context can be found by pressing on the last response and selecting “View Context.”

If you have refreshed or erased recently, this button will be greyed out. Simply take any action, including continue, to be able to click the button.

img-2026-02-05-18-32-39-removebg-preview.png


Healthy Context vs. Unhealthy Context

Generally speaking, you want most of your Context to be used by your Adventure text, which is the pink bar on your Context Viewer. This is because your Adventure text has raw, easily understandable information that is imperative for the AI to know, and it’s the easiest way to ensure your story stays on track.

As an example, if you entered a room five actions ago, but you only have enough context for the AI to see your last two actions, it’s not going to matter how many Story Cards you have describing the room—the AI can’t see back far enough to know that you’re there. It might try to have you enter the room again, or put you in a completely different place.

Below is an example of Healthy (left) and Unhealthy (right) context. When context is healthy, all components are fairly balanced and take up only as much room as is needed. When context is unhealthy, one component soars above the rest in usage, and takes away useful space that could be used to keep the story coherent.

Healthy context

Healthy context

Unhealthy context

Unhealthy context

This is just an example, and it’s not to say that you can’t ever have one component be bigger than the others. You may have a lot of Story Cards which take up a fair bit of room, but feel that they are all necessary to have in your story, and that’s completely fine. You don’t have to delete them! Instead, you can keep reading to learn how to trim them and make them more efficient.


How can I use less Context?

You can employ a few different strategies to make your Context usage more efficient, depending on which Component is eating up the most space.

In general, you can always just try to reword things. Use more direct language, cut out filler words, or anything that would reduce the overall size of the text.

Please note that these tips are just tips.

You may find that what is listed here doesn’t work for you, and that’s okay. It’s important to test yourself, learn what you like, and make up your own rules as you go. Such is the beauty of AI Dungeon!

<aside> <img src="/icons/light-bulb_gray.svg" alt="/icons/light-bulb_gray.svg" width="40px" />

If you want to learn more about any specific Plot Component, click its name to be taken to its dedicated explanation page. (You may even find some more tips for optimization there!)

</aside>


**AI Instructions:**

Here are a few tips for managing your AI Instructions:

In any case, always test and explore! See what feels right for you, what instructions you can go without, and what instructions you feel are integral. Don’t be afraid to go out of your comfort zone and experiment!


**Plot Essentials:**

Unless you have a lot of Context, you generally want to keep Plot Essentials to a minimum, because it is always in context, unlike Story Cards which need to be triggered. Keep it focused to information about your Player Character or other characters that will always be in the scene, or world details that need to always be known.

Some tips for managing your Plot Essentials:


Author’s Note:

Author’s Note should stay as concise as possible, unless you know what you’re doing. It is the last instructions the AI sees before it writes, which makes it extremely powerful for guiding the direction of the story. However, it also must be balanced in length—the Author’s Note is placed right between your past actions and your recent action. Too long, and your model might have trouble continuing or staying coherent.

Some tips for managing your Author’s Note:


**Story Cards:**

Story Cards as a category do not take up a specific amount of Tokens, they instead occupy up to 25% of the context not being used for other Plot Components. Thus, they can easily end up taking up a lot of space if left unchecked, and often end up fighting with each other for limited context.

Some tips for managing your Story Cards: