Help article
Long conversations and the context window
Each model reads a limited amount of conversation at once. When a conversation nears that limit, iTwins summarizes earlier turns so the agent can keep working.
- The context window is how much of the conversation the model reads each turn.
- Near the limit, iTwins summarizes earlier turns ("Chat context summarized") and the agent continues with the summary plus the recent turns. Files on the computer are not affected. A preCompact hook runs first if you configured one.
- If a summary is stopped, the conversation shows "Summarization stopped" and keeps its full history.
- For a long task, ask the agent to write decisions into a file in the project; that file outlives any summary. A new conversation for a new task keeps context focused.
- Max mode (in the model menu) uses the largest context window the model offers, at higher cost.