Skip to main content

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.

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.
Chat input with the context window indicator open above the model selector

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
This is why a short follow-up can still use a lot of context. The model receives your latest message together with the surrounding chat state it needs to answer.

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.
Chat input with the context window indicator selected next to the model selector

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.
Collapsed context window indicator showing context used, free space, session limit, and weekly usage

Usage

The Usage section gives you a quick overview of your current usage limits:
  • Session limit shows your usage in the current 5-hour window and when it resets.
  • Weekly usage shows your usage in the current weekly window and when it resets.
  • Extra usage appears when extra usage applies to your Workspace.
These rows are separate from context window usage. Context window usage shows how much room remains in the current chat. Usage limits show how much of your plan allowance you have used over time. For the full explanation of usage windows, fallback behavior, and increasing your limits, see Usage Limits.

3. Understand your context window

You can expand the Context 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.
Expanded context window indicator showing system tools, system prompt, messages, tool rows, memory, summarized conversation, attachments, and free space
Token values are estimates. Use them to understand relative context usage. They may differ from provider billing or exact model tokenization.
The context indicator shows the categories that are relevant to your current chat. The table below explains what each category means when it appears in the breakdown.
CategoryWhat it means
System toolsTool definitions Langdock includes so the model knows which tools it can use.
System promptInstructions and system context that guide how the model should respond.
MessagesThe parts of your conversation history that are still included for the next response.
SkillsInstructions from active Skills that are loaded into the chat.
Relevant MemoryMemory entries Langdock includes for the current chat.
Summarized conversationA shorter summary of older chat history included after Langdock optimises a long conversation.
Attachments / imagesImages and attachment content included in the current context.
Tool rowsNamed tool calls and results, such as Web search, Read file, or Email.
Other toolsAdditional tool calls grouped under one row.
Tool resultsTool output that counts toward context but is not shown under a specific named tool row.
Free spaceEstimated 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 seeWhat it means
Optimizing our conversation so we can continue workingLangdock is preparing a shorter version of older context for the model.
Conversation optimisedOptimisation is complete, and the chat can continue.
Summarized conversationThe 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.
If a chat starts producing less focused answers, start a new chat with a short summary of the important context. This gives the model more room for the next task.

FAQ

No. Your messages stay visible in the chat. The model may receive a summary of older messages instead of the full earlier conversation.
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.
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.
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.