Skip to main content
$ai-systems-by-jon
Back to Blog
ClaudeCode1m

Claude Code's 1M Context Window: What It Actually Changes for Agency Operators

Jonathan||9 min read

The Short Version

Anthropic just expanded Claude Code's context window from 200,000 tokens to 1 million. That's not a minor update — it changes how you approach production codebases entirely. Here's what it means in practice.

---

The Problem With the Old Limit

200,000 tokens sounds like a lot until you're 20 files into a real client codebase and Claude starts forgetting what it defined three components ago.

That wasn't a Claude problem in the "this model is bad" sense. It was a ceiling problem. The model couldn't see the whole room, so it was guessing at what furniture was in the corner. You'd ask it to refactor a service layer, and it would confidently rewrite something that contradicted a type definition it never got to read. Then you'd spend 40 minutes debugging a fix that introduced two new issues. That's the actual cost — not the original task, but the cleanup loop.

Agency operators know this pattern well. You'd build workarounds: chunking the codebase into segments, feeding Claude files in batches, running retrieval-augmented generation setups to inject only the "relevant" pieces at query time. Those workarounds work. They're also overhead — setup time, maintenance time, and a persistent risk that you retrieved the wrong chunk and the model never flagged it. The gap between what you wanted ("read the whole thing and fix it") and what the tooling could actually support was real, and it cost hours every week.

---

What 1M Tokens Actually Means

Before the tactics, the math deserves one second.

1 million tokens is roughly 750,000 words. A medium-to-large production codebase — say, a Next.js app with 50–80 files, its config files, its test suite, and its type definitions — comes in somewhere between 80,000 and 250,000 tokens depending on how verbose the code is. Enterprise monorepos can run higher, but for most agency client work, 1M tokens means the **entire codebase fits in a single context window with room to spare**.

No chunking. No batch processing. No retrieval layer you have to maintain. Claude reads every file before it generates a single line of output.

---

5 Things That Change for Agency Operators

### 1. You Can Refactor Across the Whole Codebase in One Prompt

The old workflow for a large refactor looked like this: break the codebase into logical chunks, run Claude on each chunk sequentially, manually reconcile the outputs, find the three places where chunk 2 made an assumption chunk 3 violated, fix those by hand. That's not automation — that's Claude-assisted manual work.

With a 1M context window, you write one prompt. You describe the refactor. Claude reads everything — every import, every type, every edge case — and generates the changes with full awareness of how each file relates to every other file.

**Concrete example:** Last week, a 47-file Next.js codebase needed its data-fetching layer migrated from a REST pattern to server actions. Old approach would've been a multi-session job. With 1M context, one prompt, one pass, done in under 6 minutes. The output was coherent because the model had seen every file before touching any of them.

**What you gain:** Refactor tasks that used to be multi-hour jobs with significant manual reconciliation become single-prompt tasks. That's a direct reduction in billable hours spent on mechanical work — which means more capacity for the work clients actually need judgment on.

---

### 2. Onboarding a New Client Codebase Takes Minutes, Not Days

When a new client hands you a repository, there's a tax. You spend time reading, mapping mental models, figuring out where the weird patterns live, understanding why someone made a decision six months ago that looks wrong today. This is real work, and it doesn't bill well because clients don't want to hear "we spent 8 hours just reading your code."

With 1M context, you drop the entire repo into Claude and ask it to produce a system map: what are the major modules, what are the dependencies, where are the most brittle parts, what conventions does this codebase follow that aren't documented anywhere. Claude can answer all of that in one pass because it read everything.

**Concrete example:** A client hands over a 3-year-old e-commerce platform built by a team that no longer exists. No documentation. The old workflow is archaeology. The new workflow is: paste the repo, ask for a technical brief, get back a structured breakdown of every major system and its coupling points in about 90 seconds.

**What you gain:** Faster project starts, more accurate scoping, and fewer surprises in the first sprint. Clients notice when you come to kickoff already knowing how their system works.

---

### 3. Bug Diagnosis Gets Honest

Here's what happened constantly at 200K tokens: you'd paste a bug report and some files, Claude would diagnose the issue, and the fix would be technically correct for the files it saw — but wrong for the codebase because the real cause was in a file you hadn't included. The model couldn't tell you it was missing context. It would work with what it had and sound confident.

