The context window is the information the model can use for its next response. In Langdock, it includes the current chat, the context you add, and the tools Langdock prepares for the model. You can use the context window indicator to see how much space remains in the selected model’s context window. It helps you understand what is taking up space and when it is worth reducing context or starting fresh.Documentation Index
Fetch the complete documentation index at: https://docs.langdock.com/llms.txt
Use this file to discover all available pages before exploring further.

What fills the context window
Langdock builds the context window from the information the model needs to answer. Depending on the chat, it can include:- Your messages and the assistant’s responses
- Files, images, and other attachments in the chat, including files from Folders
- Relevant Memory
- Active Skills
- System instructions and tool instructions
- Tool calls and tool results from Web Search, file reading, integrations, and other tools
- Summaries of earlier chat history when a long conversation is summarized
Context window indicator
Check the indicator before long follow-ups or uploading large attachments. If the current chat already uses a lot of context, start a fresh chat with a short recap so the model has more room for your next task.1. Open the indicator
Find the circular indicator next to the model selector in the chat input. Click it to open the context window panel.
2. Check current context and usage
The top row gives you a quick check of the current chat. It shows used context, total context window size, and the percentage used for the selected model.
Usage
TheUsage section gives you a quick overview of your current usage limits:
Session limitshows your usage in the current 5-hour window and when it resets.Weekly usageshows your usage in the current weekly window and when it resets.Extra usageappears when extra usage applies to your Workspace.
3. Understand your context window
You can expand theContext window row to see a breakdown of how the context window is used and understand which categories take up the most space. Hover over Other tools to see which tools are grouped there.

Token values are estimates. Use them to understand relative context usage. They may differ from provider billing or exact model tokenization.
| Category | What it means |
|---|---|
System tools | Tool definitions Langdock includes so the model knows which tools it can use. |
System prompt | Instructions and system context that guide how the model should respond. |
Messages | The parts of your conversation history that are still included for the next response. |
Skills | Instructions from active Skills that are loaded into the chat. |
Relevant Memory | Memory entries Langdock includes for the current chat. |
Summarized conversation | A shorter summary of older chat history included after Langdock optimises a long conversation. |
Attachments / images | Images and attachment content included in the current context. |
Tool rows | Named tool calls and results, such as Web search, Read file, or Email. |
Other tools | Additional tool calls grouped under one row. |
Tool results | Tool output that counts toward context but is not shown under a specific named tool row. |
Free space | Estimated room left in the selected model’s context window. |
Conversation optimisation
Langdock can optimise long chats so you can keep working without starting over. Your full chat history stays visible, so you can always scroll back and read earlier messages. During conversation optimisation, Langdock summarizes older parts of the conversation for the model so the chat can continue within the context window. If an exact detail still matters, mention it again before you continue.| What you see | What it means |
|---|---|
Optimizing our conversation so we can continue working | Langdock is preparing a shorter version of older context for the model. |
Conversation optimised | Optimisation is complete, and the chat can continue. |
Summarized conversation | The context window indicator includes the summary of older chat history. |
Optimisation is based on context size, not message count. A short chat with large files, tool results, or retrieved knowledge can fill the context window faster than a long plain-text chat.
Managing your context window
Use the indicator to decide when to reduce context, summarize the important details, or start a fresh chat.- Start a new chat when you move to a new topic.
- Remove unnecessary files or images before sending the next message.
- Reference specific sections instead of attaching entire documents when possible.
- Use consistent terms so the model can connect related parts of the conversation.
- Refer to important details directly, such as “use the pricing section we discussed earlier”.
- Add a short recap before continuing a long chat.
- Choose a model with a larger context window when the task requires long documents or extended analysis.
FAQ
Does conversation optimisation delete my messages?
Does conversation optimisation delete my messages?
No. Your messages stay visible in the chat. The model may receive a summary of older messages instead of the full earlier conversation.
Why did the assistant forget something we discussed earlier?
Why did the assistant forget something we discussed earlier?
The chat may have exceeded what fits in the model’s context window. Older details can become less reliable after a long conversation is summarized, especially in chats with files, tools, Agents, or large amounts of retrieved knowledge.
Why can this happen after only a few messages?
Why can this happen after only a few messages?
Context is based on tokens, not message count. A few large prompts, attached files, retrieved knowledge, system instructions, or tool results can fill the context window quickly. Break larger tasks into smaller chats or phases, and bring only the files and instructions needed for the next step.
When should I use files or folders instead of cat history?
When should I use files or folders instead of cat history?
Use files or Folders when information needs to stay durable, searchable, or quoted exactly later. Chat history is useful for conversation flow, but it is not a reliable long-term knowledge store after older context is summarized.