Asked about The window as a budget
What counts against the context window?
An answer that works
Everything sent plus everything generated: system prompt, tool definitions, all messages, all tool results, retrieved documents and the reply itself. Forgetting to reserve room for the reply is a common cause of failures.
Reading an answer is not being able to give one. The section that teaches this is The window as a budget, 4 hours of Context windows.
Learn this properlyAlso asked about Context windows