At 1M tokens, the model sees the actual call stack, the actual state management, the actual data flow. When you describe a bug, Claude can trace it to the real source rather than the most plausible source given partial information.

**Concrete example:** A Next.js app was throwing intermittent hydration errors that only showed up in production. Three files looked like the suspect. The real cause was a fourth file — a utility function that was conditionally importing a browser-only package — that wouldn't have been included in a 200K context pass. With the full codebase loaded, Claude found it on the first ask.

**What you gain:** Fewer diagnosis loops. Less time spent ruling out false positives. Bug work that used to take three passes now takes one.

---

### 4. You Can Run Whole-Codebase Audits as a Deliverable

Security audits, performance audits, accessibility audits, dependency reviews — these are high-value deliverables that agencies historically either subcontracted or charged significant premiums for because they required deep human expertise and time.

With 1M context, you can prompt Claude to run a full-codebase audit against a specific rubric: find every place where user input is handled without sanitization, find every component that's making redundant network calls, find every deprecated API call. Claude can scan the entire codebase in a single pass and return a structured report.

**Concrete example:** A security-conscious client asked for a pre-launch review of their SaaS app. Prompt: "Read the full codebase and identify every location where user-controlled data touches a database query, an API call, or a file operation. Flag anything that isn't sanitized." Claude returned 14 flagged locations with file names, line numbers, and remediation notes. Human review confirmed 11 of 14 were real issues. That took about 4 minutes of Claude time and 20 minutes of human review.

**What you gain:** A repeatable, high-margin service line. Audits that used to take days of manual review now take hours — most of which is your time verifying outputs, not producing them.

---

### 5. You Can Drop the RAG Infrastructure for Most Use Cases

RAG — retrieval-augmented generation — is a system where you embed a codebase (or any large document set) into a vector database and retrieve only the "most relevant" chunks at query time to keep the context window manageable. It's a legitimate engineering solution to a real constraint.

But it comes with costs: setup time to build the embedding pipeline, maintenance as the codebase changes, retrieval errors when the "most relevant" chunk isn't actually the right one, and latency from the retrieval step. For agency operators, maintaining RAG infrastructure across multiple client projects is a meaningful operational burden.

With a 1M context window, most agency-scale projects don't need RAG for codebase work. You paste the whole thing and ask the question. The retrieval step is unnecessary because nothing needs to be retrieved — it's all there.

**Concrete example:** One agency had a custom RAG pipeline built on LangChain to handle client codebase queries. Setup time per client: roughly 3 hours. Maintenance: ongoing. After the 1M context update, they deprecated the pipeline entirely for projects under 600K tokens — which covered 9 of their 11 active clients. Those 3 setup hours per client are now zero.

**What you gain:** Simpler infrastructure, lower maintenance overhead, and one fewer failure point in your AI workflow stack.

---

What This Doesn't Change

Full context doesn't mean unlimited quality. A few things worth knowing:

  • **Latency increases with context size.** Feeding 800K tokens takes longer to process than feeding 50K. For quick one-off questions, smaller focused prompts are still faster.
  • **Cost scales with tokens.** If you're on a usage-based plan, 1M token queries cost more than 200K token queries. For high-value refactor work, the trade is obvious. For routine questions, don't default to full-codebase context when you don't need it.
  • **The model still hallucinates.** More context reduces hallucination on context-dependent tasks — it can't contradict a file it's actually read. But it doesn't eliminate hallucination entirely. Human review on anything going to production is still non-negotiable.

---

The Actual Shift

For two years, the standard agency workflow was built around the constraint: "AI can't see the whole codebase, so design your process around that." RAG pipelines, chunking strategies, multi-session handoffs, manual reconciliation — these were all rational adaptations to a real ceiling.

That ceiling just moved by 5x. Most of those adaptations are now overhead you don't need.

The operators who update their workflow to match the new constraint will close tickets faster, scope projects more accurately, and deliver audits and refactors that used to require more senior time. The ones who keep running the old workarounds will be slower and more expensive on the same deliverables.

---

Next Steps

If you want to build this into a repeatable system — prompts, project structure, the client onboarding workflow — book a call and we'll map it out for your specific agency setup.

**Book a call: yoursite.com/book**