What to put in Claude's context window
Current Claude models accept up to 1M tokens of context. Filling that space is rarely the answer: what to include, in what order, and what to leave out.

This is Day 6 of Claude Architect in 30 Days. Day 5 was about what comes out of Claude. Today is about what goes in. Context is the fourth of the five building blocks, and it's the one where "more" is most often mistaken for "better".
Who this is for: a developer or product owner deciding what information a Claude feature should be given on each request.
What counts as context
Everything in the request is context: the system prompt, the conversation history your app resends (Day 2 explained why it has to), any documents you include, and the results of tools Claude has called. Nothing outside the request exists for Claude on that call. If it isn't there, Claude doesn't know it.
A million tokens is room, not a target
Current Claude models accept up to a million tokens in a single request, enough for a large codebase or a long set of documents. That's genuinely useful when a task needs it. It isn't a reason to send everything every time.
Every token you send costs money and adds time before the answer starts. And irrelevant material isn't neutral: it gives the model more to read past, more chances to anchor on the wrong passage, and more to get wrong. A short, relevant context usually beats a long, complete one.
Order matters: stable first, question last
Arrange each request in three layers: the instructions that never change, then the reference material, then the specific question. Anthropic's long-context guidance recommends putting long documents before the question, which Day 4 also used. The same order is what makes prompt caching work, because the cache matches from the start of the request. That's tomorrow's topic.
Long agent runs fill up
An agent that calls tools adds every result to the conversation: search results, file contents, API responses. Over a long run those pile up until most of the context is old output nobody needs.
Claude's API has two answers. Context editing clears old tool results before Claude sees the request, keeping the record that a call happened without its full output. Compaction summarises earlier parts of the conversation automatically once it grows past a threshold. Both are in beta and both are worth knowing before a long-running agent hits the limit in production.
Retrieve, don't dump
For questions over a large body of knowledge, such as a help centre, a contract archive or a codebase, the better habit is to fetch the few passages that answer this question and send only those. That's retrieval-augmented generation (RAG), and Week 3 of the series covers it in depth. The production RAG checklist and chunking strategies are good places to start.
Measure what you send
Every response reports input_tokens in its usage field, and the API has a token-counting endpoint for checking a request before you send it. Watch these numbers per feature. A feature whose input keeps growing is usually resending history or documents it no longer needs.
Try this today
Take one full request your app actually sends, printed out, and mark every part Claude didn't need for that answer. That's your first cut. Tomorrow, Day 7 covers prompt caching. If your feature's context has grown faster than its quality, I help teams untangle that in LLM and RAG systems.
Prefer slides? Download today's carousel as a PDF.