SwiftRelay

← All sprint notes

First Lap: Size Your AI Context for Real Projects

Model splitsEN

Your context window is the model’s working desk

A context window is the amount of information a model can work with during one request. Think of it as a desk: your instructions, reference material, conversation history, and space for the answer all need to fit.

A larger desk lets you lay out more material. It does not guarantee that the model will notice every detail, follow every instruction, or produce a better answer. Choosing relevant material still matters.

The practical question is not simply, “Which model has the biggest window?” It is, “What does this task need in view?”

Tokens measure space, not pages

Models measure context in tokens: small pieces of text that may be words, word fragments, punctuation, or spaces. For rough planning, 1,000 tokens often represent about 750 words of English prose. Code, tables, and unusual formatting can produce different ratios.

A window described as 32K usually means approximately 32,000 tokens. Check the provider’s exact definition and limits rather than treating that label as a precise allowance.

Do not fill the entire window with input. In many APIs, input and generated output share the context budget, while a separate output limit caps the answer. Model-specific rules can also affect how reasoning tokens count.

Project one: answering a customer’s refund question

Imagine a support assistant handling one refund request. It needs your support instructions, the refund policy, the customer’s order details, and a short conversation.

  • Instructions and response rules: about 800 tokens.
  • Relevant policy and order information: about 2,000 tokens.
  • Conversation history: about 1,200 tokens.
  • Reserved answer space: about 1,000 tokens.

That is roughly 5,000 tokens, so an illustrative 8K window leaves some headroom. These are planning estimates, not limits for a particular model.

Uploading the entire support handbook would add clutter. Retrieve the refund section instead, and include any exceptions that could change the answer.

Project two: fixing a checkout bug

A coding assistant needs more than the line that crashed. For a checkout bug, useful context might include the failing test, checkout handler, payment interface, error trace, and relevant project instructions.

Suppose those materials total 18,000 tokens. Add 3,000 tokens of conversation and reserve 5,000 for analysis and the proposed patch. An illustrative 32K window could accommodate that request with some margin.

A repository is not automatically a useful prompt. Start with the files that explain the failure. Add dependencies when needed. Leave out generated files, unrelated modules, and credentials.

In coding tools, file reads and command results can also enter the conversation. A session that started small can grow substantially, so inspect context usage before pasting another large log.

Project three: reviewing a long contract

Now consider a contract review with the agreement, amendments, and your review checklist. If the extracted text reaches 90,000 tokens, an illustrative 128K window may leave room for instructions and a substantial answer.

But fitting is only the first check. Scanned pages may need text extraction, and tables can lose meaning during conversion. Ask for clause references and verify important findings against the original document.

If the material does not fit comfortably, review sections separately, preserve their references, then combine the findings. Be careful: summaries can omit exceptions or cross-references that affect the interpretation.

Your context checklist before the green light

  • Estimate the complete request, including instructions, history, files, and tool results.
  • Reserve answer space and confirm the model’s separate output limit.
  • Remove irrelevant material before choosing a larger window.
  • Test with representative project inputs and verify critical details.

SwiftRelay is a practical option for trying models through existing tools such as Claude Code, Codex, Gemini CLI, and OpenAI-compatible SDKs, with pay-as-you-go token billing. Confirm each selected model’s current context and output limits before building around them.

Sign up for SwiftRelay to use the small gift credit on a representative project request, then inspect token usage and answer quality before expanding your workload.

Keep reading

Back for another lap?Log in