GoodPrompts
Main navigation
Concepts

Context window management

Keep essential instructions and evidence available as a task grows.

Sources checked

How to use it

  1. Context includes instructions, conversation turns, retrieved passages, tool results and the space reserved for a response. The exact accounting depends on the model and interface.
  2. Keep a compact task state containing the objective, settled decisions, unresolved questions and source pointers. Archive repetitive logs while preserving the evidence needed to resume work.
  3. For large collections, retrieve relevant sections or process documents in stages. Validate summaries against the original because repeated compression can lose a qualification or change a number.

Prompt template

Create a continuation note for {{task}}. Preserve the goal, constraints, decisions, unresolved questions and exact source references. Remove repeated logs. List any evidence that must be reopened before the next step; do not replace uncertain facts with guesses.

Check the result

  • Resume from the note and verify that a second reader can locate the underlying evidence.
  • Check token usage with the actual model tokenizer or API usage report.

Common mistakes

  • Increasing the maximum window does not fix irrelevant retrieval or an omitted document.

Sources